Selaa lähdekoodia

修改 标签查询

zs 8 kuukautta sitten
vanhempi
commit
1a987dc105

+ 1 - 1
src/entity/users/company.entity.ts

@@ -8,7 +8,7 @@ export class Company extends BaseModel {
   user: number;
   @Column({ type: 'character varying', nullable: true, comment: '所属产业' })
   industry: string;
-  @Column({ type: 'jsonb', nullable: true, comment: '标签' })
+  @Column({ type: 'jsonb', nullable: true, comment: '标签', default: [] })
   tags: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '企业名称' })
   name: string;

+ 1 - 1
src/entity/users/expert.entity.ts

@@ -7,7 +7,7 @@ import dayjs = require('dayjs');
 export class Expert extends BaseModel {
   @Column({ type: 'integer', nullable: true, comment: '平台用户id' })
   user: number;
-  @Column({ type: 'jsonb', nullable: true, comment: '标签' })
+  @Column({ type: 'jsonb', nullable: true, comment: '标签', default: [] })
   tags: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '专家姓名' })
   name: string;

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

@@ -17,6 +17,7 @@ export class AchievementService extends BaseServiceV2 {
       sell: this.Opera.In,
       mature: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }

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

@@ -14,6 +14,7 @@ export class DemandService extends BaseServiceV2 {
       industry: this.Opera.In,
       field: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }

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

@@ -13,6 +13,7 @@ export class FootplateService extends BaseServiceV2 {
       name: this.Opera.Like,
       industry: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }

+ 6 - 0
src/service/platform/match.service.ts

@@ -7,4 +7,10 @@ import { BaseServiceV2 } from '../../frame/BaseServiceV2';
 export class MatchService extends BaseServiceV2 {
   @InjectEntityModel(Match)
   model: Repository<Match>;
+  getQueryColumnsOpera() {
+    const obj = {
+      tags: this.Opera.Json,
+    };
+    return obj;
+  }
 }

+ 7 - 0
src/service/platform/news.service.ts

@@ -7,6 +7,13 @@ import { BaseServiceV2 } from '../../frame/BaseServiceV2';
 export class NewsService extends BaseServiceV2 {
   @InjectEntityModel(News)
   model: Repository<News>;
+
+  getQueryColumnsOpera() {
+    const obj = {
+      tags: this.Opera.Json,
+    };
+    return obj;
+  }
   // 加浏览量
   async fetchBrowse(data) {
     const { number, id } = data;

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

@@ -15,6 +15,7 @@ export class ProjectService extends BaseServiceV2 {
       field: this.Opera.In,
       maturity: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }

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

@@ -14,6 +14,7 @@ export class SupplyService extends BaseServiceV2 {
       industry: this.Opera.In,
       field: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }

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

@@ -14,6 +14,7 @@ export class SupportService extends BaseServiceV2 {
       industry: this.Opera.In,
       field: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }

+ 1 - 0
src/service/users/company.service.ts

@@ -13,6 +13,7 @@ export class CompanyService extends BaseServiceV2 {
       name: this.Opera.Like,
       industry: this.Opera.In,
       pattern: this.Opera.In,
+      tags: this.Opera.Json,
       area: this.Opera.Json,
     };
     return obj;

+ 1 - 0
src/service/users/expert.service.ts

@@ -14,6 +14,7 @@ export class ExpertService extends BaseServiceV2 {
       industry: this.Opera.In,
       field: this.Opera.In,
       area: this.Opera.Json,
+      tags: this.Opera.Json,
     };
     return obj;
   }