From ac4f0d8e61c545c74f287563765179696b51b856 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 29 五月 2025 17:21:49 +0800 Subject: [PATCH] 增加排班删除功能 --- pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 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 cff337a..fd74664 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/PrScheduleRelMapper.xml @@ -46,19 +46,19 @@ <!--@mbg.generated--> insert into pr_schedule_rel <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="id != null and id !=''"> + <if test="id != null"> id, </if> <if test="scheduleId!= null and scheduleId !=''"> schedule_id, </if> - <if test="planId != null and planId !=''"> + <if test="planId != null"> plan_id, </if> - <if test="nodeId!= null and nodeId !=''"> + <if test="nodeId!= null"> node_id, </if> - <if test="stationId != null and stationId !=''"> + <if test="stationId != null"> station_id, </if> <if test="workDetails!= null and workDetails !=''"> @@ -66,19 +66,19 @@ </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="id != null and id !=''"> + <if test="id != null"> #{id,jdbcType=BIGINT}, </if> <if test="scheduleId!= null and scheduleId !=''"> #{scheduleId,jdbcType=BIGINT}, </if> - <if test="planId != null and planId !=''"> + <if test="planId != null"> #{planId,jdbcType=BIGINT}, </if> - <if test="nodeId!= null and nodeId !=''"> + <if test="nodeId!= null"> #{nodeId,jdbcType=BIGINT}, </if> - <if test="stationId != null and stationId !=''"> + <if test="stationId != null"> #{stationId,jdbcType=BIGINT}, </if> <if test="workDetails!= null and workDetails !=''"> @@ -93,13 +93,13 @@ <if test="scheduleId!= null and scheduleId !=''"> schedule_id = #{scheduleId,jdbcType=BIGINT}, </if> - <if test="planId != null and planId !=''"> + <if test="planId != null"> plan_id = #{planId,jdbcType=BIGINT}, </if> - <if test="nodeId!= null and nodeId !=''"> + <if test="nodeId!= null"> node_id = #{nodeId,jdbcType=BIGINT}, </if> - <if test="stationId != null and stationId !=''"> + <if test="stationId != null"> station_id = #{stationId,jdbcType=BIGINT}, </if> <if test="workDetails!= null and workDetails !=''"> @@ -119,8 +119,8 @@ where id = #{id,jdbcType=BIGINT} </update> - <delete id="deleteByScheduleId"> - delete from pr_schedule_rel where schedule_id=#{scheduleId} + <delete id="deleteByScheduleId" parameterType="java.lang.Long"> + delete from pr_schedule_rel where schedule_id=#{scheduleId} </delete> <select id="selectByScheduleId" resultMap="BaseResultMap"> -- Gitblit v1.8.0