select distinct mobile_phone from xzx_user_info
where open_id = #{openId} and del_flag=0 and is_prohibit=0
SELECT a.user_id,a.account_name,a.freeze_money,a.money,a.pay_password,
a.withdraw_money,a.overdraft_limit,a.lock_time,a.collect_score
FROM xzx_account_info a
where del_flag=0 and is_prohibit='0'
and a.user_id=#{userId}
SELECT a.user_id,a.account_name,a.freeze_money,a.money,a.pay_password,
a.withdraw_money,a.overdraft_limit,a.lock_time,a.collect_score
FROM xzx_account_info a
where del_flag=0
and a.user_id=#{userId}
select d.user_id,d.mobile_phone,d.avatar,d.nick_name,d.sex,d.birthday,d.user_type,d.latitude,d.longitude
from xzx_user_info d
where d.del_flag=0 and d.is_prohibit=0
and d.mobile_phone=#{mobilePhone}
and d.user_id=#{userId}
select d.user_id,d.mobile_phone,d.avatar,d.nick_name,d.sex,d.birthday,d.user_type,d.latitude,d.longitude
from xzx_user_info d
where d.del_flag=0
and d.user_id=#{userId}
select account_id,account_name,user_id,money,freeze_money,
withdraw_money,overdraft_limit,lock_time,error_times
from xzx_account_info
where user_id=#{userId} and del_flag=0
and pay_password=#{payPassword}
update xzx_account_info set pay_password=#{payPassword}
where user_id=#{userId} and del_flag=0
select
error_times,
lock_time,
last_error_time
from
xzx_account_info
where user_id=#{userId,jdbcType=BIGINT} and del_flag=0
update
xzx_account_info
error_times = #{errorTimes},
lock_time = #{lockTime},
last_error_time = #{lastErrorTime},
where
user_id=#{userId} and del_flag=0
select user_id "userId",avatar,mobile_phone "mobilePhone" from xzx_user_info_bak
where mobile_phone=#{mobilePhone} and del_flag=0 and is_prohibit=0
SELECT
a.user_id "userId",
a.mobile_phone "mobilePhone",
a.nick_name "nickName",
b.rela_name "userName",
b.address_area "addressArea",
b.detail_address "detailAddress",
IFNULL( b.latitude, a.latitude ) "latitude",
IFNULL( b.longitude, a.longitude ) "longitude"
FROM
xzx_user_info a
LEFT JOIN xzx_user_address_info b ON a.user_id = b.user_id AND b.flag = 1 AND b.del_flag = 0
WHERE
a.del_flag = 0
AND a.is_prohibit = 0
SELECT
a.user_id "userId",
a.mobile_phone "mobilePhone",
IFNULL( b.latitude, a.latitude ) "latitude",
IFNULL( b.longitude, a.longitude ) "longitude",
b.address_id "addressId",
IFNULL(b.rela_name,from_base64(a.nick_name)) "userName",
b.detail_address "detailAddress",
b.address_area "addressArea",
b.township_id "townShipId",
a.partner_id "partnerId"
FROM
xzx_user_info a
LEFT JOIN xzx_user_address_info b ON a.user_id = b.user_id
AND b.del_flag = 0
AND b.flag = '1'
WHERE a.del_flag=0
order by a.user_id desc
select * from (
SELECT
user_id "userId",
from_base64 ( nick_name ) "name",
mobile_phone "mobilePhone",
user_type "userType"
FROM
xzx_user_info
union
SELECT
user_id "userId",
`name`,
mobile_phone "mobilePhone",
user_type "userType"
FROM
xzx_user_other_info) t WHERE 1=1
and locate(#{keyword},t.name)>0 or locate(#{keyword},t.mobilePhone)>0
SELECT
a.regist_time,
a.nick_name,
a.mobile_phone,
a.user_id,
a.user_type AS user_typex,
a.is_prohibit AS isProhibit,
a.avatar AS avatar,
a.partner_id AS partnerId,
'普通用户' AS user_type
FROM xzx_user_info a
where a.del_flag=0 and a.user_type=1
AND locate(${partnerId},a.partner_id)>0
AND a.regist_time= ]]>#{startTime}
AND a.mobile_phone=#{phone}
AND a.regist_time#{endTime}
AND a.is_prohibit=false
order by a.regist_time desc
SELECT
count(*)
FROM xzx_user_info a
LEFT JOIN xzx_sys_config_info b ON a.user_type = b.config_value
AND b.config_type_code = 'USER_TYPE'
where a.del_flag=0
AND locate(${partnerId},a.partner_id)>0
AND a.regist_time= ]]>#{startTime}
AND a.mobile_phone=#{phone}
AND a.regist_time#{endTime}
order by a.regist_time desc
update xzx_user_info set is_prohibit=#{flag} where user_id=#{userId}
SELECT a.*, b.money, b.withdraw_money, c.pay_type, SUM(c.money) as moneyx FROM xzx_user_info a
LEFT JOIN xzx_account_info b ON a.user_id=b.user_id
LEFT JOIN xzx_pay_info c ON b.account_id=c.account_id
LEFT JOIN xzx_sys_config_info d ON c.pay_type=d.config_value AND d.config_type_code='PAY_TYPE'
WHERE a.mobile_phone=#{phone} AND a.user_type=#{userType} AND a.del_flag=0 GROUP BY c.pay_type
update xzx_user_info set name=#{name} where mobile_phone=#{mobile}
select * from xzx_user_info
where 1=1
and del_flag=#{delFlag}
and (mobile_phone like concat("%",#{phone},"%") or nick_name =#{nickName})
and user_type=#{userType}
and regist_type=3
select b.* from xzx_user_info b
where b.del_flag=0
and (b.name like concat("%",#{userName} ,"%") or b.mobile_phone like concat("%",#{userName} ,"%"))
AND b.user_type =#{roleType}
and LOCATE(#{partnerId} ,b.partner_id)>0
select * from xzx_user_info where del_flag = 0
and user_id=#{userId}