lrf 7 ماه پیش
والد
کامیت
630a558b2a
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      src/service/accurateMatching.service.ts

+ 4 - 4
src/service/accurateMatching.service.ts

@@ -34,15 +34,15 @@ export class AccurateMatchingService {
   //由供给信息查询
   async forDemandSearch(keyword: string, skip = 0, limit = 10, id) {
     const fields = ['name', 'tags', 'brief'];
-    const config = { index: ['demand', 'achievement'], fields };
-    const origin_index = 'supply';
+    const config = { index: ['supply', 'achievement'], fields };
+    const origin_index = 'demand';
     return await this.manyIndexsSearch(keyword, config, skip, limit, origin_index, id);
   }
   // 由需求信息查询
   async forSupplySearch(keyword: string, skip = 0, limit = 10, id) {
     const fields = ['name', 'tags', 'brief'];
-    const config = { index: ['supply', 'achievement'], fields };
-    const origin_index = 'demand';
+    const config = { index: ['demand', 'achievement'], fields };
+    const origin_index = 'supply';
     return await this.manyIndexsSearch(keyword, config, skip, limit, origin_index, id);
   }