|
|
@ -19,6 +19,7 @@ import com.daqing.framework.enums.OperationUnit; |
|
|
|
import com.daqing.framework.model.StatusCode; |
|
|
|
import com.daqing.framework.model.StatusCode; |
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
|
|
|
|
import com.daqing.framework.xss.SQLFilter; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
@ -34,6 +35,7 @@ import java.io.IOException; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 流程效率 |
|
|
|
* 流程效率 |
|
|
@ -155,6 +157,10 @@ public class DgEfficiencyController { |
|
|
|
numResponse.setCopySendNum(size); |
|
|
|
numResponse.setCopySendNum(size); |
|
|
|
//转换任务节点,并统计操作状态个数
|
|
|
|
//转换任务节点,并统计操作状态个数
|
|
|
|
responseList.forEach(personalEfficiencyListResponse -> { |
|
|
|
responseList.forEach(personalEfficiencyListResponse -> { |
|
|
|
|
|
|
|
//耗时为空,默认为0
|
|
|
|
|
|
|
|
if (StringUtils.isEmpty(personalEfficiencyListResponse.getTimeConsuming())){ |
|
|
|
|
|
|
|
personalEfficiencyListResponse.setTimeConsuming("0天0小时0分钟"); |
|
|
|
|
|
|
|
} |
|
|
|
//提单人为空,默认赋值客户
|
|
|
|
//提单人为空,默认赋值客户
|
|
|
|
if (StringUtils.isEmpty(personalEfficiencyListResponse.getApplicant())){ |
|
|
|
if (StringUtils.isEmpty(personalEfficiencyListResponse.getApplicant())){ |
|
|
|
personalEfficiencyListResponse.setApplicant("客户"); |
|
|
|
personalEfficiencyListResponse.setApplicant("客户"); |
|
|
@ -234,7 +240,20 @@ public class DgEfficiencyController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return R.ok().data("responseList", responseList).data("statistics", numResponse); |
|
|
|
//按时间降序排列
|
|
|
|
|
|
|
|
List<PersonalEfficiencyListResponse> collect = responseList.stream().sorted((o1, o2) -> { |
|
|
|
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Date dt1 = format.parse(o1.getApplicationDate()); |
|
|
|
|
|
|
|
Date dt2 = format.parse(o2.getApplicationDate()); |
|
|
|
|
|
|
|
// 默认降序
|
|
|
|
|
|
|
|
return Long.compare(dt2.getTime(), dt1.getTime()); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
}).collect(Collectors.toList()); |
|
|
|
|
|
|
|
return R.ok().data("responseList", collect).data("statistics", numResponse); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static long getLongDate(String stringDate) { |
|
|
|
public static long getLongDate(String stringDate) { |
|
|
|