|
|
|
@ -96,6 +96,7 @@ public class WmsRawReturnServiceImpl implements IWmsRawReturnService {
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public WmsRawReturn selectWmsRawReturnByRawReturnId4Confirm(Long rawReturnId) {
|
|
|
|
|
//获取退库记录with退库记录明细列表
|
|
|
|
|
WmsRawReturn rawReturn = wmsRawReturnMapper.selectWmsRawReturnByRawReturnId(rawReturnId);
|
|
|
|
|
Long materialId = rawReturn.getMaterialId() == null ? 0L : rawReturn.getMaterialId();
|
|
|
|
|
Long productId = rawReturn.getProductId() == null ? 0L : rawReturn.getProductId();
|
|
|
|
@ -412,7 +413,7 @@ public class WmsRawReturnServiceImpl implements IWmsRawReturnService {
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@Override
|
|
|
|
|
public int applyRawReturn(WmsRawReturn wmsRawReturn) {
|
|
|
|
|
//申请退库不指定库位,申请退库的多个物料生成多条退库
|
|
|
|
|
//申请退库不指定库位,申请退库的多个物料生成多条退库记录
|
|
|
|
|
List<WmsRawReturnDetail> rawReturnDetails = wmsRawReturn.getWmsRawReturnDetailList();
|
|
|
|
|
//根据物料ID分组获取总申请数量
|
|
|
|
|
Map<Long, BigDecimal> rawReturnDetailMap = rawReturnDetails.stream()
|
|
|
|
|