kongzy
2024-01-29 983bdb5b89932b38d08a11ad1eed6ea89d1597e1
assess-system/src/main/resources/mapper/SysExpertInfoMapper.xml
文件名从 assess-system/src/main/resources/mapper/system/SysExpertInfoMapper.xml 修改
@@ -3,24 +3,24 @@
<mapper namespace="com.gkhy.assess.system.mapper.SysExpertInfoMapper">
    <sql id="selectExpertInfoVo">
        select expert_id,name,sex,birthday,phone,title,electronic_photo,id_card,duty_status,
        select id,name,sex,birthday,phone,title,state,electronic_photo,id_card,duty_status,
               company_name,company_address,dept_name,job,company_telephone,fax_num,email,
               graduation_school,degree,speciality,current_profession,support_direction_safety,
               support_direction_prevention,support_direction_emergency,resume_key,paper_situation_key,
               reward_key,achievement_key,personal_opinion_key,recommend_unit_opinion_key,remark,create_by,
               create_time,big_classify,small_classify,del_flag
        from sys_agency
               create_time,big_classify,small_classify,del_flag,source
        from sys_expert_info
    </sql>
    <delete id="deleteBatchByIds">
        update expert_info set del_flag = 1  where expert_id in
    <update id="deleteBatchByIds">
        update expert_info set del_flag = 1  where id in
        <foreach collection="expertIds" item="expertId" separator="," open="(" close=")">
            #{expertId}
        </foreach>
    </delete>
    </update>
    <select id="expertInfoList" resultType="com.gkhy.assess.system.domain.SysExpertInfo">
        <include refid="selectExpertInfoVo"/>
        select id,name,sex,birthday,phone,title,degree,state,speciality,big_classify,small_classify,create_time from sys_expert_info
        <where>
            and del_flag = 0
            <if test="name != null and name != ''">
@@ -35,6 +35,9 @@
            <if test="dutyStatus != null">
                and duty_status = #{dutyStatus}
            </if>
            <if test="state != null">
                and state = #{state}
            </if>
            <if test="params.startTime != null "><!-- 开始时间检索 -->
                and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.startTime},'%y%m%d')
            </if>
@@ -45,6 +48,11 @@
        order by create_time desc
    </select>
    <select id="checkIdcardUnique" resultType="com.gkhy.assess.system.domain.SysExpertInfo">
        select expert_id,name from sys_expert_info where del_flag=0 limit 1
        select id,name from sys_expert_info where id_card=#{idCard} and del_flag=0 limit 1
    </select>
    <select id="getExpertInfoById" resultType="com.gkhy.assess.system.domain.SysExpertInfo">
        <include refid="selectExpertInfoVo"/>
        where id=#{expertId}
    </select>
</mapper>