zhanghl
2025-05-08 13c1adb5494af143cf7b3d7ee60c6f4025a90040
aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateStandardRequireMapper.xml
@@ -177,4 +177,43 @@
        <if test="requireId != null and requireId != ''"> and require_id like '%' || #{requireId} || '%'</if>
        <if test="bomLineCode != null and bomLineCode != ''"> and bom_line_code like '%' || #{bomLineCode} || '%'</if>
    </select>
    <insert id="batchInsert" parameterType="java.util.List">
        insert into aps_plate_standard_require
        (id, require_id,doc_num,batch_number, org_code, bom_line_id, bom_line_code, bom_line_level, bom_use_amount, process_route_id,
         process_route_hours, require_amount, net_requirement, start_date, complete_date, demand_date,
         production_base, match_state, match_mode, unmatched_demand_amount, suggested_completion_date,
         has_delay_risk, batch_number, del_flag, create_time, create_by)
        values
        <foreach collection="list" item="item" separator=",">
        (
            #{item.Id},
            #{item.requireId},
            #{item.docNum},
            #{item.batchNumber},
            #{item.orgCode},
            #{item.bomLineId},
            #{item.bomLineCode},
            #{item.bomLineLevel},
            #{item.bomUseAmount},
            #{item.processRouteId},
            #{item.processRouteHours},
            #{item.requireAmount},
            #{item.netRequirement},
            #{item.startDate},
            #{item.completeDate},
            #{item.demandDate},
            #{item.productionBase},
            #{item.matchState},
            #{item.matchMode},
            #{item.unmatchedDemandAmount},
            #{item.suggestedCompletionDate},
            #{item.hasDelayRisk},
            #{item.batchNumber},
            #{item.delFlag},
            #{item.createTime},
            #{item.createBy}
        )
        </foreach>
    </insert>
</mapper>