标准清单流程bug修复

This commit is contained in:
yuezhihang
2021-07-30 15:22:46 +08:00
parent 77a892b924
commit 41674988c5
2 changed files with 5 additions and 3 deletions
@@ -40,9 +40,9 @@ public class CountersignSRPAfter implements TaskListener{
// JSONObject array = object.getJSONObject("hqsqForm"); // JSONObject array = object.getJSONObject("hqsqForm");
if(StringUtils.isNotBlank(object.getString("applyUpdUserId"))){ if(StringUtils.isNotBlank(delegateTask.getVariable("createUser",String.class))){
delegateTask.setVariable("applyUserId",object.getString("applyUpdUserId")); delegateTask.setVariable("applyUserId",delegateTask.getVariable("createUser",String.class));
nextUserList.add(object.getString("applyUpdUserId")); nextUserList.add(delegateTask.getVariable("createUser",String.class));
}else { }else {
throw new ActivitiException("1#2申请人修订用户不存在,请配置相关人员"); throw new ActivitiException("1#2申请人修订用户不存在,请配置相关人员");
} }
@@ -85,7 +85,9 @@ public class SRPstartAfter implements TaskListener {
//截止时间 流程描述 创建人 //截止时间 流程描述 创建人
String OVERTIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); String OVERTIME = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
String user = object.getString("prcCreateUser"); String user = object.getString("prcCreateUser");
delegateTask.setVariable("createUser",user);
String username = object.getString("prcCreateUserName"); String username = object.getString("prcCreateUserName");
delegateTask.setVariable("createUserName",username);
String standName = object.getString("standName"); String standName = object.getString("standName");
String prcName=""; String prcName="";
if(object.getString("signFlag").equals("1")) { if(object.getString("signFlag").equals("1")) {