This commit is contained in:
parent
8a1b9e030c
commit
b5dd8325ab
|
|
@ -63,10 +63,12 @@ public class GoodsService extends BaseService {
|
|||
*/
|
||||
public Goods save(Goods goods) {
|
||||
String code = goods.getHilistCode();
|
||||
|
||||
if (!code.isEmpty()) {
|
||||
QueryWrapper<SocialDirectory> socialDirectoryWrapper = new QueryWrapper<>();
|
||||
socialDirectoryWrapper.eq("code", code);
|
||||
|
||||
CheckUtil.checkValue(socialDirectoryMapper.selectOne(socialDirectoryWrapper)==null, "医保目录编码不能为空");
|
||||
}
|
||||
|
||||
GoodsPricingModelEnum modelEnum = GoodsPricingModelEnum.getByPricingModel(goods.getPricingModel());
|
||||
if (modelEnum == null){
|
||||
|
|
|
|||
Loading…
Reference in New Issue