From ddbb38c54db9c3670e5ff53f4bf713525de1099d Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 14 十一月 2023 09:12:10 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-management/src/main/resources/TOperatorUserMapper.xml | 35 ++++------------------------------- 1 files changed, 4 insertions(+), 31 deletions(-) diff --git a/cloud-server-management/src/main/resources/TOperatorUserMapper.xml b/cloud-server-management/src/main/resources/TOperatorUserMapper.xml index 340f060..7f7f162 100644 --- a/cloud-server-management/src/main/resources/TOperatorUserMapper.xml +++ b/cloud-server-management/src/main/resources/TOperatorUserMapper.xml @@ -1,37 +1,10 @@ <?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 t1.name as name ,t2.name as userName,t2.phone as phone from t_operator t1 + left join sys_user t2 t1.id = t1.objectId and t2.objectType = 2 + </select> </mapper> -- Gitblit v1.7.1