|
@@ -140,12 +140,40 @@ public class SmsCheckStatisticsServiceImpl extends ServiceImpl<SmsCheckStaticsMa
|
|
|
int num = 0;
|
|
int num = 0;
|
|
|
for (Map<String, Object> map : maps ) {
|
|
for (Map<String, Object> map : maps ) {
|
|
|
mapCount.put(map.get("task_state").toString(),map.get("num").toString());
|
|
mapCount.put(map.get("task_state").toString(),map.get("num").toString());
|
|
|
- num+=Integer.valueOf(map.get("num").toString());
|
|
|
|
|
|
|
+ num+=Integer.parseInt(map.get("num").toString());
|
|
|
}
|
|
}
|
|
|
mapCount.put("num",num);
|
|
mapCount.put("num",num);
|
|
|
return mapCount;
|
|
return mapCount;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Map<String, Object> checkStatusToCount(String type, String startDate, String endDate, String infoId, SmsStatisticsCheckVo smsStatisticsCheckVo) {
|
|
|
|
|
+ Map<String,Object>mapCount = new HashMap<>();
|
|
|
|
|
+ String customerName = smsStatisticsCheckVo.getCustomerName();
|
|
|
|
|
+ String customerNo = smsStatisticsCheckVo.getCustomerNo();
|
|
|
|
|
+ String taskName = smsStatisticsCheckVo.getTaskName();
|
|
|
|
|
+ String taskState = smsStatisticsCheckVo.getTaskState();
|
|
|
|
|
+ String checkState = smsStatisticsCheckVo.getCheckState();
|
|
|
|
|
+ List<Map<String, Object>> maps = smsCheckStaticsMapper.getCheckStatusToCount(type, startDate, endDate, infoId, customerName, customerNo, taskName, taskState,checkState);
|
|
|
|
|
+
|
|
|
|
|
+ int num = 0;
|
|
|
|
|
+ for (Map<String, Object> map : maps ) {
|
|
|
|
|
+ mapCount.put(map.get("check_state").toString(),map.get("num").toString());
|
|
|
|
|
+ num+=Integer.parseInt(map.get("num").toString());
|
|
|
|
|
+ }
|
|
|
|
|
+ // 0 1 为一组
|
|
|
|
|
+ if (mapCount.get("1")!=null && mapCount.get("1")!="" && mapCount.get("0")!=null && mapCount.get("0")!="" ){
|
|
|
|
|
+ mapCount.put("0",Integer.parseInt(mapCount.get("0").toString()) +Integer.parseInt(mapCount.get("1").toString()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (mapCount.get("2")!=null && mapCount.get("2")!="" && mapCount.get("3")!=null && mapCount.get("3")!="" ){
|
|
|
|
|
+ mapCount.put("2",Integer.parseInt(mapCount.get("2").toString()) +Integer.parseInt(mapCount.get("3").toString()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ mapCount.put("num",num);
|
|
|
|
|
+
|
|
|
|
|
+ return mapCount;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public List<Map<String,Object>> statisticsWorkLogById(String Id) {
|
|
public List<Map<String,Object>> statisticsWorkLogById(String Id) {
|
|
|
return smsCheckStaticsMapper.statisticsWorkLogById(Id);
|
|
return smsCheckStaticsMapper.statisticsWorkLogById(Id);
|