优化 MenuDao.xml 接口 findByUserCode 替换为 findByRoleCodes 升级时注意
This commit is contained in:
@@ -10,8 +10,8 @@
|
|||||||
JOIN ${_prefix}sys_employee_post b ON b.post_code = a.post_code
|
JOIN ${_prefix}sys_employee_post b ON b.post_code = a.post_code
|
||||||
</if>
|
</if>
|
||||||
<if test="userCode != null and userCode != ''">
|
<if test="userCode != null and userCode != ''">
|
||||||
JOIN ${_prefix}sys_employee_post b2 on b2.post_code = a.post_code
|
JOIN ${_prefix}sys_employee_post b2 ON b2.post_code = a.post_code
|
||||||
JOIN ${_prefix}sys_user u on u.ref_code = b2.emp_code AND u.user_type = 'employee'
|
JOIN ${_prefix}sys_user u ON u.ref_code = b2.emp_code AND u.user_type = 'employee'
|
||||||
</if>
|
</if>
|
||||||
<where>
|
<where>
|
||||||
${sqlMap.where.toSql()}
|
${sqlMap.where.toSql()}
|
||||||
|
|||||||
Reference in New Issue
Block a user