|
|
|
|
@ -103,8 +103,6 @@ public class WmsInstockDetailServiceImpl implements IWmsInstockDetailService {
|
|
|
|
|
.select(BaseMaterialInfo::getInspectionRequest)
|
|
|
|
|
.leftJoin(BaseMaterialInfo.class, BaseMaterialInfo::getMaterialId, WmsInstockDetail::getMaterialId)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getIsInspection()), WmsInstockDetail::getIsInspection, bo.getIsInspection())
|
|
|
|
|
.eq(bo.getInstockQty() != null, WmsInstockDetail::getInstockQty, bo.getInstockQty())
|
|
|
|
|
|
|
|
|
|
@ -260,6 +258,7 @@ public class WmsInstockDetailServiceImpl implements IWmsInstockDetailService {
|
|
|
|
|
WmsInstockPrint print = new WmsInstockPrint();
|
|
|
|
|
BeanUtils.copyProperties(bo, print);
|
|
|
|
|
print.setBatchCode(batchCode);
|
|
|
|
|
print.setMaterialId(bo.getMaterialId());
|
|
|
|
|
print.setApportionQty(BigDecimal.ONE); // 打印的包数:1包
|
|
|
|
|
print.setMaterialQty(currentPackageQty.longValue()); // 每包的物料数量
|
|
|
|
|
print.setInboundStatus("0"); // 入库状态(0-待入库,1-已入库,2-入库中)
|
|
|
|
|
@ -282,6 +281,7 @@ public class WmsInstockDetailServiceImpl implements IWmsInstockDetailService {
|
|
|
|
|
WmsInstockPrint print = new WmsInstockPrint();
|
|
|
|
|
BeanUtils.copyProperties(bo, print);
|
|
|
|
|
print.setBatchCode(batchCode);
|
|
|
|
|
print.setMaterialId(bo.getMaterialId());
|
|
|
|
|
print.setApportionQty(copies); // 打印的包数(打印份数)
|
|
|
|
|
print.setMaterialQty(detail.getInstockQty().longValue()); // 每包的物料数量(全部入库数量)
|
|
|
|
|
print.setInboundStatus("0");//入库状态(0-待入库,1-已入库,2-入库中)
|
|
|
|
|
|