zs 7 months ago
parent
commit
eeb44ccfd2

+ 8 - 1
src/controller/platform/supply.controller.ts

@@ -72,7 +72,14 @@ export class SupplyController implements BaseController {
   async list(@Query() query: object) {
     const qobj = omit(query, ['skip', 'limit']);
     const others = pick(query, ['skip', 'limit']);
-    const { data, total } = await this.service.query(qobj, others, { field: this.service.Opera.In });
+    const { data, total } = await this.service.query(qobj, others, {
+      field: this.service.Opera.In,
+      name: this.service.Opera.Like,
+      source: this.service.Opera.Like,
+      industry: this.service.Opera.In,
+      area: this.service.Opera.Json,
+      tags: this.service.Opera.Json,
+    });
     for (let i of data) {
       i = await this.serviceUtil.fillOnwer(i);
     }

+ 1 - 0
src/service/platform/achievement.service.ts

@@ -12,6 +12,7 @@ export class AchievementService extends BaseServiceV2 {
   getQueryColumnsOpera() {
     const obj = {
       name: this.Opera.Like,
+      source: this.Opera.Like,
       industry: this.Opera.In,
       field: this.Opera.In,
       sell: this.Opera.In,

+ 1 - 0
src/service/platform/demand.service.ts

@@ -11,6 +11,7 @@ export class DemandService extends BaseServiceV2 {
   getQueryColumnsOpera() {
     const obj = {
       name: this.Opera.Like,
+      company: this.Opera.Like,
       industry: this.Opera.In,
       area: this.Opera.Json,
       tags: this.Opera.Json,

+ 1 - 0
src/service/platform/supply.service.ts

@@ -11,6 +11,7 @@ export class SupplyService extends BaseServiceV2 {
   getQueryColumnsOpera() {
     const obj = {
       name: this.Opera.Like,
+      source: this.Opera.Like,
       industry: this.Opera.In,
       area: this.Opera.Json,
       tags: this.Opera.Json,