lrf 7 tháng trước cách đây
mục cha
commit
630a558b2a
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  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);
   }