wlzboy
2025-12-02 d294abb765e4ed349907c92ce313689c6299ba7d
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
package com.ruoyi.system.mapper;
 
import java.util.List;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.domain.PaidMoney;
import org.apache.ibatis.annotations.Param;
 
/**
 * 旧系统支付记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
@DataSource(DataSourceType.SQLSERVER)
public interface PaidMoneyMapper {
    
    /**
     * 根据ID查询支付记录
     * 
     * @param id 主键
     * @return 支付记录
     */
    PaidMoney selectById(Long id);
    
    /**
     * 根据ServiceOrdIDDt和DispatchOrdIDDt查询支付记录列表
     * 
     * @param serviceOrdIDDt 服务订单ID
     * @param dispatchOrdIDDt 调度订单ID
     * @return 支付记录列表
     */
    List<PaidMoney> selectByOrderIds(@Param("serviceOrdIDDt") Long serviceOrdIDDt, 
                                      @Param("dispatchOrdIDDt") Long dispatchOrdIDDt);
    
    /**
     * 新增支付记录
     * 
     * @param paidMoney 支付记录
     * @return 结果
     */
    int insert(PaidMoney paidMoney);
    
    /**
     * 更新支付记录
     * 
     * @param paidMoney 支付记录
     * @return 结果
     */
    int update(PaidMoney paidMoney);
    
    /**
     * 删除支付记录
     * 
     * @param id 主键
     * @return 结果
     */
    int deleteById(Long id);
    
    /**
     * 查询最近N天的支付记录(用于批量同步)
     * 
     * @param days 最近N天
     * @return 支付记录列表
     */
    List<PaidMoney> selectRecentRecords(@Param("days") Integer days);
}