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);
|
}
|