数据处理

master
shijie 4 years ago
parent f02933e027
commit 7f65d16695
  1. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java

@ -204,8 +204,9 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
// 计算当前部门在当前节点的累计时间 // 计算当前部门在当前节点的累计时间
String existTime = existMap.get(processId).substring(0, existMap.get(processId).indexOf(",")); String existTime = existMap.get(processId).substring(0, existMap.get(processId).indexOf(","));
int sumTime = Integer.parseInt(existTime) + Integer.parseInt(time); //int sumTime = Integer.parseInt(existTime) + Integer.parseInt(time);
timeSumByDepId.put(Integer.parseInt(departmentId),sumTime); //timeSumByDepId 这个map只用于记录遍历部门多少次数
timeSumByDepId.put(Integer.parseInt(departmentId),time);
if(timeSumByDepId.size()>1){ if(timeSumByDepId.size()>1){
// 累计时间加上本次时间 // 累计时间加上本次时间
existMap.put(processId, (Integer.parseInt(time)) + "," + count); existMap.put(processId, (Integer.parseInt(time)) + "," + count);

Loading…
Cancel
Save