|
|
@@ -136,7 +136,7 @@ public class OrderRefundController {
|
|
|
@PostMapping("/applyAgain")
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@ApiOperation(value = "申请退款(再次提交)", notes = "申请退款(再次提交)")
|
|
|
- public ResponseEntity<String> applyAgain(@Valid @RequestBody OrderRefundParam orderRefundParam) {
|
|
|
+ public synchronized ResponseEntity<String> applyAgain(@Valid @RequestBody OrderRefundParam orderRefundParam) {
|
|
|
log.info("小程序(再次提交)申请退款参数:{}", JSONObject.toJSONString(orderRefundParam));
|
|
|
Long refundId = orderRefundParam.getRefundId();
|
|
|
CullenUtils.validateDataThrowException(refundId == null, "请输入旧退款订单ID...");
|
|
|
@@ -322,6 +322,7 @@ public class OrderRefundController {
|
|
|
.eq(OrderRefund::getOrderId, order.getOrderId())
|
|
|
.in(OrderRefund::getReturnMoneySts, returnMoneySts));
|
|
|
|
|
|
+ log.info("已存在退款订单数量{}", count);
|
|
|
if (count > 0) {
|
|
|
// 处理已存在退款的情况
|
|
|
throw new GlobalException("该订单已有退款正在进行中");
|