fix:物料仓库映射
This commit is contained in:
@@ -184,7 +184,7 @@ public class MesToWmsController {
|
||||
RegionConstant.H001.equals(warehouseCode) || RegionConstant.H002.equals(warehouseCode)) {
|
||||
structureDemandParams.add(param);
|
||||
} else if (RegionConstant.R005.equals(warehouseCode)) {
|
||||
// R005 只记录需求:库存足够落 R005 需求单(页面可转普通需求单人工出库),不足直接转普通需求单
|
||||
// 库存足够落 R005 需求单(页面可转普通需求单人工出库),不足直接转普通需求单
|
||||
if (r005StockEnough(param)) {
|
||||
pmDemandR005Service.saveDemand(param);
|
||||
} else {
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.nl.wms.pda_manage.ios_manage.purchase.service.SapInboundDocResolver;
|
||||
import org.nl.wms.pda_manage.ios_manage.purchase.service.dto.*;
|
||||
import org.nl.wms.pda_manage.ios_manage.purchase.service.vo.PurchaseMatInfoVo;
|
||||
import org.nl.wms.pm_manage.SourceBillTypeEnum;
|
||||
import org.nl.wms.pm_manage.demand.service.IMaterialWarehouseMappingService;
|
||||
import org.nl.wms.pm_manage.listener.PmManageEvent;
|
||||
import org.nl.wms.pm_manage.purchase.ListenerHandler.PurchaseListenerParams;
|
||||
import org.nl.wms.pm_manage.purchase.service.PurchaseService;
|
||||
@@ -132,8 +131,6 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
@Autowired
|
||||
private IPmStockReturnService iPmStockReturnService;
|
||||
@Autowired
|
||||
private IMaterialWarehouseMappingService materialWarehouseMappingService;
|
||||
@Autowired
|
||||
private CallbackStrategyPublish callbackStrategyPublish;
|
||||
@Autowired
|
||||
private MaterialDocumentMapper documentMapper;
|
||||
@@ -742,7 +739,6 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
dtl.put("callback_strategy", resolveCallbackStrategy(plateDao.getExt_type()));
|
||||
// 调用新增
|
||||
tableData.add(dtl);
|
||||
materialWarehouseMappingService.saveOrUpdateMapping(materDao.getMaterial_code(),storeDao.getStor_code());
|
||||
}
|
||||
|
||||
jsonMst.put("tableData",tableData);
|
||||
@@ -843,7 +839,6 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
dtl.put("callback_strategy", resolveCallbackStrategy(plateDao.getExt_type()));
|
||||
// 调用新增入库单
|
||||
tableData.add(dtl);
|
||||
materialWarehouseMappingService.saveOrUpdateMapping(materDao.getMaterial_code(),storeDao.getStor_code());
|
||||
}
|
||||
|
||||
jsonMst.put("tableData",tableData);
|
||||
|
||||
@@ -9,6 +9,7 @@ import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.common.exception.BadRequestException;
|
||||
import org.nl.common.utils.IdUtil;
|
||||
import org.nl.common.utils.SecurityUtils;
|
||||
import org.nl.wms.pm_manage.demand.service.IMaterialWarehouseMappingService;
|
||||
import org.nl.wms.warehouse_manage.enums.IOSEnum;
|
||||
import org.nl.wms.warehouse_manage.inventory.IStInventoryService;
|
||||
import org.nl.wms.warehouse_manage.inventory.core.enums.InventoryChangeType;
|
||||
@@ -43,6 +44,8 @@ public class StInventoryServiceImpl implements IStInventoryService {
|
||||
private IMdPbGroupplateService iMdPbGroupplateService;
|
||||
@Autowired
|
||||
private IStIvtStructivtflowService stIvtStructivtflowService;
|
||||
@Autowired
|
||||
private IMaterialWarehouseMappingService materialWarehouseMappingService;
|
||||
|
||||
@Override
|
||||
public List<StInventoryDto> queryInventory(StInventoryQuery query){
|
||||
@@ -318,7 +321,9 @@ public class StInventoryServiceImpl implements IStInventoryService {
|
||||
record.setGrowth(true);
|
||||
record.setTask_type(invParam.getRemark());
|
||||
recordsInFinish.add(record);
|
||||
|
||||
}
|
||||
materialWarehouseMappingService.saveOrUpdateMapping(invParam.getMaterialCode(),invParam.getStorCode());
|
||||
}
|
||||
stIvtStructivtflowService.saveBatch(recordsInFinish);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user