From 9743628d62152b7a67dc48b111ad9e282aeb5c14 Mon Sep 17 00:00:00 2001
From: liujiang <569804566@qq.com>
Date: Wed, 1 Oct 2025 10:54:51 +0800
Subject: [PATCH] =?UTF-8?q?master=EF=BC=9A=E7=94=9F=E4=BA=A7=E9=9C=80?=
=?UTF-8?q?=E6=B1=82=E5=88=97=E8=A1=A8BUG=E4=BF=AE=E5=A4=8D=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sql/ry_20240629.sql | 1 +
.../main/resources/mapper/StoreProductDemandDetailMapper.xml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sql/ry_20240629.sql b/sql/ry_20240629.sql
index 48d111a5c..0d76422bf 100644
--- a/sql/ry_20240629.sql
+++ b/sql/ry_20240629.sql
@@ -3406,6 +3406,7 @@ CREATE TABLE `store_product`
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_storeid`(`store_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '档口商品' ROW_FORMAT = DYNAMIC;
+CREATE INDEX idx_store_product_store_status_del ON store_product(store_id, prod_status, del_flag);
-- ----------------------------
diff --git a/xkt/src/main/resources/mapper/StoreProductDemandDetailMapper.xml b/xkt/src/main/resources/mapper/StoreProductDemandDetailMapper.xml
index 8ac566ebd..40ad03239 100644
--- a/xkt/src/main/resources/mapper/StoreProductDemandDetailMapper.xml
+++ b/xkt/src/main/resources/mapper/StoreProductDemandDetailMapper.xml
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and sf.id = #{storeFactoryId}
and sf.remark like concat('%', #{remark}, '%')
and spdd.emergency = #{emergency}
- and spd.demand_status = #{demandStatus}
+ and spdd.detail_status = #{demandStatus}
ORDER BY
spdd.create_time DESC