| | |
| | | |
| | | <if test="userParams != null"> |
| | | <if test="userParams.realname != null and userParams.realname != ''"> |
| | | AND sys_user.realname LIKE concat(concat('%',#{userParams.realname}),'%') |
| | | AND sys_user.realname LIKE '%' + #{userParams.realname} + '%' |
| | | </if> |
| | | <if test="userParams.workNo != null and userParams.workNo != ''"> |
| | | AND sys_user.work_no LIKE concat(concat('%',#{userParams.workNo}),'%') |
| | | AND sys_user.work_no LIKE '%' + #{userParams.workNo} + '%' |
| | | </if> |
| | | </if> |
| | | </sql> |
| | |
| | | LEFT JOIN sys_user_role t2 ON t1.id = t2.user_id |
| | | LEFT JOIN sys_role t3 ON t2.role_id = t3.id |
| | | WHERE |
| | | t3.role_code = #{roleCode} AND equipment_ids LIKE concat(concat('%',#{equipmentId}),'%') |
| | | t3.role_code = #{roleCode} AND equipment_ids LIKE '%' + #{equipmentId} + '%' |
| | | </select> |
| | | </mapper> |