|
|
|
package com.epmet.service;
|
|
|
|
|
|
|
|
import com.epmet.commons.mybatis.service.BaseService;
|
|
|
|
import com.epmet.commons.tools.page.PageData;
|
|
|
|
import com.epmet.dto.IcNatDTO;
|
|
|
|
import com.epmet.dto.form.AddIcNatFormDTO;
|
|
|
|
import com.epmet.dto.form.MyNatListFormDTO;
|
|
|
|
import com.epmet.dto.result.MyNatListResultDTO;
|
|
|
|
import com.epmet.dto.result.NatListDTO;
|
|
|
|
import com.epmet.dto.result.NatListResultDTO;
|
|
|
|
import com.epmet.entity.IcNatEntity;
|
|
|
|
|
|
|
|
import java.nio.file.Path;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 核酸上报记录
|
|
|
|
*
|
|
|
|
* @author generator generator@elink-cn.com
|
|
|
|
* @since v1.0.0 2022-03-25
|
|
|
|
*/
|
|
|
|
public interface IcNatService extends BaseService<IcNatEntity> {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 核酸检测-上报核酸记录
|
|
|
|
**/
|
|
|
|
void add(AddIcNatFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 核酸检测-居民端我的上报
|
|
|
|
**/
|
|
|
|
List<MyNatListResultDTO> myNatList(MyNatListFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 【核酸】核酸检测信息列表
|
|
|
|
*
|
|
|
|
* @return*/
|
|
|
|
PageData<NatListResultDTO> natList(MyNatListFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 【核酸】核酸检测信息详情
|
|
|
|
**/
|
|
|
|
IcNatDTO detail(MyNatListFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 【核酸】核酸检测信息修改
|
|
|
|
**/
|
|
|
|
void edit(AddIcNatFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 【核酸】核酸检测信息删除/取消同步
|
|
|
|
**/
|
|
|
|
void del(MyNatListFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 【核酸】核酸检测信息同步
|
|
|
|
**/
|
|
|
|
void synchro(MyNatListFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author sun
|
|
|
|
* @Description 【核酸】核酸检测信息取消同步
|
|
|
|
**/
|
|
|
|
void cancelSynchro(MyNatListFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 执行Excel导入
|
|
|
|
* @param filePath
|
|
|
|
*/
|
|
|
|
void execAsyncExcelImport(Path filePath, String importTaskId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 核酸检测信息
|
|
|
|
* @Param idCard
|
|
|
|
* @Return {@link List<NatListDTO>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2022/3/29 16:29
|
|
|
|
*/
|
|
|
|
List<NatListDTO> getNatList(String customerId, String idCard);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* desc:根据用户id 更新核酸中是否居民状态
|
|
|
|
* @param customerId
|
|
|
|
* @param icResiUserId 如果为空则更新全部
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
Integer updateIsResiFlag(String customerId, String icResiUserId);
|
|
|
|
|
|
|
|
void updateBatchNat(List<IcNatEntity> entities);
|
|
|
|
|
|
|
|
void initNatLocal();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 清理nat记录,目前不区分客户,后期需要区分可以再加
|
|
|
|
* @author wxz
|
|
|
|
* @date 2022/11/28 下午5:39
|
|
|
|
* * @param retentionDays 保留的天数(最近)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void clearNatRecords(Integer retentionDays);
|
|
|
|
}
|