Browse Source

#公开市场详情筛选商机时过滤掉已关联的商机

sunhuijun 1 month ago
parent
commit
5e3a7c0c8c

+ 1 - 0
src/main/java/cn/chinaunicom/omniFlowNetCompute/pojo/OpportunityQueryParam.java

@@ -21,4 +21,5 @@ public class OpportunityQueryParam {
     private String keyword;
     private String projectCode;
     private String opportunityOwner;
+    private boolean unassociated = false;
 }

+ 3 - 0
src/main/resources/mapper/omni/OpportunityMapper.xml

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