chengf
2026-01-29 b012b819cb8b2ce883aa68d0c179a156b000598e
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/demo/semanticword/controller/SemanticWordController.java
@@ -98,6 +98,14 @@
                    "SELECT id FROM contract WHERE customer_name = '" + customerName + "'"
            );
        }
        String isDropService = semanticWord.getIsDropService();
        if (customerName != null && !customerName.isEmpty()) {
            // 拼接关联条件:semantic_word关联contract,contract关联customer,通过客户名称过滤
            queryWrapper.inSql(
                    "contract_id",  // semantic_word表中关联contract的字段
                    "SELECT id FROM contract WHERE is_drop_service = '" + isDropService + "'"
            );
        }
        String agentName = semanticWord.getAgentName();
        if (agentName != null && !agentName.isEmpty()) {
            // 拼接关联条件:semantic_word关联contract,contract关联customer,通过客户名称过滤