huliguo
2025-07-03 e3a2245265516fef78b4737d6fffc939e7c5e0af
pt-errand/src/main/resources/mapper/AppUserMapper.xml
@@ -15,7 +15,8 @@
            tau.phone as phone,
            tau.vip_id AS vipId,
            tau.first_order as isFirstOrder,
            tau.end_time as endTime
            tau.end_time as endTime,
            tau.region_extend
        FROM
            t_app_user tau
                LEFT JOIN
@@ -44,7 +45,9 @@
            tau.sex,
            tau.vip_id,
            tvs.vip_name as vipName,
            tau.endTime
            tau.end_time,
            tau.birthday,
            tau.region_extend
        from
            t_app_user tau
        left join
@@ -59,7 +62,8 @@
    </select>
    <select id="countByCreateTimeBetween" resultType="java.lang.Integer">
        SELECT COUNT(*) FROM t_app_user WHERE create_time BETWEEN #{start} AND #{end}  and del_flag=0 and status !=3
        SELECT COUNT(*) FROM t_app_user WHERE create_time BETWEEN #{start} AND #{end}
--                                           and del_flag=0 and status !=3
    </select>
    <select id="countGroupByDate" resultType="java.util.Map">
@@ -90,8 +94,10 @@
    <select id="getCourierByCommunityId" resultType="java.util.Map">
        select
            tau.id as `id`,
            tc.id as courierId,
            tau.wx_openid as `openid`,
            tc.phone as `phone`
            tc.phone as `phone`,
            tc.status as status
        from
            t_community_courier tcc
        left join t_app_user tau on tcc.courier_id = tau.courier_id
@@ -125,7 +131,7 @@
            and end_time &lt;  CURRENT_TIMESTAMP or end_time is null
        </if>
        <if test="dto.status!=null  ">
            and status =#{status}
            and status =#{dto.status}
        </if>
    </select>