|
@@ -18,19 +18,16 @@ import java.util.List;
|
|
|
*创建时间:2022/11/24 16:21
|
|
*创建时间:2022/11/24 16:21
|
|
|
*/
|
|
*/
|
|
|
public interface StatisticsUserDataMapper extends BaseMapper<StatisticsUserData> {
|
|
public interface StatisticsUserDataMapper extends BaseMapper<StatisticsUserData> {
|
|
|
- @Select("select count(distinct unionid) from user where created_time between #{yesZeroDate} and #{thisZeroDate} and unionid != ''")
|
|
|
|
|
|
|
+ @Select("select count(distinct unionid) from user u where created_time between #{yesZeroDate} and #{thisZeroDate} and unionid != '' and not exists(select 1 from user_bind_detail ud where ud.user_id = u.id)")
|
|
|
Integer getNumOfNewUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
Integer getNumOfNewUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
|
|
|
|
|
|
- @Select("select count(distinct unionid) from user where update_time between #{yesZeroDate} and #{thisZeroDate} and unionid != ''")
|
|
|
|
|
|
|
+ @Select("select count(distinct user_id) from user_access_record where type = 'h5' and update_time between #{yesZeroDate} and #{thisZeroDate}")
|
|
|
Integer getNumOfActiveUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
Integer getNumOfActiveUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
|
|
|
|
|
|
@Select("select count(*) from user where (login_phone != '' or email != '')")
|
|
@Select("select count(*) from user where (login_phone != '' or email != '')")
|
|
|
Integer getPcTotalOfUser();
|
|
Integer getPcTotalOfUser();
|
|
|
|
|
|
|
|
- @Select("select count(*) from user where created_time between #{yesZeroDate} and #{thisZeroDate} and (login_phone != '' or email != '')")
|
|
|
|
|
- Integer getPcNumOfNewUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
|
|
|
-
|
|
|
|
|
- @Select("select count(*) from user where update_time between #{yesZeroDate} and #{thisZeroDate} and (login_phone != '' or email != '')")
|
|
|
|
|
|
|
+ @Select("select count(distinct user_id) from user_access_record where type = 'pc' and update_time between #{yesZeroDate} and #{thisZeroDate}")
|
|
|
Integer getPcNumOfActiveUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
Integer getPcNumOfActiveUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
|
|
|
|
|
|
@Select("select count(*) from user_distribute_shared where created_time between #{yesZeroDate} and #{thisZeroDate}")
|
|
@Select("select count(*) from user_distribute_shared where created_time between #{yesZeroDate} and #{thisZeroDate}")
|
|
@@ -43,4 +40,10 @@ public interface StatisticsUserDataMapper extends BaseMapper<StatisticsUserData>
|
|
|
ExcelRealGoodsData getExportGoodsDonDataBySkuId(@Param("skuId") Long skuId, @Param("start") String start, @Param("end") String end);
|
|
ExcelRealGoodsData getExportGoodsDonDataBySkuId(@Param("skuId") Long skuId, @Param("start") String start, @Param("end") String end);
|
|
|
|
|
|
|
|
List<RegisterOrderDon> getPlatformHasPaymentOrders(@Param("platform") String platform, @Param("start") String start, @Param("end") String end);
|
|
List<RegisterOrderDon> getPlatformHasPaymentOrders(@Param("platform") String platform, @Param("start") String start, @Param("end") String end);
|
|
|
|
|
+
|
|
|
|
|
+ @Select("select count(*) from user u where created_time between #{yesZeroDate} and #{thisZeroDate} and login_phone != '' and not exists(select 1 from user_bind_detail ud where ud.phone_user_id = u.id)")
|
|
|
|
|
+ Integer getPhoneNewUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
|
|
|
+
|
|
|
|
|
+ @Select("select count(*) from user u where created_time between #{yesZeroDate} and #{thisZeroDate} and email != '' and not exists(select 1 from user_bind_detail ud where ud.email_user_id = u.id)")
|
|
|
|
|
+ Integer getEmailUser(@Param("yesZeroDate") Date yesZeroDate, @Param("thisZeroDate") Date thisZeroDate);
|
|
|
}
|
|
}
|