Commit 6a1a27be authored by fangxinjiang's avatar fangxinjiang

社保自动化配置-fxj

parent 0ef53aab
......@@ -1329,13 +1329,9 @@ private R<Boolean> checkItemRepeat(List<SysAutoDictItem> autoDictItems, Map<Stri
if (Common.isNotNull(setInfo)) {
try {
// 添加了异常处理,避免 recordBase 不是合法数字格式时程序崩溃
if (CommonConstants.TWO_STRING.equals(rel.getPaymentType())) {
if (BigDecimal.valueOf(Double.valueOf(rel.getRecordBase())).compareTo(setInfo.getUpperLimit()) != 0) {
return R.failed("备案基数不等于社保户("+setInfo.getDepartName()+")最高基数:"+setInfo.getUpperLimit());
}
} else if (CommonConstants.ZERO_STRING.equals(rel.getPaymentType())){
if (CommonConstants.ZERO_STRING.equals(rel.getPaymentType())){
if (BigDecimal.valueOf(Double.valueOf(rel.getRecordBase())).compareTo(setInfo.getLowerLimit()) != 0) {
return R.failed("备案基数不等于社保户("+setInfo.getDepartName()+")最低基数:"+setInfo.getLowerLimit());
return R.failed("备案基数不等于配置名称("+rel.getConfigName()+")最低基数:"+setInfo.getLowerLimit());
}
}
} catch (NumberFormatException e) {
......
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