没有子级时,bomRowId设置为0,原来是null
This commit is contained in:
parent
716dbc6eae
commit
0fafee339d
|
|
@ -185,7 +185,7 @@
|
||||||
<select id="getChildForMaterialNoSeach" resultType="com.nflg.product.bomnew.pojo.vo.BomNewPbomParentVO">
|
<select id="getChildForMaterialNoSeach" resultType="com.nflg.product.bomnew.pojo.vo.BomNewPbomParentVO">
|
||||||
select if(c.status=4,2,c.status) as status ,c.current_version , c.created_by as bomCreatedBy
|
select if(c.status=4,2,c.status) as status ,c.current_version , c.created_by as bomCreatedBy
|
||||||
,c.devise_name,c.devise_user_code,c.dept_name ,
|
,c.devise_name,c.devise_user_code,c.dept_name ,
|
||||||
c.row_id as bomRowId, c.row_id as childBomRowId, b.*
|
if(c.row_id is null,0,c.row_id) as bomRowId, c.row_id as childBomRowId, b.*
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue