feat: scc流程控制分发节点是否能够修改

This commit is contained in:
2024-07-18 11:19:04 +08:00
parent 0c344672f3
commit fd5cdba866
2 changed files with 7 additions and 0 deletions
@@ -195,6 +195,10 @@ public class ProcessStandardComplianceCheck implements Serializable {
@TableField(exist = false)
private String seniorManager;
@ApiModelProperty(value = "是否锁定下发下拉选项")
@TableField(exist = false)
private boolean lockDistributeFlag;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}
@@ -451,6 +451,9 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
private void handleDataVariables(ProcessStandardComplianceCheck scc, String mainInstanceId) {
actFlowCommonService.setStringBooleanAttribute(mainInstanceId, DISTRIBUTE, scc::setDistributeFlag, value -> (boolean) value ? YesOrNoEnum.YES.getValue() : YesOrNoEnum.NO.getValue());
// 如果没有下发过
String distributeFlag = scc.getDistributeFlag();
scc.setLockDistributeFlag(YesOrNoEnum.YES.getValue().equals(distributeFlag));
actFlowCommonService.setStringAttribute(mainInstanceId, DEPT_USER, scc::setDeptUser, Object::toString);
actFlowCommonService.setStringAttribute(mainInstanceId, MAIN_CHECK_USER, scc::setMainCheckUser, Object::toString);
actFlowCommonService.setListAttribute(mainInstanceId, COUNTERSIGN_USER_LIST, v -> scc.setCountersignUser(String.join(",", v)), v -> (List<String>) v);