|
@@ -147,8 +147,8 @@ public class CommonServiceImpl implements CommonService {
|
|
|
log.info("获取HotelProjectAlarmDealInfo信息时传入参为空,故不进行查询");
|
|
|
return new HotelProjectAlarmDealInfo();
|
|
|
}
|
|
|
- Integer workCount = null;
|
|
|
- Integer dealCount = null;
|
|
|
+ Integer workCount = 0;
|
|
|
+ Integer dealCount = 0;
|
|
|
List<WorkOrder> askEndTimeList = iWorkOrderWebService.getWorkOrderNumByParam(projectId, reportDate, "ask_end_time", null, "8");
|
|
|
if (null != askEndTimeList) {
|
|
|
dealCount = askEndTimeList.size();
|
|
@@ -307,12 +307,12 @@ public class CommonServiceImpl implements CommonService {
|
|
|
HotelProjectEnergyWorkerOrderInfo hotelProjectEnergyWorkerOrderInfo = new HotelProjectEnergyWorkerOrderInfo();
|
|
|
try {
|
|
|
List<WorkOrder> createTimeWorkList = iWorkOrderWebService.getWorkOrderNumByParam(projectId, reportDate, "create_time", workOrderType, null);
|
|
|
- Integer totalCount = null;
|
|
|
+ Integer totalCount = 0;
|
|
|
if (null != createTimeWorkList) {
|
|
|
totalCount = createTimeWorkList.size();
|
|
|
}
|
|
|
List<WorkOrder> realFinishTimeWorkList = iWorkOrderWebService.getWorkOrderNumByParam(projectId, reportDate, "real_finish_time", workOrderType, null);
|
|
|
- Integer executeCount = null;
|
|
|
+ Integer executeCount = 0;
|
|
|
if (null != realFinishTimeWorkList) {
|
|
|
executeCount = realFinishTimeWorkList.size();
|
|
|
}
|
|
@@ -324,7 +324,7 @@ public class CommonServiceImpl implements CommonService {
|
|
|
}
|
|
|
hotelProjectEnergyWorkerOrderInfo.setExecutePercent(executePercent);
|
|
|
List<WorkOrder> energySaveRealFinishTimeWorkList = iWorkOrderWebService.getWorkOrderNumByParam(projectId, reportDate, "real_finish_time", energySaveWorkOrderType, null);
|
|
|
- Integer initiativeCount = null;
|
|
|
+ Integer initiativeCount = 0;
|
|
|
if (null != energySaveRealFinishTimeWorkList) {
|
|
|
initiativeCount = energySaveRealFinishTimeWorkList.size();
|
|
|
}
|