@@ -21,4 +21,5 @@ public class OpportunityQueryParam {
private String keyword;
private String projectCode;
private String opportunityOwner;
+ private boolean unassociated = false;
}
@@ -128,6 +128,9 @@
<if test="opportunityOwner != null and opportunityOwner != ''">
AND o.opportunity_owner LIKE CONCAT('%', #{opportunityOwner}, '%')
</if>
+ <if test="unassociated != null and unassociated == true">
+ AND m.opportunity_id is null
+ </if>
</where>
</select>