“djh”
2024-12-27 3aae8ddd5b9624626921abdcc33122dccdcd5c61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.gkhy.exam.noncoalmine.mapper.NcStaffMapper">
    <select id="getList" resultType="com.gkhy.exam.noncoalmine.model.vo.NcStaffVO">
        SELECT
        *
        FROM
        nc_staff
        WHERE
        del_flag = 0
        <if test="query.name != null and query.name != ''">
            and name like concat('%', #{query.name}, '%')
        </if>
        <if test="query.idCardNum != null and query.idCardNum != ''">
            and id_card_num = #{query.idCardNum}
        </if>
    </select>
</mapper>