fix(dqbom): 添加查询条件
This commit is contained in:
parent
fa5be9761c
commit
cddc01abc3
|
|
@ -35,8 +35,8 @@
|
||||||
p.created_by bomCreateBy,
|
p.created_by bomCreateBy,
|
||||||
p.*
|
p.*
|
||||||
FROM t_bom_new_dqbom_parent p
|
FROM t_bom_new_dqbom_parent p
|
||||||
LEFT JOIN t_bom_new_dqbom_child c ON p.material_no = c.material_no
|
LEFT JOIN t_bom_new_dqbom_child c ON c.status=#{query.status} AND p.material_no = c.material_no
|
||||||
WHERE (root_is | user_root_is = 1) AND p.status = #{query.status} AND c.status=#{query.status}
|
WHERE (root_is | user_root_is = 1) AND p.status = #{query.status}
|
||||||
<if test="query.showMySelfOnly == 1">
|
<if test="query.showMySelfOnly == 1">
|
||||||
AND p.created_by = #{userCode}
|
AND p.created_by = #{userCode}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue