mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
🎨 Improving structure / format of the code. 格式化代码
This commit is contained in:
parent
0454a69e49
commit
8f026ada0f
@ -75,9 +75,10 @@ public class SysDictController {
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
public R<IPage<SysDict>> getDictPage(Page page, SysDict sysDict) {
|
||||
return R.ok(sysDictService.page(page, Wrappers.<SysDict>lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(sysDict.getDictKey()), SysDict::getDictKey, sysDict.getDictKey())
|
||||
.orderByDesc(SysDict::getUpdateTime)));
|
||||
return R.ok(sysDictService.page(page,
|
||||
Wrappers.<SysDict>lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(sysDict.getDictKey()), SysDict::getDictKey, sysDict.getDictKey())
|
||||
.orderByDesc(SysDict::getUpdateTime)));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -88,7 +89,10 @@ public class SysDictController {
|
||||
@GetMapping("/key/{key}")
|
||||
@Cacheable(value = CacheConstants.DICT_DETAILS, key = "#key")
|
||||
public R<List<SysDictItem>> getDictByKey(@PathVariable String key) {
|
||||
return R.ok(sysDictItemService.list(Wrappers.<SysDictItem>query().lambda().eq(SysDictItem::getDictKey, key).orderByAsc(SysDictItem::getSortOrder)));
|
||||
return R.ok(sysDictItemService.list(Wrappers.<SysDictItem>query()
|
||||
.lambda()
|
||||
.eq(SysDictItem::getDictKey, key)
|
||||
.orderByAsc(SysDictItem::getSortOrder)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user