|
|
|
@ -22,6 +22,7 @@ import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
@ -154,27 +155,22 @@ public class DgEfficiencyController { |
|
|
|
|
numResponse.setCopySendNum(size); |
|
|
|
|
//转换任务节点,并统计操作状态个数
|
|
|
|
|
responseList.forEach(personalEfficiencyListResponse -> { |
|
|
|
|
//提单人为空,默认赋值客户
|
|
|
|
|
if (StringUtils.isEmpty(personalEfficiencyListResponse.getApplicant())){ |
|
|
|
|
personalEfficiencyListResponse.setApplicant("客户"); |
|
|
|
|
} |
|
|
|
|
String taskNode = personalEfficiencyListResponse.getTaskNode(); |
|
|
|
|
if (taskNode != null) { |
|
|
|
|
String converter = TaskNodeUtil.converter(taskNode); |
|
|
|
|
personalEfficiencyListResponse.setTaskNode(converter); |
|
|
|
|
} |
|
|
|
|
if (personalEfficiencyListResponse.getOperatingStatus() != null) { |
|
|
|
|
switch (personalEfficiencyListResponse.getOperatingStatus()) { |
|
|
|
|
case 0: |
|
|
|
|
if (personalEfficiencyListResponse.getOperatingStatus()==0){ |
|
|
|
|
numResponse.setInitiateNum(numResponse.getInitiateNum() + 1); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
}else if (personalEfficiencyListResponse.getOperatingStatus()==1){ |
|
|
|
|
numResponse.setPendingNum(numResponse.getPendingNum() + 1); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
}else if (personalEfficiencyListResponse.getOperatingStatus()==2){ |
|
|
|
|
numResponse.setProcessedNum(numResponse.getProcessedNum() + 1); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
numResponse.setInitiateNum(0); |
|
|
|
|
numResponse.setPendingNum(0); |
|
|
|
|
numResponse.setProcessedNum(0); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|