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