فهرست منبع

change log level to warning.

liyuan 2 سال پیش
والد
کامیت
51319991b4

+ 5 - 2
ibps-bpmn-root/modules/bpmn-plugin/src/main/java/com/lc/ibps/bpmn/plugin/usercalc/pos/runtime/PosPlugin.java

@@ -166,6 +166,10 @@ public class PosPlugin extends AbstractUserCalcPlugin
 			//we don't need to exact user for this rule.
 			def.setExtract(ExtractType.EXACT_NOEXACT);
 			List<BpmIdentity> list = new ArrayList<BpmIdentity>();
+			List<BpmIdentity> calcBpmIdentity = (List<BpmIdentity>)pluginSession.getVariables().get("calcBpmIdentity");
+			if(BeanUtils.isEmpty(calcBpmIdentity)){
+				return list;
+			}
 			ExecutorVar executorVar = def.getExecutorVar();
 			UserCalcHelper uch = new UserCalcHelper();
 			List<String> pks = uch.getCalcsPKByExecutor(executorVar, pluginSession);
@@ -192,7 +196,6 @@ public class PosPlugin extends AbstractUserCalcPlugin
 					.distinct()
 					.collect(Collectors.toList());
 
-			List<BpmIdentity> calcBpmIdentity = (List<BpmIdentity>)pluginSession.getVariables().get("calcBpmIdentity");
 			for(BpmIdentity identity: calcBpmIdentity) {
 
 				APIResult<List<PartyPositionPo>> usersResult = partyPositionService.findByUserId(identity.getId());
@@ -208,7 +211,7 @@ public class PosPlugin extends AbstractUserCalcPlugin
 				}
 			}
 			if(CollectionUtils.isNotEmpty(list)){
-				logger.info("skipped users: {}",list.toString());
+				logger.warn("skipped users: {}",list.toString());
 				return list;
 			}
 		}