| | |
| | | select * from xzx_account_info where user_id = #{userId} |
| | | </select> |
| | | |
| | | <select id="selectDsitribListByQueryCol" resultType="com.xzx.gc.user.vo.DistribListVo"> |
| | | SELECT |
| | | a.account_id id, |
| | | a.is_head isHead, |
| | | b.nick_name nickname, |
| | | b.regist_time registTime, |
| | | b.mobile_phone phone |
| | | FROM |
| | | xzx_account_info a |
| | | LEFT JOIN xzx_user_info b on a.user_id = b.user_id |
| | | <where> |
| | | 1=1 |
| | | <if test="record.queryCol != null and record.queryCol != ''"> |
| | | and (b.nick_name like concat('%',#{record.name},'%') |
| | | or mobile_phone like concat('%',#{record.phone},'%') ) |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | | </select> |
| | | |
| | | </mapper> |