You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTCOUNT(*)
FROM`sys_role` t
WHERE t.`del_flag`= ? AND t.`role_id`= t1.`role_id`AND EXISTS (SELECT1FROM`sys_role` t1
LEFT JOIN`sys_user_role` t2 ON t1.`role_id`= t2.`role_id`LEFT JOIN`sys_user` user ON t2.`user_id`= user.`user_id`LEFT JOIN`sys_dept` dept ON user.`dept_id`= dept.`dept_id`WHERE ( dept.dept_idIN ( SELECT dept_id FROM sys_role_dept
WHERE role_id =2 ))
);
其中 表连接条件 t.role_id = t1.role_id`` 跑到 exists 外面了
The text was updated successfully, but these errors were encountered:
如果 使用
主表.主表字段 = 子表.子表字段
生成的拼接条件有问题,示例语句其中 表连接条件
t.
role_id= t1.
role_id`` 跑到exists
外面了The text was updated successfully, but these errors were encountered: