【7.0.4】sql更新转义符号位置

pull/20/head
fengshuonan 2021-05-21 17:41:57 +08:00
parent 7caffa4eb9
commit 7ac53e8910
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
and suser.status_flag like concat('%',#{sysUserRequest.statusFlag},'%')
</if>
<if test="sysUserRequest.orgId != null and sysUserRequest.orgId != ''">
and suorg.org_id in(select org_id from hr_organization where org_pids like CONCAT('%$[',#{sysUserRequest.orgId},'$]%') or org_id=#{sysUserRequest.orgId}) escape '$'
and suorg.org_id in (select org_id from hr_organization where org_pids like CONCAT('%$[',#{sysUserRequest.orgId},'$]%') escape '$' or org_id=#{sysUserRequest.orgId} )
</if>
and suser.del_flag = 'N'
order by suser.create_time desc