|
@ -45,7 +45,12 @@ public class BalanceController { |
|
|
@PreAuthorize("@ss.hasPermission('wms:balance:query')") |
|
|
@PreAuthorize("@ss.hasPermission('wms:balance:query')") |
|
|
public CommonResult<PageResult<BalanceRespVO>> getBalancePage(@Valid BalancePageReqVO pageVO) { |
|
|
public CommonResult<PageResult<BalanceRespVO>> getBalancePage(@Valid BalancePageReqVO pageVO) { |
|
|
PageResult<BalanceDO> pageResult = balanceService.getBalancePage(pageVO); |
|
|
PageResult<BalanceDO> pageResult = balanceService.getBalancePage(pageVO); |
|
|
return success(BalanceConvert.INSTANCE.convertPage(pageResult)); |
|
|
PageResult<BalanceRespVO> result = BalanceConvert.INSTANCE.convertPage(pageResult); |
|
|
|
|
|
for (BalanceRespVO vo : result.getList()) { |
|
|
|
|
|
//后端创建个字段作为前端展示的虚拟字段
|
|
|
|
|
|
vo.setCreator(userApi.getUser(Long.valueOf(vo.getCreator())).getNickname()); |
|
|
|
|
|
} |
|
|
|
|
|
return success(result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@PostMapping("/senior") |
|
|
@PostMapping("/senior") |
|
|