zhanghl
2025-04-27 0f9771f826d82b6a3bcd47011495be0915ebad0e
aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateProcessStatMapper.xml
@@ -22,10 +22,14 @@
        <result property="batchNumber"    column="batch_number"    />
        <result property="createBy"    column="create_by"    />
        <result property="delFlag"    column="del_flag"    />
        <result property="warning"    column="warning"    />
    </resultMap>
    <sql id="selectApsPlateProcessStatVo">
        select id, work_order_no, process_name, num, route_process_number, current_process_number, production_quantity, standard_time, process_total_time, process_plan_end_day,process_plan_start_day, order_plan_end_day, design_times, batch_number, create_by, del_flag from aps_plate_process_stat
        select id, work_order_no, process_name, num, route_process_number, current_process_number, production_quantity,
               standard_time, process_total_time, process_plan_end_day,process_plan_start_day, order_plan_end_day, design_times,
               batch_number, create_by, del_flag, warning
        from aps_plate_process_stat
    </sql>
    <select id="selectApsPlateProcessStatList" parameterType="ApsPlateProcessStat" resultMap="ApsPlateProcessStatResult">
@@ -44,6 +48,7 @@
            <if test="designTimes != null "> and design_times = #{designTimes}</if>
            <if test="batchNumber != null  and batchNumber != ''"> and batch_number = #{batchNumber}</if>
        </where>
        order by work_order_no asc,num desc
    </select>
    
    <select id="selectApsPlateProcessStatById" parameterType="String" resultMap="ApsPlateProcessStatResult">
@@ -65,12 +70,12 @@
            <if test="processTotalTime != null">process_total_time,</if>
            <if test="processPlanEndDay != null">process_plan_end_day,</if>
            <if test="processPlanStartDay != null">process_plan_start_day,</if>
            <if test="processPlanStartDay != null">process_plan_start_day,</if>
            <if test="orderPlanEndDay != null">order_plan_end_day,</if>
            <if test="designTimes != null">design_times,</if>
            <if test="batchNumber != null">batch_number,</if>
            <if test="createBy != null">create_by,</if>
            <if test="delFlag != null">del_flag,</if>
            <if test="warning != null">warning,</if>
            del_flag,
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
@@ -84,11 +89,12 @@
            <if test="processTotalTime != null">#{processTotalTime},</if>
            <if test="processPlanEndDay != null">#{processPlanEndDay},</if>
            <if test="processPlanStartDay != null">#{processPlanStartDay},</if>
            <if test="orderPlanEndDay != null">#{orderPlanEndDay},</if>
            <if test="designTimes != null">#{designTimes},</if>
            <if test="batchNumber != null">#{batchNumber},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="delFlag != null">#{delFlag},</if>
            <if test="warning != null">#{warning},</if>
           '0'
         </trim>
    </insert>
@@ -139,8 +145,7 @@
            pl.plan_end_day as order_plan_end_day
        from aps_plate_plan as pl
                 left join aps_process_route as rt on pl.document_number = rt.work_order_no
        where pl.del_flag = '0'  and rt.del_flag = '0'
          and (pl.document_status is not null and (pl.document_status != '3'))
        where pl.document_status in (0,1,2,4)
        order by rt.work_order_no asc , rt.process_number desc
    </select>
    <update id="removeOtherStat" parameterType="String">