From 4ec94848d24833c3c5d1a8b721ce81363db68f28 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 05 八月 2024 20:11:01 +0800
Subject: [PATCH] 优化代码

---
 pms-parent/pms-global/src/main/resources/mapper/PltProParamsMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PltProParamsMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PltProParamsMapper.xml
index 47743cb..6cac71e 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PltProParamsMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PltProParamsMapper.xml
@@ -21,6 +21,12 @@
     from plt_product_params
     where id = #{id,jdbcType=BIGINT}
   </select>
+  <select id="selectParams"  parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select
+    <include refid="Base_Column_List" />
+    from plt_product_params
+    where pro_id = #{proId,jdbcType=BIGINT} and deleted !=1
+  </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
     <!--@mbg.generated-->
     delete from plt_product_params
@@ -86,6 +92,9 @@
       <if test="paramValue != null">
         param_value = #{paramValue,jdbcType=VARCHAR},
       </if>
+      <if test="deleted != null">
+        deleted = #{deleted,jdbcType=TINYINT}
+      </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
   </update>

--
Gitblit v1.8.0