zhanghl
2025-05-22 dae4a24949c0c8cfad87aff850b667d3cad399c1
aps-modules/aps-core/src/main/resources/mapper/core/ApsBomHeaderMapper.xml
@@ -109,13 +109,10 @@
        LEFT JOIN aps_bom_line b on a.bom_header_id=b.bom_header_id
        LEFT JOIN aps_material_management d on b.item_code=d.item_number
        LEFT JOIN aps_material_management c on a.item_code=c.item_number
        <where>
            <if test="orgCode != null and orgCode != ''">
                and a.org_code=#{orgCode} and d.applicable_factories=#{orgCode}
            </if>
            and d.material_type='制造件'
            and c.material_type='制造件'
        </where>
        where   d.material_type='制造件' and c.material_type='制造件'
        <if test="orgCode != null and orgCode != ''">
            and a.org_code=#{orgCode} and d.applicable_factories=#{orgCode}
        </if>
        ORDER BY mainItemCode
    </select>
</mapper>