1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| <?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.ruoyi.collaborativeApproval.mapper.StaffContactsPersonalMapper">
|
|
| <select id="listPage" resultType="com.ruoyi.collaborativeApproval.dto.StaffContactsPersonalDTO">
| SELECT
| scp.id,
| scp.contact_id,
| sjlr.staff_no,
| sjlr.staff_name,
| sjlr.sex,
| sjlr.post_job,
| sjlr.adress,
| sjlr.profession,
| sjlr.identity_card,
| sjlr.phone,
| scp.create_time
| FROM staff_contacts_personal scp
| LEFT JOIN (select * from staff_join_leave_record WHERE staff_state = 1) sjlr ON scp.contact_id=sjlr.id
| where 1=1
| <if test="staffContactsPersonalDTO.staffName != null and staffContactsPersonalDTO.staffName != ''">
| and sjlr.staff_name like concat('%',#{staffContactsPersonalDTO.staffName},'%')
| </if>
|
| </select>
| </mapper>
|
|