liurunyu
2024-11-22 72b5d23ab48368c9a8da28b91d0da1e6d7d1c4f0
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.dy.pipIrrGlobal.daoSe;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoSe.SeRechargeHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
/**
 * @author ZhuBaoMin
 * @date 2023/12/23 8:47
 * @LastEditTime 2023/12/23 8:47
 * @Description
 */
 
@Mapper
public interface SeRechargeHistoryMapper extends BaseMapper<SeRechargeHistory> {
    int deleteByPrimaryKey(Long id);
 
    int insert(SeRechargeHistory record);
 
    int insertSelective(SeRechargeHistory record);
 
    SeRechargeHistory selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(SeRechargeHistory record);
 
    int updateByPrimaryKey(SeRechargeHistory record);
 
    /**
     * 依据水卡ID将最后一条无效状态的充值历史记录改为有效
     * @param cardId
     * @return
     */
    Integer turnRechargeHistoryValidByCardId(@Param("cardId") Long cardId);
}