1.工程分包班组下拉框编写

This commit is contained in:
方亮 2025-08-19 10:18:28 +08:00
parent a09efe86d0
commit e20079f303
1 changed files with 6 additions and 0 deletions

View File

@ -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>