From 5b207a55bdd10f1516031f629217daac069b64fd Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期五, 30 八月 2024 11:40:31 +0800
Subject: [PATCH] 添加免登录查询所有排班接口;

---
 pms-parent/pms-global/src/main/resources/mapper/PrDeviceMapper.xml |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrDeviceMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrDeviceMapper.xml
index 581d229..8a1b2e7 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrDeviceMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrDeviceMapper.xml
@@ -45,14 +45,14 @@
                 <if test="id != null">id,</if>
                 <if test="proId != null">pro_id,</if>
                 <if test="batchId != null">batch_id,</if>
-                <if test="deviceNo != null">device_no,</if>
+                <if test="deviceNo != null and deviceNo !=''">device_no,</if>
                 <if test="status != null">status,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
                 <if test="id != null">#{id,jdbcType=BIGINT},</if>
                 <if test="proId != null">#{proId,jdbcType=BIGINT},</if>
                 <if test="batchId != null">#{batchId,jdbcType=BIGINT},</if>
-                <if test="deviceNo != null">#{deviceNo</if>
+                <if test="deviceNo != null and deviceNo !=''">#{deviceNo},</if>
                 <if test="status != null">#{status,jdbcType=TINYINT},</if>
         </trim>
     </insert>
@@ -78,11 +78,11 @@
                 <if test="batchId != null">
                     batch_id = #{batchId,jdbcType=BIGINT},
                 </if>
-                <if test="deviceNo != null">
-                    device_no = #{deviceNo
+                <if test="deviceNo != null and deviceNo !=''">
+                    device_no = #{deviceNo},
                 </if>
                 <if test="status != null">
-                    status = #{status,jdbcType=TINYINT},
+                    status = #{status,jdbcType=TINYINT}
                 </if>
         </set>
         where   id = #{id,jdbcType=BIGINT} 
@@ -92,7 +92,7 @@
         set 
             pro_id =  #{proId,jdbcType=BIGINT},
             batch_id =  #{batchId,jdbcType=BIGINT},
-            device_no = #{deviceNo
+            device_no = #{deviceNo},
             status =  #{status,jdbcType=TINYINT}
         where   id = #{id,jdbcType=BIGINT} 
     </update>
@@ -111,7 +111,7 @@
                 <if test="batchId != null">
                     batch_id = #{batchId,jdbcType=BIGINT} and
                 </if>
-                <if test="deviceNo != null">
+                <if test="deviceNo != null and deviceNo !=''">
                     device_no = #{deviceNo,jdbcType=BIGINT} and
                 </if>
                 <if test="status != null">
@@ -139,7 +139,7 @@
                 <if test="batchId != null">
                     batch_id = #{batchId,jdbcType=BIGINT} and
                 </if>
-                <if test="deviceNo != null">
+                <if test="deviceNo != null and deviceNo !=''">
                     device_no = #{deviceNo,jdbcType=BIGINT} and
                 </if>
                 <if test="status != null">

--
Gitblit v1.8.0