|
|
@@ -46,9 +46,10 @@ public class SmsCheckStatisticsServiceImpl extends ServiceImpl<SmsCheckStaticsMa
|
|
|
String customerNo = smsStatisticsCheckVo.getCustomerNo();
|
|
|
String taskName = smsStatisticsCheckVo.getTaskName();
|
|
|
String taskState = smsStatisticsCheckVo.getTaskState();
|
|
|
- List<Map<String, Object>> maps = smsCheckStaticsMapper.selectCheckStaticsList(smsStatisticsCheckVo.getType(), start,size,startDate,endDate,taskId,customerName,customerNo,taskName,taskState);
|
|
|
+ String checkState = smsStatisticsCheckVo.getCheckState();
|
|
|
+ List<Map<String, Object>> maps = smsCheckStaticsMapper.selectCheckStaticsList(smsStatisticsCheckVo.getType(), start,size,startDate,endDate,taskId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
- Long total = smsCheckStaticsMapper.selectTotal(smsStatisticsCheckVo.getType(),startDate,endDate,taskId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long total = smsCheckStaticsMapper.selectTotal(smsStatisticsCheckVo.getType(),startDate,endDate,taskId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
//构建返回对象内容
|
|
|
mapResult.put("current",current);
|
|
|
@@ -76,13 +77,14 @@ public class SmsCheckStatisticsServiceImpl extends ServiceImpl<SmsCheckStaticsMa
|
|
|
String customerNo = smsStatisticsCheckVo.getCustomerNo();
|
|
|
String taskName = smsStatisticsCheckVo.getTaskName();
|
|
|
String taskState = smsStatisticsCheckVo.getTaskState();
|
|
|
+ String checkState = smsStatisticsCheckVo.getCheckState();
|
|
|
Map<String,Object> mapNums = new HashMap<>();
|
|
|
if(StringUtils.isNotBlank(type)){
|
|
|
CheckTaskTypeEnum[] values = CheckTaskTypeEnum.values();
|
|
|
for (CheckTaskTypeEnum value : values) {
|
|
|
if (value.getCode().equals(type)){
|
|
|
|
|
|
- Long num = smsCheckStaticsMapper.selectTotal(value.getCode(),startDate,endDate,infoId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long num = smsCheckStaticsMapper.selectTotal(value.getCode(),startDate,endDate,infoId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
String s = value.name().toLowerCase();
|
|
|
mapNums.put("totalNum",num);
|
|
|
@@ -93,24 +95,24 @@ public class SmsCheckStatisticsServiceImpl extends ServiceImpl<SmsCheckStaticsMa
|
|
|
}
|
|
|
|
|
|
//总数
|
|
|
- Long totalNum = smsCheckStaticsMapper.selectTotal(null,startDate,endDate,infoId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long totalNum = smsCheckStaticsMapper.selectTotal(null,startDate,endDate,infoId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
//1:行短稽核
|
|
|
String line = CheckTaskTypeEnum.Line.getCode();
|
|
|
|
|
|
- Long lineNum = smsCheckStaticsMapper.selectTotal(line,startDate,endDate,infoId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long lineNum = smsCheckStaticsMapper.selectTotal(line,startDate,endDate,infoId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
//2:物联网业务稽核
|
|
|
String business = CheckTaskTypeEnum.Business.getCode();
|
|
|
- Long businessNum = smsCheckStaticsMapper.selectTotal(business,startDate,endDate,infoId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long businessNum = smsCheckStaticsMapper.selectTotal(business,startDate,endDate,infoId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
//3.复开审批
|
|
|
String reopening = CheckTaskTypeEnum.Reopening.getCode();
|
|
|
- Long reopeningNum = smsCheckStaticsMapper.selectTotal(reopening,startDate,endDate,infoId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long reopeningNum = smsCheckStaticsMapper.selectTotal(reopening,startDate,endDate,infoId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
//4.中继线稽核
|
|
|
String trunkLineAudit = CheckTaskTypeEnum.TrunkLineAudit.getCode();
|
|
|
- Long trunkLineAuditNum = smsCheckStaticsMapper.selectTotal(trunkLineAudit,startDate,endDate,infoId,customerName,customerNo,taskName,taskState);
|
|
|
+ Long trunkLineAuditNum = smsCheckStaticsMapper.selectTotal(trunkLineAudit,startDate,endDate,infoId,customerName,customerNo,taskName,taskState,checkState);
|
|
|
|
|
|
|
|
|
|
|
|
@@ -133,7 +135,8 @@ public class SmsCheckStatisticsServiceImpl extends ServiceImpl<SmsCheckStaticsMa
|
|
|
String customerNo = smsStatisticsCheckVo.getCustomerNo();
|
|
|
String taskName = smsStatisticsCheckVo.getTaskName();
|
|
|
String taskState = smsStatisticsCheckVo.getTaskState();
|
|
|
- List<Map<String, Object>> maps = smsCheckStaticsMapper.statisticsStatusToCount(type, startDate, endDate, infoId, customerName, customerNo, taskName, taskState);
|
|
|
+ String checkState = smsStatisticsCheckVo.getCheckState();
|
|
|
+ List<Map<String, Object>> maps = smsCheckStaticsMapper.statisticsStatusToCount(type, startDate, endDate, infoId, customerName, customerNo, taskName, taskState,checkState);
|
|
|
int num = 0;
|
|
|
for (Map<String, Object> map : maps ) {
|
|
|
mapCount.put(map.get("task_state").toString(),map.get("num").toString());
|