44323
2023-11-05 75bac456c3d66f6b173b1213776158c3bc5f8b96
cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml
@@ -77,6 +77,8 @@
            </if>
            and t1.state != 3
        </where>
    </select>
    <select id="getSelects" resultType="com.dsh.account.dto.SelectDto">
        SELECT ts.id ,ts.`name` as value
@@ -279,4 +281,34 @@
        </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>