From 4a9dc7790df8f4572201cd32f1359f5d6415ce18 Mon Sep 17 00:00:00 2001 From: zhanghl <253316343@qq.com> Date: 星期二, 13 五月 2025 16:10:44 +0800 Subject: [PATCH] 钣金工单计划管理:完善 工单创建时间、需求数量 --- aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml index 0575604..30ad4ac 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.aps.core.mapper.ApsPlatePlanMapper"> - <resultMap type="ApsPlatePlan" id="ApsPlatePlanResult"> + <resultMap type="com.aps.core.domain.ApsPlatePlan" id="ApsPlatePlanResult"> <result property="id" column="id" /> <result property="masterPlanner" column="master_planner" /> <result property="weekDay" column="week_day" /> @@ -63,7 +63,7 @@ from aps_plate_plan </sql> - <select id="selectApsPlatePlanList" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> + <select id="selectApsPlatePlanList" parameterType="com.aps.core.domain.ApsPlatePlan" resultMap="ApsPlatePlanResult"> <include refid="selectApsPlatePlanVo"/> <where> <if test="masterPlanner != null and masterPlanner != ''"> and master_planner like '%'|| #{masterPlanner}|| '%'</if> @@ -113,7 +113,7 @@ where id = #{id} </select> - <insert id="insertApsPlatePlan" parameterType="ApsPlatePlan"> + <insert id="insertApsPlatePlan" parameterType="com.aps.core.domain.ApsPlatePlan"> insert into aps_plate_plan <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null and id != ''">id,</if> @@ -201,7 +201,7 @@ </trim> </insert> - <update id="updateApsPlatePlan" parameterType="ApsPlatePlan"> + <update id="updateApsPlatePlan" parameterType="com.aps.core.domain.ApsPlatePlan"> update aps_plate_plan <trim prefix="SET" suffixOverrides=","> <if test="masterPlanner != null">master_planner = #{masterPlanner},</if> @@ -269,19 +269,19 @@ update aps_plate_plan set del_flag='1' where del_flag ='0' </update> - <select id="selectPlatePlanByPlantMajor" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> + <select id="selectPlatePlanByPlantMajor" parameterType="com.aps.core.domain.ApsPlatePlan" resultMap="ApsPlatePlanResult"> select id,document_number,main_part_number,item_number,plant,professional_affiliation,production_quantity,require_id, - unmatched_quantity,version, production_base,plan_end_day + unmatched_quantity,version, production_base,plan_end_day,order_create_time from aps_plate_plan <where> - <if test="plant != null "> and plant = #{plant}</if> - <if test="professionalAffiliation != null "> and professional_affiliation = #{professionalAffiliation}</if> - and del_flag='0' + <if test="plant != null "> and plant = #{plant} </if> + <if test="professionalAffiliation != null "> and professional_affiliation = 'main' </if> + and del_flag='0' </where> order by document_number asc,id asc </select> - <select id="selectUnMatchPlateSubPlan" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> + <select id="selectUnMatchPlateSubPlan" parameterType="com.aps.core.domain.ApsPlatePlan" resultMap="ApsPlatePlanResult"> select id,document_number,main_part_number,item_number,plant,professional_affiliation,production_quantity, unmatched_quantity,version from aps_plate_plan @@ -293,14 +293,14 @@ </select> - <update id="updatePlanUnMatchQtyByVersion" parameterType="ApsPlatePlan"> + <update id="updatePlanUnMatchQtyByVersion" parameterType="com.aps.core.domain.ApsPlatePlan"> update aps_plate_plan set unmatched_quantity=#{unmatchedQuantity},version=version+1 where id=#{id} and version=#{version} </update> - <select id="selectPlateRedundantOrderList" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> + <select id="selectPlateRedundantOrderList" parameterType="com.aps.core.domain.ApsPlatePlan" resultMap="ApsPlatePlanResult"> select document_number, item_number, production_quantity, unmatched_quantity, plant, production_base, plan_start_day, plan_end_day, order_create_time - from aps_plate_plan where unmatched_quantity>0 and professional_affiliation!='0' and del_flag='0' + from aps_plate_plan where unmatched_quantity>0 and professional_affiliation='sub' and del_flag='0' <if test="documentNumber != null and documentNumber != ''"> and document_number like '%' || #{documentNumber} || '%' </if> -- Gitblit v1.9.3