From 41e833e928e235afe2023398b1d5e8d35c47ded5 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期四, 29 八月 2024 10:37:41 +0800
Subject: [PATCH] privilege
---
pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml
index ef2a29f..f032710 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml
@@ -49,19 +49,19 @@
<if test="id != null">
id,
</if>
- <if test="scheduleId != null">
+ <if test="scheduleId!= null and scheduleId !=''">
schedule_id,
</if>
<if test="planId != null">
plan_id,
</if>
- <if test="nodeId != null">
+ <if test="nodeId!= null">
node_id,
</if>
<if test="stationId != null">
station_id,
</if>
- <if test="workDetails != null">
+ <if test="workDetails!= null and workDetails !=''">
work_details,
</if>
</trim>
@@ -69,19 +69,19 @@
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
- <if test="scheduleId != null">
+ <if test="scheduleId!= null and scheduleId !=''">
#{scheduleId,jdbcType=BIGINT},
</if>
<if test="planId != null">
#{planId,jdbcType=BIGINT},
</if>
- <if test="nodeId != null">
+ <if test="nodeId!= null">
#{nodeId,jdbcType=BIGINT},
</if>
<if test="stationId != null">
#{stationId,jdbcType=BIGINT},
</if>
- <if test="workDetails != null">
+ <if test="workDetails!= null and workDetails !=''">
#{workDetails,jdbcType=VARCHAR},
</if>
</trim>
@@ -90,19 +90,19 @@
<!--@mbg.generated-->
update pr_schedule_rel
<set>
- <if test="scheduleId != null">
+ <if test="scheduleId!= null and scheduleId !=''">
schedule_id = #{scheduleId,jdbcType=BIGINT},
</if>
<if test="planId != null">
plan_id = #{planId,jdbcType=BIGINT},
</if>
- <if test="nodeId != null">
+ <if test="nodeId!= null">
node_id = #{nodeId,jdbcType=BIGINT},
</if>
<if test="stationId != null">
station_id = #{stationId,jdbcType=BIGINT},
</if>
- <if test="workDetails != null">
+ <if test="workDetails!= null and workDetails !=''">
work_details = #{workDetails,jdbcType=VARCHAR},
</if>
</set>
--
Gitblit v1.8.0