44323
2023-10-07 e6ee956618b3c1a6371a6c22dfbb70868dbd3f17
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
28
29
30
31
32
33
34
35
36
37
<?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.dsh.course.mapper.TOperatorUserMapper">
    <select id="listAll" resultType="java.util.Map">
        select t1.id as id, t1.platform,t1.type,t1.proportion,CONCAT(t1.province,t1.city) as provinceAndCity
        t1.state as state,t1.status as status,t2.name as userName,t2.phone as phone from t_operatorUser t1
        left join sys_user t2 on t1.userId = t2.id
        where 1=1
        <if test="province != null and province != ''">
            and t1.provinceCode =  #{province}
        </if>
        <if test="city != null and city != ''">
            and t1.cityCode =  #{city}
        </if>
        <if test="userName != null and userName != ''">
            and t2.name like CONCAT('%',#{userName},'%')
        </if>
        <if test="phone != null and phone != ''">
            and t2.phone like CONCAT('%',#{phone},'%')
        </if>
        <if test="platform != null and platform != ''">
            and t1.platform =  #{platform}
        </if>
        <if test="type != null and type != ''">
            and t1.type =  #{type}
        </if>
        <if test="proportion != null and proportion != ''">
            and t1.proportion =  #{proportion}
        </if>
        <if test="state != null and state != ''">
            and t1.state =  #{state}
        </if>
        <if test="status != null and status != ''">
            and t1.status =  #{status}
        </if>
    </select>
</mapper>