| | |
| | | return new FebsResponse().success().message("提交成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "绿色积分个人信息-个人买卖信息", notes = "绿色积分个人信息-个人买卖信息") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = ApiScoreVoucherRecordVo.class) |
| | | }) |
| | | @PostMapping(value = "/scoreVoucherList") |
| | | public FebsResponse scoreVoucherList(@RequestBody ApiScoreVoucherRecordDto apiScoreVoucherRecordDto) { |
| | | return scoreService.findMallScoreVoucherListInPage(apiScoreVoucherRecordDto); |
| | | } |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "第几页", example = "1") |
| | | private Integer pageNum; |
| | | |
| | | @ApiModelProperty(hidden = true) |
| | | private Long memberId; |
| | | |
| | | } |
| | |
| | | FebsResponse voucherBusinessSale(ApiVoucherBusinessDto apiVoucherBusinessDto); |
| | | |
| | | void withdrawal(WithdrawalDto withdrawalDto); |
| | | |
| | | FebsResponse findMallScoreVoucherListInPage(ApiScoreVoucherRecordDto apiScoreVoucherRecordDto); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse findMallScoreVoucherListInPage(ApiScoreVoucherRecordDto apiScoreVoucherRecordDto) { |
| | | IPage<ApiScoreVoucherRecordVo> page = new Page<>(apiScoreVoucherRecordDto.getPageNum(), apiScoreVoucherRecordDto.getPageSize()); |
| | | Long id = LoginUserUtil.getLoginUser().getId(); |
| | | apiScoreVoucherRecordDto.setMemberId(id); |
| | | IPage<ApiScoreVoucherRecordVo> pages = mallScoreVoucherMapper.findMallScoreVoucherListInPage(page, apiScoreVoucherRecordDto); |
| | | return new FebsResponse().success().data(pages); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void sign() { |
| | | MallMember member = LoginUserUtil.getLoginUser(); |
| | |
| | | FROM |
| | | mall_score_voucher a |
| | | LEFT JOIN mall_member b ON a.member_id = b.id |
| | | <where> |
| | | <if test="record.memberId!=null and record.memberId!=''"> |
| | | and a.member_id = #{record.memberId} |
| | | </if> |
| | | </where> |
| | | ORDER BY |
| | | a.CREATED_TIME DESC |
| | | </select> |