Merge pull request 'feat: 海南携程以及中科低空订单统计' (#72) from feature_dzc into test
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/72
This commit is contained in:
+22
-22
@@ -23,7 +23,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -63,7 +63,7 @@ public interface DashboardMapper {
|
|||||||
"</if>",
|
"</if>",
|
||||||
"AND DATE(o.create_time) = CURDATE()",
|
"AND DATE(o.create_time) = CURDATE()",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -91,7 +91,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN ( 8,10)",
|
"AND o.order_status IN ( 8,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -158,7 +158,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -198,7 +198,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
" AND DATE(o.create_time) = CURDATE()",
|
" AND DATE(o.create_time) = CURDATE()",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -356,7 +356,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 6, 7, 8, 9,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 6, 7, 8, 9,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -391,7 +391,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN ( 8,10)",
|
"AND o.order_status IN ( 8,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -433,7 +433,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -475,7 +475,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
" AND o.order_status = 3",
|
" AND o.order_status = 3",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -517,7 +517,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
" AND o.order_status IN ( 8,10)",
|
" AND o.order_status IN ( 8,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -555,7 +555,7 @@ public interface DashboardMapper {
|
|||||||
" q.code_id as qrcodeId,",
|
" q.code_id as qrcodeId,",
|
||||||
" COUNT(o.id) as orderCount",
|
" COUNT(o.id) as orderCount",
|
||||||
"FROM qrcodes q",
|
"FROM qrcodes q",
|
||||||
"LEFT JOIN orders o ON q.code_id = o.code_id AND o.order_status IN (3, 7) AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"LEFT JOIN orders o ON q.code_id = o.code_id AND o.order_status IN (3, 7) AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"WHERE q.is_del = 0",
|
"WHERE q.is_del = 0",
|
||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
@@ -593,7 +593,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_del = 0",
|
" AND q.is_del = 0",
|
||||||
"LEFT JOIN orders o ON q.code_id = o.code_id",
|
"LEFT JOIN orders o ON q.code_id = o.code_id",
|
||||||
" AND o.order_status IN (3, 7 ,9)",
|
" AND o.order_status IN (3, 7 ,9)",
|
||||||
" AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
" AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
" <if test='p.startTime != null and p.startTime != \"\"'> AND o.create_time >= #{p.startTime} </if>",
|
" <if test='p.startTime != null and p.startTime != \"\"'> AND o.create_time >= #{p.startTime} </if>",
|
||||||
" <if test='p.endTime != null and p.endTime != \"\"'> AND o.create_time <= #{p.endTime} </if>",
|
" <if test='p.endTime != null and p.endTime != \"\"'> AND o.create_time <= #{p.endTime} </if>",
|
||||||
" <if test='p.qrcodeId != null and p.qrcodeId != \"\"'> AND o.code_id = #{p.qrcodeId} </if>",
|
" <if test='p.qrcodeId != null and p.qrcodeId != \"\"'> AND o.code_id = #{p.qrcodeId} </if>",
|
||||||
@@ -623,7 +623,7 @@ public interface DashboardMapper {
|
|||||||
"</if>",
|
"</if>",
|
||||||
"AND DATE(o.create_time) = DATE_SUB(CURDATE(), INTERVAL 1 DAY)",
|
"AND DATE(o.create_time) = DATE_SUB(CURDATE(), INTERVAL 1 DAY)",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -651,7 +651,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status = 3",
|
"AND o.order_status = 3",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -693,7 +693,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9 ,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9 ,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -735,7 +735,7 @@ public interface DashboardMapper {
|
|||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND o.order_status IN (1, 3, 4, 5, 6, 7, 8, 9 ,10)",
|
"AND o.order_status IN (1, 3, 4, 5, 6, 7, 8, 9 ,10)",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -776,7 +776,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -817,7 +817,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||||
" AND o.create_time >= #{p.startTime}",
|
" AND o.create_time >= #{p.startTime}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -872,7 +872,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -908,7 +908,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -938,7 +938,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
@@ -968,7 +968,7 @@ public interface DashboardMapper {
|
|||||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||||
" AND q.is_test = 0",
|
" AND q.is_test = 0",
|
||||||
"</if>",
|
"</if>",
|
||||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
"AND (o.pay_type IN (1, 2, 3) OR o.pay_type IS NULL)",
|
||||||
"<if test='p.tourismId != null'>",
|
"<if test='p.tourismId != null'>",
|
||||||
" AND o.tourism_id = #{p.tourismId}",
|
" AND o.tourism_id = #{p.tourismId}",
|
||||||
"</if>",
|
"</if>",
|
||||||
|
|||||||
Reference in New Issue
Block a user