1、PBOM工作表通过物料号能查到已发布的
This commit is contained in:
parent
9248214549
commit
4f599c67ce
|
|
@ -173,7 +173,7 @@
|
||||||
<!--物料编码搜索-父级-->
|
<!--物料编码搜索-父级-->
|
||||||
<select id="getParentForMaterialNoSeach" resultType="com.nflg.product.bomnew.pojo.vo.BomNewPbomParentVO">
|
<select id="getParentForMaterialNoSeach" resultType="com.nflg.product.bomnew.pojo.vo.BomNewPbomParentVO">
|
||||||
SELECT created_by as bomCreatedBy , row_id as bomRowId, row_id as childBomRowId, a.*
|
SELECT created_by as bomCreatedBy , row_id as bomRowId, row_id as childBomRowId, a.*
|
||||||
FROM t_bom_new_pbom_parent a where a.last_version_is=1
|
FROM t_bom_new_pbom_parent a where a.last_version_is=1 and a.status=1
|
||||||
<if test="userFac!=null and userFac!=''">
|
<if test="userFac!=null and userFac!=''">
|
||||||
and fac_code=#{userFac}
|
and fac_code=#{userFac}
|
||||||
</if> and material_no in
|
</if> and material_no in
|
||||||
|
|
@ -189,7 +189,7 @@
|
||||||
from t_bom_new_pbom_parent a
|
from t_bom_new_pbom_parent a
|
||||||
join t_bom_new_pbom_child b on a.row_id =b.parent_row_id
|
join t_bom_new_pbom_child b on a.row_id =b.parent_row_id
|
||||||
left join t_bom_new_pbom_parent c on b.material_no=c.material_no and b.fac_code=c.fac_code and c.last_version_is=1
|
left join t_bom_new_pbom_parent c on b.material_no=c.material_no and b.fac_code=c.fac_code and c.last_version_is=1
|
||||||
where a.last_version_is=1
|
where a.last_version_is=1 abd a.status=1
|
||||||
<if test="userFac!=null and userFac!=''">
|
<if test="userFac!=null and userFac!=''">
|
||||||
and a.fac_code=#{userFac}
|
and a.fac_code=#{userFac}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue