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