|
|
|
@ -166,8 +166,6 @@ public class BaseBarcodesInServiceImpl extends ServiceImpl<BaseBarcodesInMapper, |
|
|
|
one = getOne(wrapper); |
|
|
|
one = getOne(wrapper); |
|
|
|
} |
|
|
|
} |
|
|
|
String color = bo.getColor(); |
|
|
|
String color = bo.getColor(); |
|
|
|
if (one == null) { |
|
|
|
|
|
|
|
qrCodeList.add(bo.getQrCode()); |
|
|
|
|
|
|
|
String isPunching = "0"; |
|
|
|
String isPunching = "0"; |
|
|
|
String isSplit = "0"; |
|
|
|
String isSplit = "0"; |
|
|
|
String punchingResult = "0"; |
|
|
|
String punchingResult = "0"; |
|
|
|
@ -180,6 +178,10 @@ public class BaseBarcodesInServiceImpl extends ServiceImpl<BaseBarcodesInMapper, |
|
|
|
if (bo.getPunchingResult() == true) { |
|
|
|
if (bo.getPunchingResult() == true) { |
|
|
|
punchingResult = "1"; |
|
|
|
punchingResult = "1"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
goodsNo = color + bo.getVehicheModel() + bo.getLocation() +isSplit + isPunching + bo.getOrientation()+bo.getLocationCode(); |
|
|
|
|
|
|
|
if (one == null) { |
|
|
|
|
|
|
|
qrCodeList.add(bo.getQrCode()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baseBarcodesIn = BeanUtil.toBean(bo, BaseBarcodesIn.class); |
|
|
|
baseBarcodesIn = BeanUtil.toBean(bo, BaseBarcodesIn.class); |
|
|
|
baseBarcodesIn.setIsPunching(isPunching); |
|
|
|
baseBarcodesIn.setIsPunching(isPunching); |
|
|
|
@ -190,7 +192,7 @@ public class BaseBarcodesInServiceImpl extends ServiceImpl<BaseBarcodesInMapper, |
|
|
|
baseBarcodesIn.setBranchId(branchId); |
|
|
|
baseBarcodesIn.setBranchId(branchId); |
|
|
|
baseBarcodesIn.setIsRepair("0"); |
|
|
|
baseBarcodesIn.setIsRepair("0"); |
|
|
|
|
|
|
|
|
|
|
|
goodsNo = color + bo.getVehicheModel() + bo.getLocation() +isSplit + isPunching + bo.getOrientation()+bo.getLocationCode(); |
|
|
|
|
|
|
|
if (!goodnoList.contains(goodsNo)) { |
|
|
|
if (!goodnoList.contains(goodsNo)) { |
|
|
|
BaseGoodsAddBo baseGoodsAddBo = new BaseGoodsAddBo(); |
|
|
|
BaseGoodsAddBo baseGoodsAddBo = new BaseGoodsAddBo(); |
|
|
|
goodnoList.add(goodsNo); |
|
|
|
goodnoList.add(goodsNo); |
|
|
|
@ -214,6 +216,7 @@ public class BaseBarcodesInServiceImpl extends ServiceImpl<BaseBarcodesInMapper, |
|
|
|
String colorOld = one.getColor(); |
|
|
|
String colorOld = one.getColor(); |
|
|
|
if (!color.equals(colorOld)){ |
|
|
|
if (!color.equals(colorOld)){ |
|
|
|
one.setColor(color); |
|
|
|
one.setColor(color); |
|
|
|
|
|
|
|
one.setGoodsNo(goodsNo); |
|
|
|
inList.add(one); |
|
|
|
inList.add(one); |
|
|
|
} |
|
|
|
} |
|
|
|
qrCodeList.add(bo.getQrCode()); |
|
|
|
qrCodeList.add(bo.getQrCode()); |
|
|
|
|