| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | </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"> |
| | |
| | | <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 |
| | |
| | | and end_time < CURRENT_TIMESTAMP or end_time is null |
| | | </if> |
| | | <if test="dto.status!=null "> |
| | | and status =#{status} |
| | | and status =#{dto.status} |
| | | </if> |
| | | </select> |
| | | |