浏览代码

修改查询代理商负责人逻辑

hgw 3 年之前
父节点
当前提交
c64da658ae
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mec-biz/src/main/resources/config/mybatis/TenantProxyInfoMapper.xml

+ 3 - 3
mec-biz/src/main/resources/config/mybatis/TenantProxyInfoMapper.xml

@@ -54,7 +54,7 @@
             '员工' as `role`,
             c.state_ as state
         from tenant_proxy_user_relation as a
-                 left join tenant_proxy_info c on a.parent_id_ = c.proxy_user_id_
+                 left join tenant_proxy_info as c on a.parent_id_ = c.proxy_user_id_
                  left join sys_user as b  on a.user_id_ = b.id_
         where a.parent_id_ = #{id}
     </select>
@@ -69,12 +69,12 @@
             '负责人' as `role`,
             c.state_ as state
         from tenant_proxy_user_relation as a
-                 left join tenant_proxy_info c on a.user_id_ = c.proxy_user_id_
+                 left join tenant_proxy_info as c on a.user_id_ = c.proxy_user_id_
                  left join sys_user as b  on a.user_id_ = b.id_
         <where>
             a.parent_id_ is null
             <if test="param.state != null ">
-                c.state_ = #{param.state}
+               AND c.state_ = #{param.state}
             </if>
             <if test="param.search != null ">
                 AND (