From 0d05424b5df05f2e6ef478934cdaad9c71e5d91d Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 18 九月 2024 09:34:56 +0800
Subject: [PATCH] product name and type

---
 pms-parent/pms-global/src/main/resources/mapper/PltProductionLineMapper.xml |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PltProductionLineMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PltProductionLineMapper.xml
index f3aaddd..3eeff2e 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PltProductionLineMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PltProductionLineMapper.xml
@@ -51,25 +51,25 @@
     <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPlt.PltProductionLine" useGeneratedKeys="true">
         insert into plt_production_line
         <trim prefix="(" suffix=")" suffixOverrides=",">
-                <if test="id != null and id !=''">id,</if>
+                <if test="id != null">id,</if>
                 <if test="name != null and name !=''">name,</if>
                 <if test="type != null and type !=''">type,</if>
                 <if test="factory != null and factory !=''">factory,</if>
                 <if test="director != null and director !=''">director,</if>
                 <if test="dMobile != null and dMobile !=''">d_mobile,</if>
                 <if test="installTime != null and installTime !=''">install_time,</if>
-                <if test="deleted != null and deleted !=''">deleted,</if>
+                <if test="deleted != null">deleted,</if>
                 <if test="remark != null and remark !=''">remark,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
-                <if test="id != null and id !=''">#{id,jdbcType=BIGINT},</if>
+                <if test="id != null">#{id,jdbcType=BIGINT},</if>
                 <if test="name != null and name !=''">#{name,jdbcType=VARCHAR},</if>
                 <if test="type != null and type !=''">#{type,jdbcType=VARCHAR},</if>
                 <if test="factory != null and factory !=''">#{factory,jdbcType=VARCHAR},</if>
                 <if test="director != null and director !=''">#{director,jdbcType=VARCHAR},</if>
                 <if test="dMobile != null and dMobile !=''">#{dMobile,jdbcType=VARCHAR},</if>
                 <if test="installTime != null and installTime !=''">#{installTime,jdbcType=VARCHAR},</if>
-                <if test="deleted != null and deleted !=''">#{deleted,jdbcType=TINYINT},</if>
+                <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if>
                 <if test="remark != null and remark !=''">#{remark,jdbcType=VARCHAR},</if>
         </trim>
     </insert>
@@ -94,10 +94,10 @@
             <if test="installTime != null and installTime !=''">
                 install_time = #{installTime,jdbcType=VARCHAR},
             </if>
-            <if test="disabled != null and disabled !=''">
+            <if test="disabled != null">
                 disabled = #{disabled},
             </if>
-            <if test="deleted != null and deleted !=''">
+            <if test="deleted != null">
                 deleted = #{deleted,jdbcType=TINYINT},
             </if>
             <if test="remark != null and remark !=''">
@@ -166,7 +166,7 @@
     </select>
     <select id="selectByNameId" resultType="java.lang.Long">
         select count(1) from plt_production_line where name = #{name} and deleted != 1
-        <if test="id != null and id !=''">
+        <if test="id != null">
             and id != #{id}
         </if>
     </select>

--
Gitblit v1.8.0