bluejay
2025-04-14 faafd7295f73246a4ff5895e9fdf79deb543f35d
aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml
@@ -82,6 +82,7 @@
            <if test="isStockComplete != null "> and is_stock_complete = #{isStockComplete}</if>
            <if test="hasTurnback != null "> and has_turnback = #{hasTurnback}</if>
            <if test="hasRisk != null "> and has_risk = #{hasRisk}</if>
             and del_flag='0'
        </where>
    </select>
    
@@ -271,4 +272,15 @@
            ,#{item.isStockComplete},#{item.hasTurnback},#{item.hasRisk},#{item.plant})
        </foreach>
    </insert>
    <update id="selectPartPlanListByDocumentNumbers" parameterType="String" >
        select id from aps_part_plan where documentNumber in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </update>
    <update id="removeAllPartPlans" parameterType="String">
        update  aps_part_plan  set del_flag='1' where del_flag ='0'
    </update>
</mapper>