|
@@ -8,6 +8,7 @@ import com.zjugis.business.flow.commoncost.service.CommonCostDetailService;
|
|
|
import com.zjugis.business.flow.commoncost.service.CommonCostService;
|
|
|
import com.zjugis.business.service.ProjectService;
|
|
|
import com.zjugis.framework.common.pojo.CommonResult;
|
|
|
+import com.zjugis.framework.common.util.date.LocalDateTimeUtils;
|
|
|
import com.zjugis.framework.workflow.exception.BusinessException;
|
|
|
import com.zjugis.framework.workflow.model.BaseController;
|
|
|
import com.zjugis.framework.workflow.rpc.remote.WorkflowClient;
|
|
@@ -75,7 +76,9 @@ public class CommonCostEvent extends BaseController {
|
|
|
CommonCostDO entity = commonCostService.findByInstanceId(flowInstanceId);
|
|
|
entity.setFlowStatus(FLOW_PROCESS);
|
|
|
commonCostService.updateCommonCost(CommonCostConvert.INSTANCE.convert(entity));
|
|
|
- String flowDesc = StringUtils.join(Arrays.asList(entity.getUserNickname(), entity.getTotalAmount()), "/");
|
|
|
+ String applyTime = LocalDateTimeUtils.format(entity.getApplyTime(), null);
|
|
|
+ Project project = projectService.selectById(entity.getProjectId());
|
|
|
+ String flowDesc = StringUtils.join(Arrays.asList(entity.getUserNickname(), applyTime, "¥"+entity.getTotalAmount(), project.getXmmc()), "/");
|
|
|
flowDesc = flowDesc.length() > 1 ? flowDesc.substring(1) : flowDesc;
|
|
|
workflowClient.saveFlowDescribe(flowInstanceId, flowDesc);
|
|
|
return ok("true");
|