| | |
| | | </if> |
| | | and t1.state != 3 |
| | | </where> |
| | | |
| | | |
| | | </select> |
| | | <select id="getSelects" resultType="com.dsh.account.dto.SelectDto"> |
| | | SELECT ts.id ,ts.`name` as value |
| | |
| | | </where> |
| | | GROUP BY cityCode |
| | | </select> |
| | | <select id="listAll1" resultType="com.dsh.account.model.vo.QueryAppUserVO"> |
| | | select t2.* from t_app_user t2 |
| | | <where> |
| | | <if test="query.userIds != null and query.userIds.size()>0"> |
| | | AND t2.id IN |
| | | <foreach collection="query.userIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="query.city!=null and query.city!= ''"> |
| | | and t2.city = #{query.city} |
| | | </if> |
| | | <if test="query.province!=null and query.province!= ''"> |
| | | and t2.province = #{query.province} |
| | | </if> |
| | | <if test="query.name!=null and query.name!= ''"> |
| | | AND t2.name LIKE concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.phone!=null and query.phone!= ''"> |
| | | and t2.phone LIKE concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.isVip!=null and query.isVip!= ''"> |
| | | and t2.isVip = #{query.isVip} |
| | | </if> |
| | | <if test="query.salesmanUser!=null and query.salesmanUser!= ''"> |
| | | and t2.salesmanUserId = #{query.salesmanUser} |
| | | </if> |
| | | and t2.state != 3 |
| | | </where> |
| | | </select> |
| | | </mapper> |