1、BUG-88

This commit is contained in:
大米 2024-04-13 09:05:04 +08:00
parent a0947bb48c
commit 01d8429df9
1 changed files with 5 additions and 1 deletions

View File

@ -136,7 +136,11 @@
<!--BOM-正式工作表--> <!--BOM-正式工作表-->
<select id="formalWorksheet" resultType="com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO"> <select id="formalWorksheet" resultType="com.nflg.product.bomnew.pojo.vo.BomNewEbomParentVO">
select * , row_id as bomRowId from t_bom_new_ebom_parent where status=4 and last_version_is=1 select * , row_id as bomRowId from t_bom_new_ebom_parent a
join (select material_no, max(current_version) current_version from t_bom_new_ebom_parent
where status=4 <include refid="whr"/>
group by material_no) b on a.material_no=b.material_no and a.current_version=b.current_version
where a.status=4
<include refid="whr"/> <include refid="whr"/>
</select> </select>