From 1ab5999f546adcca439eb32ea5ecd34819a13ff6 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期六, 12 十月 2024 09:31:07 +0800
Subject: [PATCH] 修改RBD识别算法
---
modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml b/modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml
index afa52bf..d14dfec 100644
--- a/modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/basicInfo/XhProductModelDao.xml
@@ -6,7 +6,11 @@
delete
from product_model
where ship_id = ${shipId}
- and product_type > 2
+ </delete>
+ <delete id="deleteByPid">
+ delete
+ from product_model
+ where PID = ${id}
</delete>
<select id="getList" resultType="com.zt.life.modules.mainPart.basicInfo.model.XhProductModel">
@@ -46,7 +50,6 @@
select a.name, a.id
from product_model a
where a.is_delete = 0
- and a.product_type = 1
</select>
<select id="getProduct" resultType="com.zt.life.modules.mainPart.basicInfo.model.ProductImg">
SELECT a.operat_img as imgPath,
@@ -145,4 +148,9 @@
and a.ship_id = ${shipId}
and a.id = b.product_id
</select>
+ <select id="getByPid" resultType="java.lang.Long">
+ select id
+ from product_model
+ where IS_DELETE=0 and PID=${id}
+ </select>
</mapper>
--
Gitblit v1.9.1