| | |
| | | private String name; |
| | | |
| | | private String withdrawNo; |
| | | |
| | | private String remark; |
| | | } |
| | |
| | | private String phone; |
| | | |
| | | private String bindPhone; |
| | | private String remark; |
| | | } |
| | |
| | | @Autowired |
| | | private MallMoneyFlowMapper mallMoneyFlowMapper; |
| | | |
| | | private final IApiMallMemberWalletService iApiMallMemberWalletService; |
| | | |
| | | @GetMapping(value = "/unipayCallBack") |
| | | public String unipayCallBack(HttpServletRequest request, UniPayCallBackDto uniPayCallBackDto){ |
| | | log.info("进入汇聚支付聚合支付回调"+ JSONUtil.parseObj(uniPayCallBackDto)); |
| | |
| | | BigDecimal paidAmount = singlePayCallBackDto.getPaidAmount(); |
| | | BigDecimal paidAmountFee = singlePayCallBackDto.getFee(); |
| | | String errorCode = singlePayCallBackDto.getErrorCode(); |
| | | String errorCodeDesc = singlePayCallBackDto.getErrorCodeDesc(); |
| | | String merchantOrderNo = singlePayCallBackDto.getMerchantOrderNo(); |
| | | |
| | | log.info("进入汇聚支付代付回调"+status+";"+paidAmount+";"+paidAmountFee+";"); |
| | |
| | | mallMoneyFlowMapper.updateById(mallMoneyFlow); |
| | | } |
| | | } |
| | | }else{ |
| | | QueryWrapper<MallMemberWithdraw> objectQueryWrapper = new QueryWrapper<>(); |
| | | objectQueryWrapper.eq("withdraw_no",merchantOrderNo); |
| | | MallMemberWithdraw mallMemberWithdraw = mallMemberWithdrawMapper.selectOne(objectQueryWrapper); |
| | | if(ObjectUtil.isNotEmpty(mallMemberWithdraw)){ |
| | | mallMemberWithdraw.setRemark(errorCodeDesc); |
| | | mallMemberWithdrawMapper.updateById(mallMemberWithdraw); |
| | | } |
| | | } |
| | | |
| | | SinglePayCallBackVo singlePayCallBackVo = new SinglePayCallBackVo(); |
| | |
| | | a.amount amount, |
| | | a.amount_fee amountFee, |
| | | a.withdraw_no withdrawNo, |
| | | a.remark remark, |
| | | a.status status, |
| | | b.name, |
| | | b.bind_phone bindPhone, |
| | |
| | | {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'}, |
| | | {field: 'amount', title: '金额', minWidth: 150,align:'left'}, |
| | | {field: 'amountFee', title: '手续费', minWidth: 150,align:'left'}, |
| | | {field: 'remark', title: '错误信息', minWidth: 150,align:'left'}, |
| | | {field: 'status', title: '状态', |
| | | templet: function (d) { |
| | | if (d.status === 1) { |