Commit 10585d14 authored by hongguangwu's avatar hongguangwu

MVP1.7.9-判重

parent f416ab09
......@@ -489,10 +489,10 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
}
newKeyDeptNoMap.put(key, insurancePreVo.getDeptNo());
if (keyMap.get(key) == null) {
if (Common.isEmpty(insurancePreVo.getModelType()) || insurancePreVo.getModelType().equals(CommonConstants.THREE_STRING)) {
if (Common.isEmpty(insurancePreVo.getModelType()) || !insurancePreVo.getModelType().equals(CommonConstants.THREE_STRING)) {
keyMap.put(key, CommonConstants.ONE_INT);
}
} else {
} else if (Common.isEmpty(insurancePreVo.getModelType()) || !insurancePreVo.getModelType().equals(CommonConstants.THREE_STRING)) {
return R.failed("保险公司、险种、购买标准、保单起、止日期不可同时重复!");
}
......
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