From d05dd9bd1e32e95108b0a299ccf71459c685c222 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期三, 19 六月 2024 14:25:59 +0800 Subject: [PATCH] 模块名称修改 --- pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pms-parent/pms-global/src/main/resources/mapper/WoDeviceLastMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml similarity index 93% rename from pms-parent/pms-global/src/main/resources/mapper/WoDeviceLastMapper.xml rename to pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml index e3f8ed2..e7b002b 100644 --- a/pms-parent/pms-global/src/main/resources/mapper/WoDeviceLastMapper.xml +++ b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceLastMapper.xml @@ -2,9 +2,9 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.dy.pmsGlobal.daoWo.WoDeviceLastMapper"> +<mapper namespace="com.dy.pmsGlobal.daoSta.StaDeviceLastMapper"> - <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoWo.WoDeviceLast"> + <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaDeviceLast"> <id property="id" column="id" jdbcType="BIGINT"/> <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> <result property="planId" column="plan_id" jdbcType="VARCHAR"/> @@ -33,16 +33,16 @@ <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> - from wo_device_last + from sta_device_last where id = #{id,jdbcType=BIGINT} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> - delete from wo_device_last + delete from sta_device_last where id = #{id,jdbcType=BIGINT} </delete> - <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoWo.WoDeviceLast" useGeneratedKeys="true"> - insert into wo_device_last + <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceLast" useGeneratedKeys="true"> + insert into sta_device_last ( id,equip_no,plan_id ,station_id,curr_node,next_node ,status,result,error_code @@ -56,8 +56,8 @@ ,#{updatedDate,jdbcType=TIMESTAMP},#{updatedBy,jdbcType=VARCHAR},#{inStationTime,jdbcType=TIMESTAMP} ) </insert> - <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoWo.WoDeviceLast" useGeneratedKeys="true"> - insert into wo_device_last + <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceLast" useGeneratedKeys="true"> + insert into sta_device_last <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">id,</if> <if test="equipNo != null">equip_no,</if> @@ -93,8 +93,8 @@ <if test="inStationTime != null">#{inStationTime,jdbcType=TIMESTAMP},</if> </trim> </insert> - <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoWo.WoDeviceLast"> - update wo_device_last + <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceLast"> + update sta_device_last <set> <if test="equipNo != null"> equip_no = #{equipNo,jdbcType=VARCHAR}, @@ -141,8 +141,8 @@ </set> where id = #{id,jdbcType=BIGINT} </update> - <update id="updateByPrimaryKey" parameterType="com.dy.pmsGlobal.pojoWo.WoDeviceLast"> - update wo_device_last + <update id="updateByPrimaryKey" parameterType="com.dy.pmsGlobal.pojoSta.StaDeviceLast"> + update sta_device_last set equip_no = #{equipNo,jdbcType=VARCHAR}, plan_id = #{planId,jdbcType=VARCHAR}, -- Gitblit v1.8.0