From fcc62c9f3b829b51eb8f0607d9276c49b63c6331 Mon Sep 17 00:00:00 2001 From: zhanghl <253316343@qq.com> Date: 星期日, 27 四月 2025 14:24:57 +0800 Subject: [PATCH] 零件统计问题修复 --- aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml index 144bfb7..87c3b77 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsStandardProcessMapper.xml @@ -23,10 +23,11 @@ <result property="updateTime" column="update_time" /> <result property="modelId" column="model_id" /> <result property="workCalender" column="work_calender" /> + <result property="major" column="major" /> </resultMap> <sql id="selectApsStandardProcessVo"> - select id, process_number, process_name, resource_group_name, model, design_capacity, plant_id, plant, work_shop_id, work_shop, work_calender_id, del_flag, create_by, create_time, update_by, update_time, model_id, work_calender from aps_standard_process + select id, process_number, process_name, resource_group_name, model, design_capacity, plant_id, plant, work_shop_id, work_shop, work_calender_id, del_flag, create_by, create_time, update_by, update_time, model_id, work_calender,major from aps_standard_process </sql> <select id="selectApsStandardProcessList" parameterType="ApsStandardProcess" resultMap="ApsStandardProcessResult"> @@ -44,6 +45,7 @@ <if test="workCalenderId != null "> and work_calender_id = #{workCalenderId}</if> <if test="modelId != null "> and model_id = #{modelId}</if> <if test="workCalender != null and workCalender != ''"> and work_calender = #{workCalender}</if> + <if test="major != null and major != ''"> and major = #{major}</if> </where> </select> @@ -55,7 +57,6 @@ <insert id="insertApsStandardProcess" parameterType="ApsStandardProcess"> insert into aps_standard_process <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="id != null">id,</if> <if test="processNumber != null">process_number,</if> <if test="processName != null">process_name,</if> <if test="resourceGroupName != null">resource_group_name,</if> @@ -73,9 +74,9 @@ <if test="updateTime != null">update_time,</if> <if test="modelId != null">model_id,</if> <if test="workCalender != null">work_calender,</if> + <if test="major != null">major,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="id != null">#{id},</if> <if test="processNumber != null">#{processNumber},</if> <if test="processName != null">#{processName},</if> <if test="resourceGroupName != null">#{resourceGroupName},</if> @@ -93,6 +94,7 @@ <if test="updateTime != null">#{updateTime},</if> <if test="modelId != null">#{modelId},</if> <if test="workCalender != null">#{workCalender},</if> + <if test="major != null">#{major},</if> </trim> </insert> @@ -116,6 +118,7 @@ <if test="updateTime != null">update_time = #{updateTime},</if> <if test="modelId != null">model_id = #{modelId},</if> <if test="workCalender != null">work_calender = #{workCalender},</if> + <if test="major != null">major = #{major},</if> </trim> where id = #{id} </update> -- Gitblit v1.9.3