From 623397a394196189057db9c1948fe3b24f7fa4e3 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期三, 24 七月 2024 15:34:14 +0800 Subject: [PATCH] 生产线和工站添加启用禁用的校验 --- pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml index 0f4ff2d..9483fc7 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaRepairInfoMapper.xml @@ -6,7 +6,7 @@ <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaRepairInfo"> <id property="id" column="id" jdbcType="BIGINT"/> - <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> + <result property="deviceNo" column="device_no" jdbcType="VARCHAR"/> <result property="workId" column="work_id" jdbcType="BIGINT"/> <result property="fromNode" column="from_node" jdbcType="BIGINT"/> <result property="repairReason" column="repair_reason" jdbcType="VARCHAR"/> @@ -15,7 +15,7 @@ </resultMap> <sql id="Base_Column_List"> - id,equip_no,work_id, + id,device_no,work_id, from_node,repair_reason,repair_by, repair_time </sql> @@ -26,11 +26,11 @@ from sta_repair_info where id = #{id,jdbcType=BIGINT} </select> - <select id="selectByEquipNo" resultMap="BaseResultMap"> + <select id="selectByDeviceNo" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from sta_repair_info - where equip_no = #{equipNo,jdbcType=VARCHAR} + where device_no = #{deviceNo,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from sta_repair_info @@ -38,10 +38,10 @@ </delete> <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo" useGeneratedKeys="true"> insert into sta_repair_info - ( id,equip_no,work_id + ( id,device_no,work_id ,from_node,repair_reason,repair_by ,repair_time) - values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{workId,jdbcType=BIGINT} + values (#{id,jdbcType=BIGINT},#{deviceNo,jdbcType=VARCHAR},#{workId,jdbcType=BIGINT} ,#{fromNode,jdbcType=BIGINT},#{repairReason,jdbcType=VARCHAR},#{repairBy,jdbcType=BIGINT} ,#{repairTime,jdbcType=TIMESTAMP}) </insert> @@ -49,7 +49,7 @@ insert into sta_repair_info <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">id,</if> - <if test="equipNo != null">equip_no,</if> + <if test="deviceNo != null">device_no,</if> <if test="workId != null">work_id,</if> <if test="fromNode != null">from_node,</if> <if test="repairReason != null">repair_reason,</if> @@ -58,7 +58,7 @@ </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id,jdbcType=BIGINT},</if> - <if test="equipNo != null">#{equipNo,jdbcType=VARCHAR},</if> + <if test="deviceNo != null">#{deviceNo,jdbcType=VARCHAR},</if> <if test="workId != null">#{workId,jdbcType=BIGINT},</if> <if test="fromNode != null">#{fromNode,jdbcType=BIGINT},</if> <if test="repairReason != null">#{repairReason,jdbcType=VARCHAR},</if> @@ -69,8 +69,8 @@ <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo"> update sta_repair_info <set> - <if test="equipNo != null"> - equip_no = #{equipNo,jdbcType=VARCHAR}, + <if test="deviceNo != null"> + device_no = #{deviceNo,jdbcType=VARCHAR}, </if> <if test="workId != null"> work_id = #{workId,jdbcType=BIGINT}, @@ -93,7 +93,7 @@ <update id="updateByPrimaryKey" parameterType="com.dy.pmsGlobal.pojoSta.StaRepairInfo"> update sta_repair_info set - equip_no = #{equipNo,jdbcType=VARCHAR}, + device_no = #{deviceNo,jdbcType=VARCHAR}, work_id = #{workId,jdbcType=BIGINT}, from_node = #{fromNode,jdbcType=BIGINT}, repair_reason = #{repairReason,jdbcType=VARCHAR}, -- Gitblit v1.8.0