From d175d9c401fb97ebe6a580005a8c9ad5fedccb6b Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期一, 29 七月 2024 17:02:41 +0800
Subject: [PATCH] add other method
---
pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml | 33 ++++++++++++++++++++-------------
1 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
index 046ca0c..3f4fd0e 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrProductionNodeMapper.xml
@@ -13,7 +13,7 @@
<result property="isStart" column="is_start" jdbcType="TINYINT"/>
<result property="isEnd" column="is_end" jdbcType="TINYINT"/>
<result property="isRecord" column="is_record" jdbcType="TINYINT"/>
- <result property="equipCycleContent" column="equip_cycle_content" jdbcType="VARCHAR"/>
+ <result property="deviceCycleContent" column="device_cycle_content" jdbcType="VARCHAR"/>
<result property="deleted" column="deleted" jdbcType="TINYINT"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
<association property="instruction"
@@ -23,7 +23,7 @@
<sql id="Base_Column_List">
id,process_id,sort,
content,node_type,is_start,is_end,
- is_record,equip_cycle_content,deleted,
+ is_record,device_cycle_content,deleted,
remark
</sql>
@@ -49,6 +49,13 @@
delete from pr_production_node
where process_id = #{processId,jdbcType=BIGINT}
</delete>
+ <delete id="deleteByNodeId" parameterType="arraylist">
+ delete from pr_production_node
+ where id in
+ <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ </delete>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrProductionNode" useGeneratedKeys="true">
insert into pr_production_node
<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -60,7 +67,7 @@
<if test="isStart != null">is_start,</if>
<if test="isEnd != null">is_end,</if>
<if test="isRecord != null">is_record,</if>
- <if test="equipCycleContent != null">equip_cycle_content,</if>
+ <if test="deviceCycleContent != null">device_cycle_content,</if>
<if test="deleted != null">deleted,</if>
<if test="remark != null">remark,</if>
</trim>
@@ -73,7 +80,7 @@
<if test="isStart != null">#{isStart,jdbcType=TINYINT},</if>
<if test="isEnd != null">#{isEnd,jdbcType=TINYINT},</if>
<if test="isRecord != null">#{isRecord,jdbcType=TINYINT},</if>
- <if test="equipCycleContent != null">#{equipCycleContent,jdbcType=VARCHAR},</if>
+ <if test="deviceCycleContent != null">#{deviceCycleContent,jdbcType=VARCHAR},</if>
<if test="deleted != null">#{deleted,jdbcType=TINYINT},</if>
<if test="remark != null">#{remark,jdbcType=VARCHAR},</if>
</trim>
@@ -82,7 +89,7 @@
<insert id="insertMany" parameterType="java.util.List">
INSERT INTO pr_production_node (id,process_id,sort,
content,node_type,is_start,is_end,
- is_record,equip_cycle_content,deleted,
+ is_record,device_cycle_content,deleted,
remark) VALUES
<foreach item="item" index="index" collection="list" open="(" separator="),(" close=")">
#{item.id},
@@ -93,7 +100,7 @@
#{item.isStart},
#{item.isEnd},
#{item.isRecord},
- #{item.equipCycleContent},
+ #{item.deviceCycleContent},
#{item.deleted},
#{item.remark}
</foreach>
@@ -124,8 +131,8 @@
<if test="isRecord != null">
is_record = #{isRecord,jdbcType=TINYINT},
</if>
- <if test="equipCycleContent != null">
- equip_cycle_content = #{equipCycleContent,jdbcType=VARCHAR},
+ <if test="deviceCycleContent != null">
+ device_cycle_content = #{deviceCycleContent,jdbcType=VARCHAR},
</if>
<if test="deleted != null">
deleted = #{deleted,jdbcType=TINYINT},
@@ -147,11 +154,11 @@
</if>
</trim>
order by sort asc
- <trim prefix="limit " >
- <if test="start != null and count != null">
- #{start}, #{count}
- </if>
- </trim>
+<!-- <trim prefix="limit " >-->
+<!-- <if test="start != null and count != null">-->
+<!-- #{start}, #{count}-->
+<!-- </if>-->
+<!-- </trim>-->
</select>
<select id="isEndNode" resultType="java.lang.Boolean">
select
--
Gitblit v1.8.0