From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001 From: sfd <sun.sunshine@163.com> Date: 星期一, 26 五月 2025 15:04:45 +0800 Subject: [PATCH] 修改json类型转换错误 --- aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessRouteTempMapper.xml | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessRouteTempMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessRouteTempMapper.xml index 385f6d1..adc27dc 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessRouteTempMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsProcessRouteTempMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.aps.core.mapper.ApsProcessRouteTempMapper"> - <resultMap type="ApsProcessRouteTemp" id="ApsProcessRouteTempResult"> + <resultMap type="com.aps.core.domain.ApsProcessRouteTemp" id="ApsProcessRouteTempResult"> <result property="id" column="id" /> <result property="itemNo" column="item_no" /> <result property="workOrderNo" column="work_order_no" /> @@ -23,13 +23,15 @@ <result property="createTime" column="create_time" /> <result property="updateBy" column="update_by" /> <result property="updateTime" column="update_time" /> + <result property="standardTime" column="standard_time" /> + <result property="processOrder" column="process_order" /> </resultMap> <sql id="selectApsProcessRouteTempVo"> - select id, item_no, work_order_no, process_number, process_name, process_plan_start_day, process_plan_end_day, not_start_work_count, completed_count, discard_count, integration_day, batch_number, plant, del_flag, create_by, create_time, update_by, update_time from aps_process_route_temp + select id, item_no, work_order_no, process_number, process_name, process_plan_start_day, process_plan_end_day, not_start_work_count, completed_count, discard_count, integration_day, batch_number, plant, del_flag, create_by, create_time, update_by, update_time,standard_time,process_order from aps_process_route_temp </sql> - <select id="selectApsProcessRouteTempList" parameterType="ApsProcessRouteTemp" resultMap="ApsProcessRouteTempResult"> + <select id="selectApsProcessRouteTempList" parameterType="com.aps.core.domain.ApsProcessRouteTemp" resultMap="ApsProcessRouteTempResult"> <include refid="selectApsProcessRouteTempVo"/> <where> <if test="itemNo != null and itemNo != ''"> and item_no = #{itemNo}</if> @@ -50,7 +52,7 @@ <select id="selectApsProcessRouteTempById" parameterType="String" resultMap="ApsProcessRouteTempResult"> </select> - <insert id="insertApsProcessRouteTemp" parameterType="ApsProcessRouteTemp"> + <insert id="insertApsProcessRouteTemp" parameterType="com.aps.core.domain.ApsProcessRouteTemp"> insert into aps_process_route_temp <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">id,</if> @@ -71,6 +73,8 @@ <if test="createTime != null">create_time,</if> <if test="updateBy != null">update_by,</if> <if test="updateTime != null">update_time,</if> + <if test="standardTime != null">standard_time,</if> + <if test="processOrder != null">process_order,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id},</if> @@ -91,10 +95,12 @@ <if test="createTime != null">#{createTime},</if> <if test="updateBy != null">#{updateBy},</if> <if test="updateTime != null">#{updateTime},</if> + <if test="standardTime != null">#{standardTime},</if> + <if test="processOrder != null">#{processOrder},</if> </trim> </insert> - <update id="updateApsProcessRouteTemp" parameterType="ApsProcessRouteTemp"> + <update id="updateApsProcessRouteTemp" parameterType="com.aps.core.domain.ApsProcessRouteTemp"> update aps_process_route_temp <trim prefix="SET" suffixOverrides=","> <if test="itemNo != null">item_no = #{itemNo},</if> @@ -114,6 +120,9 @@ <if test="createTime != null">create_time = #{createTime},</if> <if test="updateBy != null">update_by = #{updateBy},</if> <if test="updateTime != null">update_time = #{updateTime},</if> + <if test="standardTime != null">standard_time = #{standardTime},</if> + <if test="processOrder != null">process_order = #{processOrder},</if> + </trim> where id = #{id} </update> -- Gitblit v1.9.3