1.工程分包班组下拉框编写
This commit is contained in:
parent
a09efe86d0
commit
e20079f303
|
|
@ -7,11 +7,17 @@
|
||||||
id,
|
id,
|
||||||
pro_name as `name`
|
pro_name as `name`
|
||||||
from pm_project pp
|
from pm_project pp
|
||||||
|
<if test="subId != null">
|
||||||
|
inner join bm_sub_contract bsc on pp.id = bsc.pro_id and bsc.sub_ein_status = 1 and bsc.is_active = 1
|
||||||
|
</if>
|
||||||
<where>
|
<where>
|
||||||
pp.is_active = 1
|
pp.is_active = 1
|
||||||
<if test="subComId != null">
|
<if test="subComId != null">
|
||||||
and pp.sub_com_id = #{subComId}
|
and pp.sub_com_id = #{subComId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="subId != null">
|
||||||
|
and bsc.sub_id = #{subId}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue