md
This commit is contained in:
parent
fcfdb26d29
commit
dca978a281
@ -4170,6 +4170,10 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
if(!CollectionUtils.isEmpty(declareGoodsList)){
|
if(!CollectionUtils.isEmpty(declareGoodsList)){
|
||||||
for (EmisWaybillDeclareGoods itemGoods:declareGoodsList) {
|
for (EmisWaybillDeclareGoods itemGoods:declareGoodsList) {
|
||||||
|
if(StringUtils.isEmpty(itemGoods.getGoodsName())){
|
||||||
|
itemGoods.setGoodsName(emisWaybillOld.getGoodsInfo());
|
||||||
|
}
|
||||||
|
|
||||||
if(itemGoods.getCargoQty()!=null) {
|
if(itemGoods.getCargoQty()!=null) {
|
||||||
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
||||||
}
|
}
|
||||||
@ -4358,6 +4362,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
if(!CollectionUtils.isEmpty(declareGoodsList)){
|
if(!CollectionUtils.isEmpty(declareGoodsList)){
|
||||||
for (EmisWaybillDeclareGoods itemGoods:declareGoodsList) {
|
for (EmisWaybillDeclareGoods itemGoods:declareGoodsList) {
|
||||||
|
|
||||||
|
if(StringUtils.isEmpty(itemGoods.getGoodsName())){
|
||||||
|
itemGoods.setGoodsName(emisWaybillOld.getGoodsInfo());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(itemGoods.getCargoQty()!=null) {
|
if(itemGoods.getCargoQty()!=null) {
|
||||||
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user