This commit is contained in:
parent
45810692a3
commit
8a1b9e030c
|
|
@ -71,7 +71,7 @@ public class GoodsController extends BaseController {
|
|||
if (goods.getIdCode() == null || goods.getIdCode().isEmpty()){
|
||||
goods.setIdCode("");
|
||||
}
|
||||
Goods dbGoods = goodsService.createGoods(goods);
|
||||
Goods dbGoods = goodsService.save(goods);
|
||||
|
||||
return success(dbGoods);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public class GoodsService extends BaseService {
|
|||
String code = goods.getHilistCode();
|
||||
QueryWrapper<SocialDirectory> socialDirectoryWrapper = new QueryWrapper<>();
|
||||
socialDirectoryWrapper.eq("code", code);
|
||||
|
||||
|
||||
CheckUtil.checkValue(socialDirectoryMapper.selectOne(socialDirectoryWrapper)==null, "医保目录编码不能为空");
|
||||
|
||||
GoodsPricingModelEnum modelEnum = GoodsPricingModelEnum.getByPricingModel(goods.getPricingModel());
|
||||
|
|
|
|||
Loading…
Reference in New Issue