fix(订单中心):新增订单支付类型后,订单列表显示和首页统计添加筛选条件
This commit is contained in:
+17
-1
@@ -22,6 +22,7 @@ public interface DashboardMapper {
|
||||
" AND q.is_test = 0",
|
||||
"</if>",
|
||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9)",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -52,6 +53,7 @@ public interface DashboardMapper {
|
||||
"</if>",
|
||||
"AND DATE(o.create_time) = CURDATE()",
|
||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9)",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -75,6 +77,7 @@ public interface DashboardMapper {
|
||||
" AND q.is_test = 0",
|
||||
"</if>",
|
||||
"AND o.order_status = 8",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -128,6 +131,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -158,6 +162,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -182,6 +187,7 @@ public interface DashboardMapper {
|
||||
" AND q.is_test = 0",
|
||||
"</if>",
|
||||
"AND o.order_status IN (1, 3, 4, 5, 6, 7, 8, 9)",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -211,6 +217,7 @@ public interface DashboardMapper {
|
||||
" AND q.is_test = 0",
|
||||
"</if>",
|
||||
"AND o.order_status = 8",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -244,6 +251,7 @@ public interface DashboardMapper {
|
||||
" AND q.is_test = 0",
|
||||
"</if>",
|
||||
"AND o.order_status IN (1, 3, 4, 5, 7, 8, 9)",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||
" AND o.create_time >= #{p.startTime}",
|
||||
"</if>",
|
||||
@@ -272,6 +280,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)",
|
||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||
" AND o.create_time >= #{p.startTime}",
|
||||
"</if>",
|
||||
@@ -300,6 +309,7 @@ public interface DashboardMapper {
|
||||
" AND q.is_test = 0",
|
||||
"</if>",
|
||||
" AND o.order_status = 8",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.startTime != null and p.startTime != \"\"'>",
|
||||
" AND o.create_time >= #{p.startTime}",
|
||||
"</if>",
|
||||
@@ -328,7 +338,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)",
|
||||
"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)",
|
||||
"WHERE q.is_del = 0",
|
||||
"<if test='p.includeTestQrcodes == null or p.includeTestQrcodes == false'>",
|
||||
" AND q.is_test = 0",
|
||||
@@ -361,6 +371,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)",
|
||||
"AND (o.pay_type = 1 OR o.pay_type IS NULL)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -384,6 +395,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -426,6 +438,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -457,6 +470,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -482,6 +496,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
@@ -507,6 +522,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)",
|
||||
"<if test='p.tourismId != null'>",
|
||||
" AND o.tourism_id = #{p.tourismId}",
|
||||
"</if>",
|
||||
|
||||
Reference in New Issue
Block a user