pbom-显示问题。

This commit is contained in:
大米 2024-08-23 09:35:52 +08:00
parent 3379c277cf
commit 434fc809fa
2 changed files with 5 additions and 3 deletions

View File

@ -377,6 +377,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
}
} else { //无BOM-版本时 确定版本号
//child.setSource(Objects.nonNull(parent) ? parent.getSource() : EBomSourceEnum.FROM_BOM.getValue());
child.setBomRowId(0L);
child.setDeviseUserCode(parent.getDeviseUserCode());
child.setDeviseName(parent.getDeviseName());
child.setDeptName(parent.getDeptName());

View File

@ -159,9 +159,10 @@
</select>
<select id="getParentChild" resultType="com.nflg.product.bomnew.pojo.vo.BomNewPbomParentVO">
select *,bom_version_row_id as bom_row_id
from t_bom_new_pbom_child
where parent_row_id = #{parentRowId}
select b.*,b.bom_version_row_id as bom_row_id
from t_bom_new_pbom_parent a join t_bom_new_pbom_child b on a.row_id=b.parent_row_id and a.fac_code=b.fac_code
where a.row_id=#{parentRowId}
order by order_number
</select>