This commit is contained in:
linfso 2025-01-11 20:00:02 +08:00
parent fcfdb26d29
commit dca978a281

View File

@ -4170,6 +4170,10 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
if(!CollectionUtils.isEmpty(declareGoodsList)){
for (EmisWaybillDeclareGoods itemGoods:declareGoodsList) {
if(StringUtils.isEmpty(itemGoods.getGoodsName())){
itemGoods.setGoodsName(emisWaybillOld.getGoodsInfo());
}
if(itemGoods.getCargoQty()!=null) {
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
}
@ -4358,6 +4362,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
if(!CollectionUtils.isEmpty(declareGoodsList)){
for (EmisWaybillDeclareGoods itemGoods:declareGoodsList) {
if(StringUtils.isEmpty(itemGoods.getGoodsName())){
itemGoods.setGoodsName(emisWaybillOld.getGoodsInfo());
}
if(itemGoods.getCargoQty()!=null) {
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
}