This commit is contained in:
ray committed 2024-11-09 00:31:21 +08:00
commit 1f719a6d9d
15 files changed
+67 -57

No files matched your search

@@ -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);