فهرست منبع

修复小程序流程发起问题

ouyj 1 ماه پیش
والد
کامیت
b592e635b4
1فایلهای تغییر یافته به همراه16 افزوده شده و 3 حذف شده
  1. 16 3
      src/main/bpm/com/yw/bpm/client/action/BpmClientFlowStartAction.java

+ 16 - 3
src/main/bpm/com/yw/bpm/client/action/BpmClientFlowStartAction.java

@@ -329,12 +329,25 @@ public class BpmClientFlowStartAction extends RequestAbs {
 						TacheModel tacheModel = (TacheModel) nextTacheInstance.get("tacheModel");
 						List<SystemGroupUser> users = (List<SystemGroupUser>) nextTacheInstance.get("users");
 						String nextTmodelId = tacheModel.getTmodelId();
-						for (SystemGroupUser user : users) {
+						String isCheck = nextTacheInstance.get("isCheck").toString();
+						if (isCheck.equals("true")) {
+							if(users != null && users.size() >0){
+								for (SystemGroupUser user : users) {
+									TacheInstance tache = new TacheInstance();
+									tache.getTmodelId().setTmodelId(nextTmodelId);
+									tache.getGroupxuserid().setId(user.getId());
+									nextTinstanceList.add(tache);
+								}
+							}else {
+								TacheInstance tache = new TacheInstance();
+								tache.getTmodelId().setTmodelId(nextTmodelId);
+								nextTinstanceList.add(tache);
+							} 
+						}else {
 							TacheInstance tache = new TacheInstance();
 							tache.getTmodelId().setTmodelId(nextTmodelId);
-							tache.getGroupxuserid().setId(user.getId());
 							nextTinstanceList.add(tache);
-						}
+						} 
 					}
 				}