liding
10 天以前 c9675b38b799d8b1a479928bcee73e53067788f9
cnas-personnel/src/main/resources/mapper/PersonBasicInfoMapper.xml
@@ -19,28 +19,18 @@
    <select id="selectPersonBasecInfoAndUser" resultType="java.util.Map">
        select
            u.id  userId,
            u.`name`  name,
            u.account account,
            DATE_FORMAT(cpbi.group_time, '%Y-%m-%d') groupTime,
            cpbi.id,
            cpbi.native_place nativePlace,
            cpbi.identity_card identityCard,
            cpbi.id_address idAddress,
            u.phone telephone,
            cpbi.graduated_institutions1 graduatedInstitutions1,
            cpbi.major1 major1,
            DATE_FORMAT(cpbi.graduation_time1, '%Y-%m-%d')  graduationTime1,
            cpbi.official_academic_redentials officialAcademicRedentials,
            cpbi.highest_degree highestDegree,
            cpbi.professional_title professionalTitle
        from user u
                 left join cnas_person_basic_info cpbi on cpbi.user_id = u.id
            cpbi.telephone,
            cpbi.name
        from cnas_person_basic_info cpbi
        <where>
            FIND_IN_SET(#{departmentId},u.depart_lims_id)
            <if test="name != null and name != ''">
                and u.name like concat('%',#{name},'%')
                and cpbi.name like concat('%',#{name},'%')
            </if>
        </where>
        order by cpbi.id desc
    </select>
    <!-- 导出查询人员信息 -->