Commit ad80523a authored by zhangyingbin's avatar zhangyingbin

优化消息接口

parent 22ae7692
...@@ -56,6 +56,9 @@ public class ScheduleService { ...@@ -56,6 +56,9 @@ public class ScheduleService {
@Autowired @Autowired
private TzBaseUnitLicenceServiceImpl baseUnitLicenceService; private TzBaseUnitLicenceServiceImpl baseUnitLicenceService;
@Autowired
CylinderInspectionServiceImpl cylinderInspectionService;
@Value("${cylinder-early-warning-packageId:预警消息/cylWarningMsg}") @Value("${cylinder-early-warning-packageId:预警消息/cylWarningMsg}")
private String cylPackageId; private String cylPackageId;
...@@ -72,7 +75,7 @@ public class ScheduleService { ...@@ -72,7 +75,7 @@ public class ScheduleService {
} }
// 1.批量分组大小 // 1.批量分组大小
int size = 500; int size = 500;
int cylTotal = cylinderInfoService.count(); int cylTotal = cylinderInspectionService.count();
int equTotal = RegistrationInfoService.count(); int equTotal = RegistrationInfoService.count();
int licTotal = baseUnitLicenceService.count(); int licTotal = baseUnitLicenceService.count();
int cylGroupNumber = cylTotal / size + 1; int cylGroupNumber = cylTotal / size + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment