优化
This commit is contained in:
@@ -190,6 +190,9 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
||||
jsonMst.put("source_id", json.getString("supp_id"));
|
||||
jsonMst.put("source_name", json.getString("supp_name"));
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonMst.getString("source_id"))) {
|
||||
throw new BadRequestException("此到货单源单据 供应商ID关联不到供应商记录,请联系相关人员维护!");
|
||||
}
|
||||
mstTab.insert(jsonMst);
|
||||
}
|
||||
|
||||
@@ -238,6 +241,9 @@ public class ReceivemstServiceImpl implements ReceivemstService {
|
||||
jsonMst.put("source_id", json.getString("supp_id"));
|
||||
jsonMst.put("source_name", json.getString("supp_name"));
|
||||
}
|
||||
if (StrUtil.isEmpty(jsonMst.getString("source_id"))) {
|
||||
throw new BadRequestException("此到货单源单据 供应商ID关联不到供应商记录,请联系相关人员维护!");
|
||||
}
|
||||
mstTab.update(jsonMst);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user