Pu Zhibing
8 天以前 7a4f9541331bef779a506b38a27ed5c3373c0bec
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
package com.ruoyi.integration.controller;
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.integration.api.model.TransactionRecord;
import com.ruoyi.integration.mongodb.service.TransactionRecordService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @author zhibing.pu
 * @Date 2025/2/13 14:17
 */
@RestController
@RequestMapping("/transactionRecord")
public class TransactionRecordController {
    
    @Resource
    private TransactionRecordService transactionRecordService;
    
    
    /**
     * 根据订单流水号查询账单数据
     * @param code
     * @return
     */
    @PostMapping("/findTransactionRecord")
    public R<TransactionRecord> findTransactionRecord(@RequestParam(value = "code") String code){
        TransactionRecord transactionRecord = transactionRecordService.findOne(code);
        return R.ok(transactionRecord);
    }
}