|
|
@@ -21,7 +21,8 @@ public class CorpInteractiveRadarOrderDataView {
|
|
|
|
|
|
@Getter
|
|
|
@Setter
|
|
|
- @SearchBean(tables = "corp_interactive_radar_user_record cr left join order_don o on o.user_id = cr.user_id and o.status not in ('close','noPayment','refund')",
|
|
|
+ @SearchBean(tables = "corp_interactive_radar_user_record cr left join corp_interactive_user_order_relation cor on cor.radar_id = cr.id" +
|
|
|
+ " left join order_don o on o.id = cor.order_id and o.status not in ('close','noPayment','refund')",
|
|
|
where = ":condition:")
|
|
|
public static class CorpInteractiveRadarOrderData{
|
|
|
@DbField("count(distinct cr.id)")
|
|
|
@@ -36,6 +37,13 @@ public class CorpInteractiveRadarOrderDataView {
|
|
|
@DbField("count(distinct o.user_id)")
|
|
|
private Integer payUserNum;
|
|
|
|
|
|
+ @DbField("count(distinct if(cor.is_new = 1,o.user_id,NULL))")
|
|
|
+ private Integer payNewUserNum;
|
|
|
+
|
|
|
+ @DbField("count(distinct if(cor.is_new = 0,o.user_id,NULL))")
|
|
|
+ private Integer payOldUserNum;
|
|
|
+
|
|
|
+
|
|
|
@DbField("count(distinct if(o.order_type = 2,o.user_id,NULL))")
|
|
|
private Integer renewUserNum;
|
|
|
}
|