package thyyxxk.webserver.dao.his.technologyArchives;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import thyyxxk.webserver.entity.technologyArchives.TechnologyArchivesHL1;

import java.util.Map;

@Mapper
public interface TechnologyArchivesHL1Dao extends BaseMapper<TechnologyArchivesHL1> {

    @Select(" select * from technology_archives_hl1 where social_no = #{socialNo} and get_time = #{getTime} ")
    TechnologyArchivesHL1 selectTechnologyArchivesHL1ByGetTime(@Param("socialNo") String socialNo, @Param("getTime") String getTime);

    @Update(" delete from technology_archives_hl1 where social_no = #{socialNo} and get_time = #{getTime} ")
    int delTechnologyArchivesHL1ByCode(@Param("socialNo") String socialNo, @Param("getTime") String getTime);

    @Update(" update technology_archives_hl1 set image = #{url} where social_no = #{socialNo} and get_time = #{getTime} ")
    int updateHL1CertificateImage(String url,@Param("socialNo") String socialNo,@Param("getTime") String getTime);

    @Select(" select image  from  technology_archives_hl1 where social_no = #{socialNo} and get_time = #{getTime}")
    Map<String, Object> selectHL1Image(@Param("socialNo") String socialNo, @Param("getTime") String getTime);
}
