feat(warehouse): 配置退货仓基础信息

- 设置退货仓仓库编码为 return
- 设置退货仓仓库类型为 1
- 设置退货仓启用状态为启用
This commit is contained in:
2026-02-28 13:22:30 +08:00
parent bd6db145fe
commit 7cd7df3cef

View File

@@ -3667,11 +3667,14 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
}
if (oldCoil.getDataType() == 0) {
throw new RuntimeException("当前钢卷是历史钢卷");
throw new RuntimeException("钢卷是历史钢卷");
}
WmsWarehouseBo warehouseBo = new WmsWarehouseBo();
warehouseBo.setWarehouseName("退货仓");
warehouseBo.setWarehouseCode("return");
warehouseBo.setWarehouseType(1L);
warehouseBo.setIsEnabled(1);
List<WmsWarehouseVo> warehouseList = warehouseService.queryList(warehouseBo);
if (warehouseList == null || warehouseList.isEmpty()) {
throw new RuntimeException("退货仓不存在,请先配置退货仓");