fix(生产入库单申请):参数名修改
This commit is contained in:
parent
999a81ea0c
commit
958962a4c1
@ -426,19 +426,19 @@ public class ZStoragRequestServiceImpl extends ServiceImpl<ZStoragRequestMapper,
|
||||
public ZStoragRequestDetail createZStoragRequestDetail(String targetWarehouse,ZStoragRequestDetail result,Inventory inv) {
|
||||
// 来源仓库
|
||||
// 校验来源仓是否是带工作中心和车间的,不是报错"xx条码xx仓库不属于线边仓库,请检查!"
|
||||
String storageLocationBo = inv.getWmsStorageBinBo();
|
||||
if (StrUtil.isNotBlank(storageLocationBo)) {
|
||||
String storageBinBo = inv.getWmsStorageBinBo();
|
||||
if (StrUtil.isNotBlank(storageBinBo)) {
|
||||
// 获取仓库表信息 来源仓为空
|
||||
ZStoragRequest sourceWarehouse = zStoragRequestMapper.getSourceWarehouse(TenantContextHolder.getTenantId(), storageLocationBo);
|
||||
ZStoragRequest sourceWarehouse = zStoragRequestMapper.getSourceWarehouse(TenantContextHolder.getTenantId(), storageBinBo);
|
||||
if (sourceWarehouse != null) {
|
||||
if (StringUtils.isNotEmpty(sourceWarehouse.getSourceWarehouse())) {
|
||||
// 来源仓库
|
||||
result.setSourceWarehouse(sourceWarehouse.getSourceWarehouse());
|
||||
} else {
|
||||
throw BusinessException.build(MessageFormat.format("条码号[{0}]仓库[{1}]不属于线边仓库,请检查!", inv.getInventoryId(), storageLocationBo));
|
||||
throw BusinessException.build(MessageFormat.format("条码号[{0}]仓库[{1}]不属于线边仓库,请检查!", inv.getInventoryId(), storageBinBo));
|
||||
}
|
||||
} else {
|
||||
throw BusinessException.build(MessageFormat.format("条码号[{0}]仓库[{1}]不属于线边仓库,请检查!", inv.getInventoryId(), storageLocationBo));
|
||||
throw BusinessException.build(MessageFormat.format("条码号[{0}]仓库[{1}]不属于线边仓库,请检查!", inv.getInventoryId(), storageBinBo));
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@ -42,7 +42,7 @@ public interface ZStoragRequestMapper extends BaseMapper<ZStoragRequest> {
|
||||
// 生产入库单申请-导出按钮事件
|
||||
List<ZStoragRequest> zStoragRequestList(@Param("dto") String site, @Param("dto") ZStoragRequest dto);
|
||||
|
||||
ZStoragRequest getSourceWarehouse(@Param("site") String site, @Param("storageLocationBo") String storageLocationBo);
|
||||
ZStoragRequest getSourceWarehouse(@Param("site") String site, @Param("storageBinBo") String storageBinBo);
|
||||
|
||||
ZStoragRequest getTargetWarehouse(@Param("site")String site, @Param("targetWarehouse") String targetWarehouse, @Param("targetWarehouseList") List<String> targetWarehouseList);
|
||||
|
||||
|
||||
@ -258,7 +258,7 @@
|
||||
inner join wms_storage_location wsl on wsl.HANDLE = wsb.STORAGE_LOCATION_BO
|
||||
inner join wms_warehouse ww on ww.HANDLE = wsl.WAREHOUSE_BO
|
||||
where wsb.SITE = #{site}
|
||||
and wsb.HANDLE = #{storageLocationBo}
|
||||
and wsb.HANDLE = #{storageBinBo}
|
||||
and wsl.IS_DEFAULT = 'Y'
|
||||
and ww.`TYPE` = 'XBC'
|
||||
</select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user