| | |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.query.UserAccountDetailQuery; |
| | | import com.ruoyi.system.service.*; |
| | | import com.ruoyi.system.vo.GetWithdrawalDetailVo; |
| | | import com.ruoyi.system.vo.RegionVo; |
| | | import com.ruoyi.system.vo.UserAccountVo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | public R<Page<TbAccountDetail>> getUserAccountDetail(UserAccountDetailQuery query) { |
| | | LoginUser loginUser = tokenService.getLoginUser(); |
| | | LambdaQueryWrapper<TbAccountDetail> wrapper = new LambdaQueryWrapper<>(); |
| | | if(StringUtils.isNotEmpty(query.getStartTime()) && StringUtils.isNotEmpty(query.getEndTime())){ |
| | | wrapper.between(TbAccountDetail::getCreateTime,query.getStartTime(),query.getEndTime()); |
| | | if(StringUtils.isNotEmpty(query.getTime())){ |
| | | wrapper.likeRight(TbAccountDetail::getCreateTime,query.getTime()); |
| | | } |
| | | wrapper.eq(TbAccountDetail::getUserId,loginUser.getUserId()); |
| | | wrapper.orderByDesc(TbAccountDetail::getCreateTime); |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "提现说明需求",tags = {"用户钱包模块"}) |
| | | @GetMapping("/getWithdrawalDetail") |
| | | public R<GetWithdrawalDetailVo> getWithdrawalDetail(@RequestParam String sourceId) { |
| | | TbWithdrawal withdrawal = withdrawalService.getById(sourceId); |
| | | GetWithdrawalDetailVo vo = new GetWithdrawalDetailVo(); |
| | | vo.setImg(withdrawal.getImg()); |
| | | vo.setRemark(withdrawal.getRemark()); |
| | | return R.ok(vo); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |