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