xiaoyong931011
2023-03-07 6f566ca6f052e79b66921887f321d924702a12e2
src/main/java/cc/mrbird/febs/mall/service/impl/CommonService.java
@@ -73,4 +73,13 @@
        dic.setDescription(description);
        dataDictionaryCustomMapper.insert(dic);
    }
    @Override
    public void updateDataDic(String type, String code, String value) {
        DataDictionaryCustom dic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(type, code);
        if (dic != null) {
            dic.setValue(value);
            dataDictionaryCustomMapper.updateById(dic);
        }
    }
}