package com.dy.pipIrrGlobal.daoSe; 
 | 
  
 | 
import com.baomidou.mybatisplus.core.mapper.BaseMapper; 
 | 
import com.dy.pipIrrGlobal.pojoSe.SeClient; 
 | 
import com.dy.pipIrrGlobal.voSe.VoClient; 
 | 
import com.dy.pipIrrGlobal.voSe.VoOperate; 
 | 
import com.dy.pipIrrGlobal.voSe.VoStatistics; 
 | 
import org.apache.ibatis.annotations.Mapper; 
 | 
import org.apache.ibatis.annotations.Param; 
 | 
  
 | 
import java.util.List; 
 | 
import java.util.Map; 
 | 
  
 | 
/** 
 | 
 * @author ZhuBaoMin 
 | 
 * @date 2023-12-26 10:32 
 | 
 * @LastEditTime 2023-12-26 10:32 
 | 
 * @Description 
 | 
 */ 
 | 
  
 | 
@Mapper 
 | 
public interface SeClientMapper extends BaseMapper<SeClient> { 
 | 
    int deleteByPrimaryKey(Long id); 
 | 
  
 | 
    int insert(SeClient record); 
 | 
  
 | 
    int insertSelective(SeClient record); 
 | 
  
 | 
    SeClient selectByPrimaryKey(Long id); 
 | 
  
 | 
    int updateByPrimaryKeySelective(SeClient record); 
 | 
  
 | 
    int updateByPrimaryKey(SeClient record); 
 | 
  
 | 
    /** 
 | 
     * 根据6位区划串模糊查询农户编号 
 | 
     * @param district8 
 | 
     * @return 
 | 
     */ 
 | 
    String getClientNumOfMax(@Param("district8") String district8); 
 | 
  
 | 
    /** 
 | 
     * 根据农户编号获取5级行政区划代码 
 | 
     * @param clientNum 农户编号 
 | 
     * @return 5级行政区划代码 
 | 
     */ 
 | 
    Long getAreaCodeByNum(@Param("clientNum") String clientNum); 
 | 
  
 | 
    /** 
 | 
     * 根据农户编号获取农户ID 
 | 
     * @param clientNum 
 | 
     * @return 
 | 
     */ 
 | 
    Long getClientIdByNum(@Param("clientNum") String clientNum); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取农户记录数 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    Long getRecordCount(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取农户数据 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    List<VoClient> getClients(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据农户ID逻辑删除农户 
 | 
     * @param id 农户ID 
 | 
     * @return 逻辑删除记录数 
 | 
     */ 
 | 
    Integer deleteClientById(@Param("id") Long id); 
 | 
  
 | 
    /** 
 | 
     * 根据主键获取村ID 
 | 
     * @param id 农户ID 
 | 
     * @return 村主键 
 | 
     */ 
 | 
    Long getVillageIdById(@Param("id") Long id); 
 | 
  
 | 
    /** 
 | 
     * 获取虚拟卡号最大值 
 | 
     * @return 
 | 
     */ 
 | 
    Long getMa1xVirtualId(); 
 | 
  
 | 
    /** 
 | 
     * 获取用水方式列表 
 | 
     * @return 
 | 
     */ 
 | 
    List<Map<String, Object>> getWaterTypes(); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取购水汇总和购卡汇总 
 | 
     * @param params 统计条件 
 | 
     * @return 购水金额、购卡金额 
 | 
     */ 
 | 
    Map getSums(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取操作记录数 
 | 
     * @param params 查询条件 
 | 
     * @return 符合条件的记录数 
 | 
     */ 
 | 
    Long getOperateRecordCount(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取操作记录 
 | 
     * @param params 查询条件 
 | 
     * @return 符合条件的交易记录 
 | 
     */ 
 | 
    List<VoOperate> getOperates(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取交易笔数汇总和交易金额汇总 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    Map getStatisticSums(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取汇总记录数 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    Long getStatisticRecordCount(Map<?, ?> params); 
 | 
  
 | 
    /** 
 | 
     * 根据指定条件获取统计记录 
 | 
     * @param params 
 | 
     * @return 
 | 
     */ 
 | 
    List<VoStatistics> getStatistics(Map<?, ?> params); 
 | 
} 
 |