forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.7 KiB
92 lines
2.7 KiB
package com.epmet.dao;
|
|
|
|
import com.epmet.commons.mybatis.dao.BaseDao;
|
|
import com.epmet.dto.IcNatDTO;
|
|
import com.epmet.dto.form.MyNatListFormDTO;
|
|
import com.epmet.dto.result.MyNatListResultDTO;
|
|
import com.epmet.dto.result.NatListResultDTO;
|
|
import com.epmet.dto.result.NatUserInfoResultDTO;
|
|
import com.epmet.dto.result.RelationAndNatResultDTO;
|
|
import com.epmet.entity.IcNatEntity;
|
|
import com.epmet.entity.IcResiUserEntity;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 核酸上报记录
|
|
*
|
|
* @author generator generator@elink-cn.com
|
|
* @since v1.0.0 2022-03-25
|
|
*/
|
|
@Mapper
|
|
public interface IcNatDao extends BaseDao<IcNatEntity> {
|
|
|
|
/**
|
|
* @Author sun
|
|
* @Description 核酸检测-按条件查询核酸记录
|
|
**/
|
|
List<MyNatListResultDTO> getMyNatList(MyNatListFormDTO formDTO);
|
|
|
|
/**
|
|
* @Author sun
|
|
* @Description 【核酸】本辖区核酸检测信息列表
|
|
**/
|
|
List<NatListResultDTO> getNatList(MyNatListFormDTO formDTO);
|
|
|
|
/**
|
|
* @Author sun
|
|
* @Description 【核酸】客户下核酸检测信息列表
|
|
**/
|
|
List<NatListResultDTO> getCustomerNatList(MyNatListFormDTO formDTO);
|
|
|
|
/**
|
|
* @Author sun
|
|
* @Description 删除操作--物理删除业务数据
|
|
**/
|
|
int delById(@Param("icNatId") String icNatId);
|
|
|
|
/**
|
|
* @Author sun
|
|
* @Description 按条件查询业务数据
|
|
**/
|
|
IcNatDTO getNatDTO(@Param("customerId") String customerId, @Param("icNatId") String icNatId,
|
|
@Param("idCard") String idCard, @Param("natTime") String natTime,
|
|
@Param("natResult") String natResult, @Param("sampleTime") String sampleTime);
|
|
|
|
/**
|
|
* desc:根据客户id 更新是否居民状态
|
|
*
|
|
* @param customerId
|
|
* @param icResiUserId 如果为空则更新全部
|
|
* @return
|
|
*/
|
|
int updateIsResiFlag(@Param("customerId") String customerId, @Param("icResiUserId") String icResiUserId);
|
|
|
|
List<NatUserInfoResultDTO> getExistNatInfo(@Param("list") List<IcNatEntity> entities);
|
|
|
|
void updateBatchNat(@Param("list")List<IcNatEntity> entities);
|
|
|
|
List<RelationAndNatResultDTO> getRelationAndNat();
|
|
|
|
List<IcResiUserEntity> getResiByIdCards(@Param("idCards")List<String> idCards);
|
|
|
|
/**
|
|
* @Description 批量更新关系
|
|
* @param list
|
|
* @Author zxc
|
|
* @Date 2022/10/25 10:56
|
|
*/
|
|
void updateRelation(@Param("list") List<RelationAndNatResultDTO> list);
|
|
|
|
/**
|
|
* @Description 更新的 userType != 'import'
|
|
* @Author zxc
|
|
* @Date 2022/10/25 11:13
|
|
*/
|
|
void updateRelationOther();
|
|
|
|
void deleteNatRecordsBeforeRetentionDays(Date criticleTime);
|
|
}
|
|
|