|
|
|
@ -190,6 +190,8 @@ public class InvoiceServiceImpl implements InvoiceService { |
|
|
|
|
if(ruleSplitEntityList.size() != 0){ |
|
|
|
|
djce = StrUtil.isBlank(ruleSplitEntityList.get(0).getDjce())?ConfigureConstant.STRING_0:ruleSplitEntityList.get(0).getDjce(); |
|
|
|
|
} |
|
|
|
|
if(ObjectUtil.isNotNull(collect.get(0).getXmdj()) && StrUtil.isNotBlank(collect.get(0).getXmdj()) && |
|
|
|
|
ObjectUtil.isNotNull(splitItem.getXmdj()) && StrUtil.isNotBlank(splitItem.getXmdj())){ |
|
|
|
|
BigDecimal abs = new BigDecimal(collect.get(0).getXmdj()).subtract(new BigDecimal(splitItem.getXmdj())).abs(); |
|
|
|
|
if (abs.compareTo(new BigDecimal(djce)) > 0) { |
|
|
|
|
Map map = new HashMap(); |
|
|
|
@ -199,6 +201,7 @@ public class InvoiceServiceImpl implements InvoiceService { |
|
|
|
|
map.put("jshj", commonOrderInfo.getOrderInfo().getKphjje()); |
|
|
|
|
djOverflowList.add(map); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
log.error("{}校验单价容差范围发生错误:在原结算单中未匹配到唯一明细,找到了{}条", LOGGER_MSG, collect.size()); |
|
|
|
|
R.error("校验单价容差范围发生错误:在原结算单中未匹配到唯一明细"); |
|
|
|
|