maven
12 小时以前 c7068341d75ea2b0a4e7d3d563cf1a98b5bd35b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.sales.mapper.SalespersonManagementMapper">
 
    <select id="listPage" resultType="com.ruoyi.sales.pojo.SalespersonManagement">
        select * from salesperson_management
        <where>
            <if test="req.name != null and req.name != ''">
                and `name` like concat('%',#{req.name},'%')
            </if>
            <if test="req.department != null and req.department != ''">
                and department = #{req.department}
            </if>
            <if test="req.status != null and req.status != ''">
                and status = #{req.status}
            </if>
        </where>
    </select>
</mapper>