Commit 3962aacc by ilal Committed by chenzg

提交

parent 712ae882
...@@ -274,11 +274,16 @@ public class RouterUtils { ...@@ -274,11 +274,16 @@ public class RouterUtils {
for (Condition condition : listCondition) { for (Condition condition : listCondition) {
for (String string : condition.getValues()) { for (String string : condition.getValues()) {
if(obj.get(condition.getKey(),FromData.class).getValue() != null) {
// 简单工厂模式 - 判断条件 // 简单工厂模式 - 判断条件
compare = CompareFactory.createCompare(obj.get(condition.getKey(),FromData.class).getValue(), string, condition.getFormat()); compare = CompareFactory.createCompare(obj.get(condition.getKey(),FromData.class).getValue(), string, condition.getFormat());
if (!compare.GetResutl()) { if (!compare.GetResutl()) {
condition_b = false; condition_b = false;
} }
}else {
throw new Exception("审批流程设置有误");
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment