| | |
| | | a.nickName as nickName, |
| | | a.avatar as avatar, |
| | | DATE_FORMAT(a.birthday, '%Y-%m-%d') as birthday, |
| | | a.sex as sex, |
| | | a.isAuth as isAuth, |
| | | ifnull(a.sex, 1) as sex, |
| | | ifnull(a.isAuth, 1) as isAuth, |
| | | (select state from t_verified where userId = a.id order by insertTime desc limit 0,1) as verified, |
| | | a.name as name, |
| | | a.integral as integral, |
| | | a.emergencyContact as emergencyContact, |
| | | a.emergencyContactNumber as emergencyContactNumber, |
| | | a.balance as balance, |
| | | if((select count(1) from t_user_taxi_card where userId = #{uid}) = 0, 0, 1) as payTaxiCar, |
| | | if((select id from t_merchant where auditStatus = 2 and userType = 1 and userId = a.id and state = 1) is null, 0, 1) as merchant |
| | | a.balance as balance |
| | | from t_user a where 1 = 1 |
| | | <if test="null != uid"> |
| | | and a.id = #{uid} |