注掉必填判断
This commit is contained in:
parent
545cf7eea9
commit
977fb20920
@ -116,14 +116,14 @@ public class DlRepairSoServiceImpl extends ServiceImpl<DlRepairSoMapper, DlRepai
|
||||
@Override
|
||||
public void createRepairSo(DlRepairSoRespVO repairSoRespVO) {
|
||||
repairSoRespVO.setSoTime(new Date());
|
||||
// 加个判断,可能出现没有设置价格的情况
|
||||
if (repairSoRespVO.getGoodsList() != null){
|
||||
repairSoRespVO.getGoodsList().forEach(item -> {
|
||||
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())){
|
||||
//采购单中录入供应商或无供应商情况
|
||||
|
Loading…
Reference in New Issue
Block a user