This commit is contained in:
砂糖
2026-02-28 13:59:55 +08:00

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("退货仓不存在,请先配置退货仓");