| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.common.redis.service.RedisService; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.order.feignClient.OrderClient; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取所有用户积分列表 |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/getUserPointPageList") |
| | | @ApiOperation(value = "所有用户积分列表", tags = "后台-财务统计-用户积分统计") |
| | | public R<PageInfo<UserPointStatisticsVO>> getUserPointPageList(@RequestParam(value = "name",required = false) String name, |
| | | @ApiParam("当前页")@RequestParam("pageCurr") Integer pageCurr, |
| | | @ApiParam("分页大小")@RequestParam("pageSize") Integer pageSize) { |
| | | PageInfo<UserPointStatisticsVO> pageInfo=appUserService.getUserPointPageList(name,pageCurr,pageSize); |
| | | |
| | | return R.ok(pageInfo); |
| | | } |
| | | |
| | | @PostMapping("/saveOrUpdateAppUser") |
| | | Long saveOrUpdateAppUser(@RequestBody AppUser appuser){ |
| | | if (appuser.getId() == null) { |
| | | //保存用户 |
| | | appUserService.save(appuser); |
| | | }else { |
| | | appUserService.updateById(appuser); |
| | | } |
| | | return appuser.getId(); |
| | | |
| | | } |
| | | |
| | | } |
| | | |