Administrator
2023-12-20 db9aadf9df7d875aec7da5ab957fbd2e87557fcc
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
package com.dy.pipIrrGlobal.daoSe;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoSe.SeClientCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2023/12/18 16:26
 * @LastEditTime 2023/12/18 16:26
 * @Description
 */
 
@Mapper
public interface SeClientCardMapper extends BaseMapper<SeClientCard> {
    int deleteByPrimaryKey(Long id);
 
    int insert(SeClientCard record);
 
    int insertSelective(SeClientCard record);
 
    SeClientCard selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(SeClientCard record);
 
    int updateByPrimaryKey(SeClientCard record);
 
    /**
     * 依据水卡地址获取水卡编号(12月19日废弃)
     * @param cardAddr
     * @return
     */
    Long getCardIdByAddr(@Param("cardAddr") String cardAddr);
 
    /**
     * 根据水卡编号获取水卡表主键(12月19日添加后废弃)
     * @param cardNum 16位水卡编号
     * @return 水卡表主键
     */
    Long getCardIdByNum(@Param("cardNum") String cardNum);
 
    /**
     * 根据行政区划串模块查询水卡编号
     * @param areaCode
     * @return
     */
    String getCardNumOfMax(@Param("areaCode") String areaCode);
 
    /**
     * 根据水卡编号获取水卡表主键及农户编号
     * @param cardNum
     * @return
     */
    Map getCardIdAndClientNum(@Param("cardNum") String cardNum);
}