Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot
This commit is contained in:
@@ -68,8 +68,9 @@ public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements Di
|
||||
String dictCode = entity.getDictCode();
|
||||
|
||||
long count = this.count(new LambdaQueryWrapper<Dict>()
|
||||
.eq(Dict::getDictCode, dictCode)
|
||||
.eq(Dict::getDictCode, dictCode)
|
||||
);
|
||||
|
||||
Assert.isTrue(count == 0, "字典编码已存在");
|
||||
|
||||
return this.save(entity);
|
||||
|
||||
Reference in New Issue
Block a user