♻️ 代码生成支持动态添加字典

# Conflicts:
#	pigx-upms/pigx-upms-biz/src/main/java/com/pig4cloud/pigx/admin/controller/SysDictController.java
This commit is contained in:
冷冷 committed 2024-08-21 22:34:35 +08:00
1 parent efcc22c6e2
commit 63dc0820d7
1 file changed
+3 -1
@@ -105,7 +105,9 @@ public class SysDictController {
@GetMapping("/type/{type}")
@Cacheable(value = CacheConstants.DICT_DETAILS, key = "#type", unless = "#result.data.isEmpty()")
public R<List<SysDictItem>> getDictByType(@PathVariable String type) {
return R.ok(sysDictItemService.list(Wrappers.<SysDictItem>query().lambda().eq(SysDictItem::getDictType, type)
return R.ok(sysDictItemService.list(Wrappers.<SysDictItem>query()
.lambda()
.eq(SysDictItem::getDictType, type)
.orderByDesc(SysDictItem::getSortOrder)));
}