Merge pull request 'test' (#73) from test into prod

Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/73
This commit is contained in:
2026-02-26 11:58:49 +00:00
@@ -23,7 +23,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -63,7 +63,7 @@ public interface DashboardMapper {
"</if>",
"AND DATE(o.create_time) = CURDATE()",
"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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -91,7 +91,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -158,7 +158,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -198,7 +198,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
" 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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -356,7 +356,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -391,7 +391,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -433,7 +433,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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 != \"\"'>",
" AND o.create_time >= #{p.startTime}",
"</if>",
@@ -475,7 +475,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
" 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 != \"\"'>",
" AND o.create_time >= #{p.startTime}",
"</if>",
@@ -517,7 +517,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
" 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 != \"\"'>",
" AND o.create_time >= #{p.startTime}",
"</if>",
@@ -555,7 +555,7 @@ public interface DashboardMapper {
" q.code_id as qrcodeId,",
" COUNT(o.id) as orderCount",
"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",
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
@@ -593,7 +593,7 @@ public interface DashboardMapper {
" AND q.is_del = 0",
"LEFT JOIN orders o ON q.code_id = o.code_id",
" 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 &gt;= #{p.startTime} </if>",
" <if test='p.endTime != null and p.endTime != \"\"'> AND o.create_time &lt;= #{p.endTime} </if>",
" <if test='p.qrcodeId != null and p.qrcodeId != \"\"'> AND o.code_id = #{p.qrcodeId} </if>",
@@ -623,7 +623,7 @@ public interface DashboardMapper {
"</if>",
"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.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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -651,7 +651,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -693,7 +693,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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 != \"\"'>",
" AND o.create_time &gt;= #{p.startTime}",
"</if>",
@@ -735,7 +735,7 @@ public interface DashboardMapper {
" AND q.is_test = 0",
"</if>",
"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 != \"\"'>",
" AND o.create_time &gt;= #{p.startTime}",
"</if>",
@@ -776,7 +776,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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 != \"\"'>",
" AND o.create_time &gt;= #{p.startTime}",
"</if>",
@@ -817,7 +817,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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 != \"\"'>",
" AND o.create_time &gt;= #{p.startTime}",
"</if>",
@@ -872,7 +872,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -908,7 +908,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -938,7 +938,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",
@@ -968,7 +968,7 @@ public interface DashboardMapper {
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
" AND q.is_test = 0",
"</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'>",
" AND o.tourism_id = #{p.tourismId}",
"</if>",