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.TechnologyArchivesMain;

import java.util.List;
import java.util.Map;

@Mapper
public interface TechnologyArchivesMainDao extends BaseMapper<TechnologyArchivesMain> {

    @Select(" select * from technology_archives_main where social_no = #{socialNo} or account = #{socialNo} or name = #{socialNo} ")
    TechnologyArchivesMain selectTechnologyArchivesMainBySocialNo(@Param("socialNo") String socialNo);

    @Select(" select account as accountAuthor, social_no as socialNo, name as accountName from technology_archives_main ")
    List<Map<String, Object>> selectTechnologyArchivesMainDict();
}