Sfoglia il codice sorgente

字典detail不可重复

大数据与最优化研究所 4 mesi fa
parent
commit
930efce9a7

+ 1 - 1
src/main/java/com/xjrsoft/module/system/controller/DictionarydetailController.java

@@ -121,7 +121,7 @@ public class DictionarydetailController {
     @ApiOperation(value = "修改数据字典详情")
     public R update(@Valid @RequestBody UpdateDictionaryDetailDto dto){
         long count = dictionarydetailService.count(Wrappers.<DictionaryDetail>query().lambda()
-                .eq(DictionaryDetail::getItemId, dto.getItemId())
+//                .eq(DictionaryDetail::getItemId, dto.getItemId())
                 .ne(DictionaryDetail::getId,dto.getId())
                 .and(wrapper -> wrapper.eq(DictionaryDetail::getName, dto.getName())
                         .or().eq(DictionaryDetail::getValue, dto.getValue())