| | |
| | | if ("00000000".equals(refund.get("resp_code")) && "S".equals(refund.get("trans_stat"))) { |
| | | orderLogistics.setState(10); |
| | | }else if (!"00000000".equals(refund.get("resp_code"))) { |
| | | return ResultUtil.error("订单取消失败:" + refund.get("resp_desc").toString()); |
| | | // return ResultUtil.success("订单取消:" + refund.get("resp_desc").toString()); |
| | | } |
| | | orderLogisticsMapper.updateById(orderLogistics); |
| | | } |
| | |
| | | }else */if(query.getPayType()==2){//支付宝 |
| | | //Map<String, String> map = payMoneyUtil.aliRefund(query.getCode(), query.getAmount().toString()); |
| | | UserCouponRecord userCouponRecord = userCouponRecordService.selectById(couponId); |
| | | userCouponRecord.setState(1); |
| | | userCouponRecordService.updateById(userCouponRecord); |
| | | if(userCouponRecord!=null){ |
| | | userCouponRecord.setState(1); |
| | | userCouponRecordService.updateById(userCouponRecord); |
| | | } |
| | | orderLogistics.setCouponMoney(0.00); |
| | | //if(!"10000".equals(map.get("code"))){ |
| | | // return ResultUtil.error(map.get("msg")); |
| | |
| | | if ("00000000".equals(refund.get("resp_code")) && "S".equals(refund.get("trans_stat"))) { |
| | | orderLogistics.setState(10); |
| | | }else if (!"00000000".equals(refund.get("resp_code"))) { |
| | | return ResultUtil.error("订单取消失败:" + refund.get("resp_desc").toString()); |
| | | // return ResultUtil.success("订单取消:" + refund.get("resp_desc").toString()); |
| | | } |
| | | orderLogisticsMapper.updateById(orderLogistics); |
| | | } |