Browse Source

财务台账相关流程描述事件修改增加转件时间修改

chenjun 1 năm trước cách đây
mục cha
commit
317d320a17

+ 2 - 0
zjugis-business/src/main/java/com/zjugis/business/flow/commoncost/event/CommonCostEvent.java

@@ -91,6 +91,7 @@ public class CommonCostEvent extends BaseController {
                 String flowInstanceId = activityInstance.get("flowInstanceId").toString();
                 CommonCostDO entity = commonCostService.findByInstanceId(flowInstanceId);
                 entity.setFlowStatus(FLOW_PROCESS);
+                entity.setFlowFinishtime(LocalDateTime.now());
                 commonCostService.updateCommonCost(CommonCostConvert.INSTANCE.convert(entity));
                 List<CommonCostDetailDO> detailList = commonCostDetailService.getListByCommonCostId(entity.getId());
                 StringBuilder projectName = new StringBuilder();
@@ -99,6 +100,7 @@ public class CommonCostEvent extends BaseController {
                     projectName.append(project.getXmmc());
                     projectName.append(";");
                 });
+                projectName.setLength(projectName.length() - 1);
                 Integer agent = entity.getIsAgent();
                 String applyTime = LocalDateTimeUtils.format(entity.getApplyTime(), null);
                 String flowDesc = "";

+ 1 - 0
zjugis-business/src/main/java/com/zjugis/business/flow/travelcost/event/TravelCostEvent.java

@@ -75,6 +75,7 @@ public class TravelCostEvent extends BaseController {
                 TravelCostDO entity = travelCostService.findByInstanceId(flowInstanceId);
                 Project project = projectService.selectById(entity.getProjectId());
                 entity.setFlowStatus(FLOW_PROCESS);
+                entity.setFlowFinishtime(LocalDateTime.now());
                 travelCostService.updateTravelCost(TravelCostConvert.INSTANCE.convert(entity));
                 String applyTime = LocalDateTimeUtils.format(entity.getApplyTime(), null);
                 String flowDesc = StringUtils.join(Arrays.asList(entity.getUserNickname(), applyTime, "¥" + entity.getTotalAmount(), project.getXmmc()), "/");

+ 1 - 0
zjugis-business/src/main/java/com/zjugis/business/flow/usemoney/event/UseMoneyEvent.java

@@ -129,6 +129,7 @@ public class UseMoneyEvent extends BaseController {
                     flowDesc += "/" + project.getXmmc();
                 }
                 entity.setFlowStatus(1);
+                entity.setFlowFinishtime(LocalDateTime.now());
                 useMoneyService.updateUseMoney(UseMoneyConvert.INSTANCE.convert(entity));
                 flowDesc = flowDesc.length() > 1 ? flowDesc.substring(1) : flowDesc;
                 workflowClient.saveFlowDescribe(flowInstanceId,flowDesc);