liurunyu
2024-10-12 708dce320caedf9973ff0282098fb70dafd6702e
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/daoSe/SeRechargeHistoryMapper.java
@@ -1,14 +1,19 @@
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/19 10:35
 * @LastEditTime 2023/12/19 10:35
 * @date 2023/12/23 8:47
 * @LastEditTime 2023/12/23 8:47
 * @Description
 */
public interface SeRechargeHistoryMapper {
@Mapper
public interface SeRechargeHistoryMapper extends BaseMapper<SeRechargeHistory> {
    int deleteByPrimaryKey(Long id);
    int insert(SeRechargeHistory record);
@@ -20,4 +25,11 @@
    int updateByPrimaryKeySelective(SeRechargeHistory record);
    int updateByPrimaryKey(SeRechargeHistory record);
    /**
     * 依据水卡ID将最后一条无效状态的充值历史记录改为有效
     * @param cardId
     * @return
     */
    Integer turnRechargeHistoryValidByCardId(@Param("cardId") Long cardId);
}