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