|
|
|
@@ -484,7 +484,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
logger.info("微信退款订单申请成功: " + returnMap.toString()); |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -502,7 +502,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_FAIL.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg, returnMap); |
|
|
|
} |
|
|
|
} else { |
|
|
|
@@ -563,7 +563,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
logger.info("微信退款订单申请成功: " + returnMap.toString()); |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -581,7 +581,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_FAIL.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
throw new MallinkException(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -622,7 +622,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
} |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -819,7 +819,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
logger.info("微信退款订单申请成功: " + returnMap.toString()); |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -837,7 +837,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_FAIL.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg, returnMap); |
|
|
|
} |
|
|
|
} else { |
|
|
|
@@ -898,7 +898,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
logger.info("微信退款订单申请成功: " + returnMap.toString()); |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -916,7 +916,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_FAIL.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
throw new MallinkException(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -957,7 +957,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
} |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -987,7 +987,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
String refund_id = returnMap.get("refund_id"); |
|
|
|
return new ResultData(Result.SUCCESS, "退款", returnMap); |
|
|
|
} else { |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
String errMsg = ""; |
|
|
|
JSONObject errObj = errorRefundReqMap.getJSONObject(result_no); |
|
|
|
if (errObj != null) { |
|
|
|
@@ -1019,7 +1019,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
errMsg = returnMap.get("return_msg"); |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg, returnMap); |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -1475,7 +1475,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
logger.info("微信退款订单申请成功: " + returnMap.toString()); |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -1493,7 +1493,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_FAIL.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg, returnMap); |
|
|
|
} |
|
|
|
} else { |
|
|
|
@@ -1547,7 +1547,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
logger.info("微信退款订单申请成功: " + returnMap.toString()); |
|
|
|
try { |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_SUCCESS.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
return new ResultData(Result.SUCCESS, "退款订单申请成功", returnMap); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("微信退款订单更新入库出错: " + e.getMessage() + ", record: " + record.toString()); |
|
|
|
@@ -1565,7 +1565,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService { |
|
|
|
record.setFailReason(errMsg); |
|
|
|
} |
|
|
|
record.setRefundOrderStatus(EnumRefundStatus.REFUND_REQ_FAIL.getCode()); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKey(record); |
|
|
|
wxRefundOrderMapper.updateByPrimaryKeySelective(record); |
|
|
|
throw new MallinkException(ErrorCode.REFUND_ORDER_ERROR.getCode(), errMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
|