huangjiayang
2025-05-12 f003459b33063abdcca11bb6aea1ed550ca5cc7d
aps-modules/aps-core/src/main/resources/mapper/core/ApsPlateStandardRequireBomStockDetailMapper.xml
@@ -122,4 +122,17 @@
    <update id="deleteLastPatch" parameterType="String">
        update aps_plate_standard_require_bom_stock_detail set del_flag = '1' where batch_number = #{batchNumber}
    </update>
    <insert id="batchInsert" parameterType="ApsPlateStandardRequireBomStockDetail">
        insert into aps_plate_standard_require_bom_stock_detail
        (id,require_id, require_track_id, bom_line_id, bom_line_code, before_stock_amount, deduction_amount
        , after_stock_amount, org_code, batch_number, del_flag, create_time, create_by)
        values
        <foreach item="item" index="index" collection="list" separator=",">
            ( #{id}, #{item.requireId}, #{item.requireTrackId}, #{item.bomLineId}, #{item.bomLineCode}
            , #{item.beforeStockAmount} , #{item.deductionAmount}, #{item.afterStockAmount}, #{item.orgCode}
            , #{item.batchNumber} , #{item.delFlag}, #{item.createTime}, #{item.createBy}
            )
        </foreach>
    </insert>
</mapper>