diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java index 2e8124cb..b9e6b85c 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java @@ -116,14 +116,14 @@ public class DlRepairSoServiceImpl extends ServiceImpl { - if (item.getGoodsPrice() == null){ - throw exception0(500, "有配件未设置进价"); - } - }); - } + // 加个判断,可能出现没有设置价格的情况----需求说了非必填,注掉 +// if (repairSoRespVO.getGoodsList() != null){ +// repairSoRespVO.getGoodsList().forEach(item -> { +// if (item.getGoodsPrice() == null){ +// throw exception0(500, "有配件未设置进价"); +// } +// }); +// } //保存供应商 if (StringUtils.isEmpty(repairSoRespVO.getSupplierId())){ //采购单中录入供应商或无供应商情况