修改关联条件
This commit is contained in:
parent
e10b5a9283
commit
9473d6952e
|
|
@ -259,7 +259,7 @@
|
||||||
LEFT JOIN bm_sub_relation bsr ON bsr.sub_contract_id = bsc.id
|
LEFT JOIN bm_sub_relation bsr ON bsr.sub_contract_id = bsc.id
|
||||||
AND bsr.type = '3'
|
AND bsr.type = '3'
|
||||||
AND bsr.is_active = '1'
|
AND bsr.is_active = '1'
|
||||||
LEFT JOIN bm_sub_team bst ON bst.id = bsr.`value`
|
LEFT JOIN bm_sub_team bst ON bst.id = bsr.`v`
|
||||||
AND bst.is_active = '1'
|
AND bst.is_active = '1'
|
||||||
WHERE bst.id is not null and bsc.is_active = '1'
|
WHERE bst.id is not null and bsc.is_active = '1'
|
||||||
<if test="proId != null and proId != '' ">
|
<if test="proId != null and proId != '' ">
|
||||||
|
|
@ -454,4 +454,4 @@
|
||||||
from bm_project
|
from bm_project
|
||||||
where is_active = '1'
|
where is_active = '1'
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue