package com.emr.dao;

import com.emr.entity.ArchiveFinalSignVo;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * @InterfaceName ArchiveFinalSignMapper
 * @Author linjj
 * @Date 2023/11/20 15:37
 * @Version 1.0
 */
public interface ArchiveFinalSignMapper {


    /**
     * @description: 新增数据
     * @params: archiveFinalSignVo
     * @return:  int
     * @author linjj
     * @date: 2023/11/20 15:41
     */
    int addFinalSign(ArchiveFinalSignVo archiveFinalSignVo);

    /**
     * @description: 查询是否存在记录
     * @params:  masterId
     * @return:  int
     * @author linjj
     * @date: 2023/11/20 15:41
     */
    int getIdNum(String masterId);
    /**
     * @description: 更新最后签收时间
     * @params:   masterId
     * @params:   dTime
     * @return: int
     * @author linjj
     * @date: 2023/11/20 15:44
     */
    int updateDTimeBymasterId(@Param("masterId") String masterId,@Param("dTime") String dTime,@Param("operateName") String operateName);

    List<ArchiveFinalSignVo> getArchiveFinalSignList(ArchiveFinalSignVo archiveFinalSignVo);
}
