Browse Source

服务领域多选

zs 6 months ago
parent
commit
92269083a0

+ 1 - 1
src/entity/platform/support.entity.ts

@@ -13,7 +13,7 @@ export class Support extends BaseModel {
   tags: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '名称' })
   name: string;
-  @Column({ type: 'character varying', nullable: true, comment: '服务领域' })
+  @Column({ type: 'jsonb', nullable: true, comment: '服务领域', default: [] })
   field: string;
   @Column({ type: 'character varying', nullable: true, comment: '登记时间' })
   time: string;

+ 4 - 4
src/interface/platform/support.interface.ts

@@ -21,7 +21,7 @@ export class FVO_support {
   @ApiProperty({ description: '登记时间' })
   'time': string = undefined;
   @ApiProperty({ description: '服务领域' })
-  'field': string = undefined;
+  'field': Array<any> = undefined;
   @ApiProperty({ description: '所在地区' })
   'area': Array<any> = undefined;
   @ApiProperty({ description: '地址' })
@@ -50,7 +50,7 @@ export class QDTO_support extends SearchBase {
   @ApiProperty({ description: '登记时间' })
   'time': string = undefined;
   @ApiProperty({ description: '服务领域' })
-  'field': string = undefined;
+  'field': Array<any> = undefined;
   @ApiProperty({ description: '联系人' })
   'contacts': string = undefined;
   @ApiProperty({ description: '联系电话' })
@@ -88,8 +88,8 @@ export class CDTO_support {
   @Rule(RuleType['string']().empty(''))
   'time': string = undefined;
   @ApiProperty({ description: '服务领域' })
-  @Rule(RuleType['string']().empty(''))
-  'field': string = undefined;
+  @Rule(RuleType['array']().empty(''))
+  'field': Array<any> = undefined;
   @ApiProperty({ description: '所在地区' })
   @Rule(RuleType['array']().empty(''))
   'area': Array<any> = undefined;

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

@@ -12,7 +12,7 @@ export class SupportService extends BaseServiceV2 {
     const obj = {
       name: this.Opera.Like,
       industry: this.Opera.In,
-      field: this.Opera.In,
+      field: this.Opera.Json,
       area: this.Opera.Json,
       tags: this.Opera.Json,
     };