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/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