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