select
t.*
from xzx_user_role_info t
where 1=1 and del_flag=0
update xzx_user_role_info set del_flag = 1 where id in
#{id}
UPDATE xzx_sys_config_info SET config_value = #{status} WHERE config_type_code= #{configTypeCode}
select config_value from xzx_sys_config_info WHERE config_type_code= 'CODE_SCAN_RK'
select a.* from xzx_user_role_info a where a.role_code = (select max(b.role_code) from xzx_user_role_info b)
SELECT
a.regist_time,
a.user_id,
a.NAME,
a.nick_name,
a.mobile_phone,
a.user_id,
b.role_name AS user_type,
c.login_time,
a.del_flag AS delFlag,
a.town_id AS area,
a.user_type AS userTypeValue,
a.partner_id,
a.storage_id,
a.origin_type AS originType,
a.province_id,
a.city_id,
a.township_id,
( SELECT d.partner_name FROM xzx_city_partner d WHERE d.id = a.partner_id ) AS partnerName
FROM xzx_user_other_info a
LEFT JOIN xzx_user_role_info b on a.user_type=b.role_code
LEFT JOIN (
SELECT * FROM xzx_user_login_info GROUP BY user_id ORDER BY login_id
) as c ON c.user_id = a.user_id
WHERE 1=1 and a.user_type 8 and a.del_flag=0
and a.origin_type=1
and a.origin_type is null
AND a.mobile_phone like concat("%",#{mobilePhone},"%")
AND a.partner_id in
#{id}
SELECT
role_name as roleName,
del_flag as delFlag,
auth_ids as authIds,
update_time as updateTime,
create_time as createTime,
role_code as roleCode,
id as id
FROM xzx_user_role_info WHERE del_flag='0' and role_code not in (7,8)
and role_code 9