|
@@ -408,20 +408,15 @@ public class CommonRule {
|
|
|
List<T> orginNameList = map.get(ruleBaseDTO.getBaseLibName());
|
|
|
if (map.get(ruleBaseDTO.getBaseLibName()) != null) {
|
|
|
for (T bean : orginNameList) {
|
|
|
- String orderDateValue = ReflectUtil.getProperty(ruleSimpleDTO, "dateValue");
|
|
|
- String beanDateValue = ReflectUtil.getProperty(bean, "dateValue");
|
|
|
- int dateFlag = CoreUtil.compareTime(beanDateValue, orderDateValue);
|
|
|
- if (dateFlag == 1) {
|
|
|
- String orginName = ReflectUtil.getProperty(bean, "name");
|
|
|
- // A与B不宜同时进行, B与A不宜同时进行 只能提示一个
|
|
|
- // if (!set.contains(ruleSimpleDTO.getLibName() + "******" + orginName)) {
|
|
|
- // set.add(ruleSimpleDTO.getLibName() + "******" + orginName);
|
|
|
- // set.add(orginName + "******" + ruleSimpleDTO.getLibName());
|
|
|
- ruleSimpleDTO.setContent(orginName);
|
|
|
- ruleSimpleDTO.setConType(conType);
|
|
|
- BillMsg billMsg = msgNewUtil.getCommonBillMsg(ruleSimpleDTO);
|
|
|
- CoreUtil.addBeanToList(billMsgList, billMsg);
|
|
|
- // }
|
|
|
+ String orginName = ReflectUtil.getProperty(bean, "name");
|
|
|
+ // A与B不宜同时进行, B与A不宜同时进行 只能提示一个
|
|
|
+ if (!set.contains(ruleSimpleDTO.getLibName() + "******" + orginName)) {
|
|
|
+ set.add(ruleSimpleDTO.getLibName() + "******" + orginName);
|
|
|
+ set.add(orginName + "******" + ruleSimpleDTO.getLibName());
|
|
|
+ ruleSimpleDTO.setContent(orginName);
|
|
|
+ ruleSimpleDTO.setConType(conType);
|
|
|
+ BillMsg billMsg = msgNewUtil.getCommonBillMsg(ruleSimpleDTO);
|
|
|
+ CoreUtil.addBeanToList(billMsgList, billMsg);
|
|
|
}
|
|
|
}
|
|
|
}
|