| | |
| | | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import com.iailab.framework.mybatis.core.query.QueryWrapperX; |
| | | import com.iailab.module.data.api.point.DataPointApiImpl; |
| | | import com.iailab.module.data.api.point.dto.ApiPointValueDTO; |
| | | import com.iailab.module.data.api.point.dto.ApiPointValueQueryDTO; |
| | |
| | | arcDataEntity.setArcTime(arcTime); |
| | | arcDataEntity.setArcId(item.getId()); |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataDao.delete(new LambdaQueryWrapperX<ArcDataEntity>() |
| | | .eq(ArcDataEntity::getArcId, arcDataEntity.getArcId()) |
| | | .eq(ArcDataEntity::getArcTime, arcDataEntity.getArcId()) |
| | | ); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | arcDataEntity.setArcTime(arcTime); |
| | | arcDataEntity.setArcId(item.getId()); |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataDao.delete(new LambdaQueryWrapperX<ArcDataEntity>() |
| | | .eq(ArcDataEntity::getArcId, arcDataEntity.getArcId()) |
| | | .eq(ArcDataEntity::getArcTime, arcDataEntity.getArcId()) |
| | | ); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataEntity.setCode(item.getCode()); |
| | | arcDataEntity.setCreateTime(new Date()); |
| | | arcDataDao.delete(new LambdaQueryWrapperX<ArcDataEntity>() |
| | | .eq(ArcDataEntity::getArcId, arcDataEntity.getArcId()) |
| | | .eq(ArcDataEntity::getArcTime, arcDataEntity.getArcId()) |
| | | ); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataEntity.setCode(item.getCode()); |
| | | arcDataEntity.setCreateTime(new Date()); |
| | | arcDataDao.delete(new LambdaQueryWrapperX<ArcDataEntity>() |
| | | .eq(ArcDataEntity::getArcId, arcDataEntity.getArcId()) |
| | | .eq(ArcDataEntity::getArcTime, arcDataEntity.getArcId()) |
| | | ); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |
| | |
| | | arcDataEntity.setArcValue(value); |
| | | arcDataEntity.setCode(item.getCode()); |
| | | arcDataEntity.setCreateTime(new Date()); |
| | | arcDataDao.delete(new LambdaQueryWrapperX<ArcDataEntity>() |
| | | .eq(ArcDataEntity::getArcId, arcDataEntity.getArcId()) |
| | | .eq(ArcDataEntity::getArcTime, arcDataEntity.getArcId()) |
| | | ); |
| | | insert(arcDataEntity); |
| | | log.debug("归档完成,point:"+item.getPoint()); |
| | | }); |