Ver código fonte

add
定时补偿

18339543638 1 ano atrás
pai
commit
da9ced3e32

+ 0 - 6
nb-service/web-service/src/main/java/com/nb/web/service/bus/job/DeviceFlowStatsJob.java

@@ -53,12 +53,6 @@ public class DeviceFlowStatsJob {
                 .lt(BusHospitalLogEntity::getCreateTime, endTime)
                 .gt(BusHospitalLogEntity::getCreateTime, startTime));
 
-        hospitalLogService.list(new QueryWrapper<BusHospitalLogEntity>()
-                .lambda()
-                .select(BusHospitalLogEntity::getIdentityCode, BusHospitalLogEntity::isSuccess)
-                .eq(BusHospitalLogEntity::getType, HospitalLogEnum.ALI_DATA_UPLOAD)
-                .lt(BusHospitalLogEntity::getCreateTime, endTime)
-                .gt(BusHospitalLogEntity::getCreateTime, startTime));
         long infusionCount = infusionHistoryService.count(new QueryWrapper<BusInfusionHistoryEntity>()
                 .lambda()
                 .gt(BusInfusionHistoryEntity::getStartTime, startTime)

+ 1 - 1
nb-service/web-service/src/main/java/com/nb/web/service/bus/job/LogJob.java

@@ -30,7 +30,7 @@ public class LogJob {
     @Scheduled(cron = "0 0 3 * * ?")
     public void del(){
         //删除超过7天的非his日志
-        DateTime dateTime = DateUtil.lastMonth();
+        DateTime dateTime = DateUtil.lastWeek();
         hospitalLogService.remove(new LambdaQueryWrapper<BusHospitalLogEntity>()
                 .ne(BusHospitalLogEntity::getType, HospitalLogEnum.HIS.getValue())
                 .lt(BusHospitalLogEntity::getCreateTime,dateTime));