mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
♻️ 代码生成支持动态添加字典
# Conflicts: # pigx-upms/pigx-upms-biz/src/main/java/com/pig4cloud/pigx/admin/controller/SysDictController.java
This commit is contained in:
1 parent
efcc22c6e2
commit
63dc0820d7
1 file changed
+3
-1
+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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user