Browse Source

修正:风险排查流程bug

zhongwei
ty 4 months ago
parent
commit
f36a452424
  1. 12
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/service/impl/HazardTaskServiceImpl.java
  2. BIN
      hzims-service/safeproduct/src/main/resources/template/风险点导出模板.xlsx
  3. BIN
      hzims-service/safeproduct/src/main/resources/template/风险评价赋分表.xlsx
  4. BIN
      hzims-service/safeproduct/src/main/resources/template/风险评估.docx

12
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/service/impl/HazardTaskServiceImpl.java

@ -80,7 +80,7 @@ public class HazardTaskServiceImpl extends ServiceImpl<HazardTaskMapper, HazardT
//保存业务表单 //保存业务表单
String saved = saveEntity(JSONObject.toJSONString(process)); String saved = saveEntity(JSONObject.toJSONString(process));
//开启动作流 //开启动作流
R r = this.startProcess(JSON.toJSONString(saved), HazardRiskConstants.HAZARD_RISK_KEY,null); R r = this.startProcess(saved, HazardRiskConstants.HAZARD_RISK_KEY,null);
return r ; return r ;
} }
@ -223,8 +223,14 @@ public class HazardTaskServiceImpl extends ServiceImpl<HazardTaskMapper, HazardT
entity.setProcessSteps(processWorkFlowResponse.getTaskName()); entity.setProcessSteps(processWorkFlowResponse.getTaskName());
// 流程阶段执行人员名称 // 流程阶段执行人员名称
entity.setNextStepOperator(processWorkFlowResponse.getNextStepOperator()); entity.setNextStepOperator(processWorkFlowResponse.getNextStepOperator());
Boolean examine = (Boolean) variables.get(HazardRiskConstants.EXAMINE); Boolean examine = false;
Boolean review = (Boolean) variables.get(HazardRiskConstants.REVIEW); Boolean review=false;
if (ObjectUtil.isNotEmpty(variables.get(HazardRiskConstants.EXAMINE))){
examine = (Boolean) variables.get(HazardRiskConstants.EXAMINE);
}
if (ObjectUtil.isNotEmpty(variables.get(HazardRiskConstants.EXAMINE))){
review = (Boolean) variables.get(HazardRiskConstants.REVIEW);
}
if(examine || review){ if(examine || review){
// 当前流程名称 // 当前流程名称
entity.setProcessSteps("流程结束"); entity.setProcessSteps("流程结束");

BIN
hzims-service/safeproduct/src/main/resources/template/风险点导出模板.xlsx

Binary file not shown.

BIN
hzims-service/safeproduct/src/main/resources/template/风险评价赋分表.xlsx

Binary file not shown.

BIN
hzims-service/safeproduct/src/main/resources/template/风险评估.docx

Binary file not shown.
Loading…
Cancel
Save