| | |
| | | return memberService.moneyFlows(moneyFlowDto); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "FCM-资金流水列表-互转记录") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = MoneyFlowVo.class) |
| | | }) |
| | | @PostMapping(value = "/moneyFlowInside") |
| | | public FebsResponse moneyFlowInside(@RequestBody MoneyFlowDto moneyFlowDto) { |
| | | return memberService.moneyFlowInside(moneyFlowDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "FCM-转账") |
| | | @PostMapping(value = "/transfer") |
| | | public FebsResponse transfer(@RequestBody @Validated TransferDto transferDto) { |
| | |
| | | MallMoneyFlow selectByOrderNoAndMemberId(@Param("orderNo")String orderNo, @Param("memberId")Long memberId, @Param("isReturn")int isReturn); |
| | | |
| | | MallMoneyFlow selectByOrderAndType(@Param("orderNo")String orderNo, @Param("type")int type, @Param("flowType")int flowType, @Param("memberId")Long memberId); |
| | | |
| | | IPage<MoneyFlowVo> selectApiFcmMoneyFlowInsideInPage(IPage<MoneyFlowVo> page, @Param("record") MoneyFlowDto moneyFlowDto); |
| | | } |
| | |
| | | FebsResponse unfreeze(UnfreezeDto unfreezeDto); |
| | | |
| | | FebsResponse memberSpeak(ApiMemberSpeakDto memberSpeakDto); |
| | | |
| | | FebsResponse moneyFlowInside(MoneyFlowDto moneyFlowDto); |
| | | } |
| | |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse moneyFlowInside(MoneyFlowDto moneyFlowDto) { |
| | | IPage<MoneyFlowVo> page = new Page<>(moneyFlowDto.getPageNum(), moneyFlowDto.getPageSize()); |
| | | Long id = LoginUserUtil.getLoginUser().getId(); |
| | | moneyFlowDto.setMemberId(id); |
| | | IPage<MoneyFlowVo> pages = mallMoneyFlowMapper.selectApiFcmMoneyFlowInsideInPage(page, moneyFlowDto); |
| | | return new FebsResponse().success().data(pages); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Set<String> objectsAccount = new HashSet<>(); |
| | | Set<String> objects = new HashSet<>(); |
| | |
| | | AND a.member_id = #{memberId} |
| | | AND a.order_no = #{orderNo} |
| | | </select> |
| | | |
| | | <select id="selectApiFcmMoneyFlowInsideInPage" resultType="cc.mrbird.febs.mall.vo.MoneyFlowVo"> |
| | | select |
| | | a.* |
| | | from mall_money_flow a |
| | | <where> |
| | | a.type in (2,3,4,5) |
| | | <if test="record.inOrOut == 3"> |
| | | and a.amount > 0 |
| | | </if> |
| | | <if test="record.inOrOut == 2"> |
| | | and 0 > a.amount |
| | | </if> |
| | | <if test="record.memberId != null"> |
| | | and a.member_id=#{record.memberId} |
| | | </if> |
| | | <if test="record.flowType != null and record.flowType != ''"> |
| | | and a.flow_type=#{record.flowType} |
| | | </if> |
| | | </where> |
| | | order by a.created_time desc |
| | | </select> |
| | | </mapper> |