Browse Source

标签打印部分逻辑修改 选择打印的批次 打印数据

master
DouDou 5 months ago
parent
commit
f70f78715d
  1. 2
      src/main/java/com/spring/modules/shipment/entity/ShipmentDetail.java
  2. 6
      src/main/java/com/spring/modules/shipment/service/impl/ShipmentRollServiceImpl.java
  3. 3
      src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java

2
src/main/java/com/spring/modules/shipment/entity/ShipmentDetail.java

@ -35,5 +35,7 @@ public class ShipmentDetail {
@TableField(exist = false)
private String batchNo;
@TableField(exist = false)
private BigDecimal boxQty;
}

6
src/main/java/com/spring/modules/shipment/service/impl/ShipmentRollServiceImpl.java

@ -132,6 +132,12 @@ public class ShipmentRollServiceImpl extends ServiceImpl<ShipmentRollMapper, Shi
.eq(ShipmentRoll::getPartNo, rollData.getPartNo())
//.eq(ShipmentRoll::getBoxNo, shipmentRollVo.getBoxNo())
.eq(ShipmentRoll::getSite, shipmentRollVo.getSite()).count();
//查询已经扫描的卷数量
List<ShipmentRoll> scannedRolls = lambdaQuery()
.eq(ShipmentRoll::getShipmentId, shipmentRollVo.getShipmentId())
.eq(ShipmentRoll::getPartNo, rollData.getPartNo())
//.eq(ShipmentRoll::getBoxNo, shipmentRollVo.getBoxNo())
.eq(ShipmentRoll::getSite, shipmentRollVo.getSite()).list();
BigDecimal needRollNum = num.subtract(new BigDecimal(count));
if (BigDecimal.ZERO.compareTo(needRollNum) == 0){
throw new RuntimeException("该物料已满足发货数量,无法再次添加!");

3
src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java

@ -333,7 +333,8 @@ public class ShipmentServiceImpl extends ServiceImpl<ShipmentMapper, Shipment> i
}*/
String batchNo = shipmentDetail.getBatchNo();
String partMCO = shipmentRollMapper.queryPartPropertyItem(part.getSite(),part.getPartNo(),"P00017");
BigDecimal qty = queryShipDetail.getSaleQty();
//BigDecimal qty = shipmentDetail.getSaleQty();
BigDecimal qty = shipmentDetail.getBoxQty();
Date proDate = ship.getCreateDate();
ShipmentPrint shipmentPrint = new ShipmentPrint(address,address1,address2,city,state,country,postCode,vendorCode, queryShipDetail.getPoNumber(), queryShipDetail.getRefId(),ACCPartNo,part.getPartDesc(),version, qty,part.getUmId(),proDate,batchNo,part.getPhaseDescription(),partMCO);
return shipmentPrint;

Loading…
Cancel
Save