| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.mom.mapper.PersonBasicInfoMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.PersonBasicInfo"> |
| | | <id column="id" property="id" /> |
| | |
| | | </select> |
| | | |
| | | <select id="basicInformationOfPersonnelSelectPage" resultType="java.util.Map"> |
| | | select |
| | | u.id, |
| | | select u.id, |
| | | u.name, |
| | | u.account, |
| | | cpbi.sex, |
| | |
| | | u.id userId, |
| | | u.`name` name, |
| | | u.account account, |
| | | DATE_FORMAT(cpbi.entry_time, '%Y-%m-%d') groupTime, |
| | | DATE_FORMAT(cpbi.group_time, '%Y-%m-%d') groupTime, |
| | | DATE_FORMAT(cpbi.end_practical_practice, '%Y-%m-%d') endPracticalPracticeStr, |
| | | cpbi.native_place nativePlace, |
| | | cpbi.identity_card identityCard, |
| | |
| | | cpbi.highest_degree highestDegree, |
| | | cpbi.professional_title professionalTitle, |
| | | cpbi.emergency_contact emergencyContact, |
| | | cpbi.emergency_contact_phone emergencyContactPhone |
| | | cpbi.emergency_contact_phone emergencyContactPhone, |
| | | group_concat( DISTINCT technical_post SEPARATOR ',') technicalPost |
| | | from user u |
| | | left join cnas_person_basic_info cpbi on cpbi.user_id = u.id |
| | | left join cnas_person_personnel_capacity cppc on u.id = cppc.user_id |
| | | left join user u1 on u1.id = u.create_user |
| | | <where> |
| | | FIND_IN_SET(#{departmentId},u.depart_lims_id) |