“mitao”
2026-01-04 6ff2e616cd1c1e986735c5a8c1f991ab9dfe5ec4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.ruoyi.web.controller.api;
 
import com.ruoyi.system.service.ICBCNotifyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
/**
 * 工商银行支付回调接口
 *
 * @author mitao
 * @since 2025-12-16
 */
@Slf4j
@RestController
@RequestMapping("/icbc-notify")
@Api(tags = "工商银行支付回调接口")
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
public class ICBCPayNotifyController {
 
    private final ICBCNotifyService icbcNotifyService;
 
    /**
     * 大礼包商品订单支付回调(定金或全款)
     *
     * @param request  HTTP请求对象
     * @param response HTTP响应对象
     */
    @ApiOperation(value = "大礼包商品订单支付回调")
    @PostMapping("/big-gift/pay-notify")
    public void bigGiftPayNotify(HttpServletRequest request, HttpServletResponse response) {
        log.info("【工商银行】收到大礼包支付回调请求");
        icbcNotifyService.bigGiftPayNotify(request, response);
    }
 
    /**
     * 大礼包商品尾款支付回调
     *
     * @param request  HTTP请求对象
     * @param response HTTP响应对象
     */
    @ApiOperation(value = "大礼包商品尾款支付回调")
    @PostMapping("/big-gift/final-pay-notify")
    public void bigGiftFinalPayNotify(HttpServletRequest request, HttpServletResponse response) {
        log.info("【工商银行】收到大礼包尾款支付回调请求");
        icbcNotifyService.bigGiftFinalPayNotify(request, response);
    }
 
    /**
     * 实物商品订单支付回调
     *
     * @param request  HTTP请求对象
     * @param response HTTP响应对象
     */
    @ApiOperation(value = "实物商品订单支付回调")
    @PostMapping("/physical/pay-notify")
    public void physicalPayNotify(HttpServletRequest request, HttpServletResponse response) {
        log.info("【工商银行】收到实物商品支付回调请求");
        icbcNotifyService.physicalPayNotify(request, response);
    }
}