Parcourir la source

修改企业字段

zs il y a 1 an
Parent
commit
d8da24600d

+ 0 - 2
src/entity/users/company.entity.ts

@@ -32,8 +32,6 @@ export class Company extends BaseModel {
   register: string;
   @prop({ required: false, index: false, zh: '成立日期' })
   create_time: string;
-  @prop({ required: false, index: true, zh: '更新时间' })
-  update_time: string;
   @prop({ required: false, index: false, zh: '地址' })
   address: string;
   @prop({ required: false, index: false, zh: '简介' })

+ 3 - 8
src/interface/users/company.interface.ts

@@ -42,8 +42,6 @@ export class FVO_company {
   'register': string = undefined;
   @ApiProperty({ description: '成立日期' })
   'create_time': string = undefined;
-  @ApiProperty({ description: '更新时间' })
-  'update_time': string = undefined;
   @ApiProperty({ description: '地址' })
   'address': string = undefined;
   @ApiProperty({ description: '简介' })
@@ -57,7 +55,7 @@ export class FVO_company {
 export class QDTO_company extends SearchBase {
   constructor() {
     const like_prop = [];
-    const props = ['user', 'name', 'tags', 'phone', 'type', 'person', 'update_time', 'is_show', 'status'];
+    const props = ['user', 'name', 'tags', 'phone', 'type', 'person', 'create_time', 'is_show', 'status'];
     const mapping = [];
     super({ like_prop, props, mapping });
   }
@@ -73,8 +71,8 @@ export class QDTO_company extends SearchBase {
   'type': string = undefined;
   @ApiProperty({ description: '员工人数' })
   'person': number = undefined;
-  @ApiProperty({ description: '更新时间' })
-  'update_time': string = undefined;
+  @ApiProperty({ description: '成立日期' })
+  'create_time': string = undefined;
   @ApiProperty({ description: '是否公开' })
   'is_show': string = undefined;
   @ApiProperty({ description: '状态' })
@@ -131,9 +129,6 @@ export class CDTO_company {
   @ApiProperty({ description: '成立日期' })
   @Rule(RuleType['string']().empty(''))
   'create_time': string = undefined;
-  @ApiProperty({ description: '更新时间' })
-  @Rule(RuleType['string']().empty(''))
-  'update_time': string = undefined;
   @ApiProperty({ description: '地址' })
   @Rule(RuleType['string']().empty(''))
   'address': string = undefined;