Переглянути джерело

修改是否使用默认值

zs 9 місяців тому
батько
коміт
7888c15520

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

@@ -37,7 +37,7 @@ export class Achievement extends BaseModel {
   file: Array<any>;
   file: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '成果状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '成果状态', default: '0' })
   achievement_status: string;
   achievement_status: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
+  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
   is_use: string;
   is_use: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   status: string;
   status: string;

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

@@ -29,7 +29,7 @@ export class Demand extends BaseModel {
   brief: string;
   brief: string;
   @Column({ type: 'character varying', nullable: true, comment: '需求状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '需求状态', default: '0' })
   demand_status: string;
   demand_status: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
+  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
   is_use: string;
   is_use: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态' })
   @Column({ type: 'character varying', nullable: true, comment: '状态' })
   status: string;
   status: string;

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

@@ -37,7 +37,7 @@ export class Match extends BaseModel {
   file: Array<any>;
   file: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '赛事状态', default: '0' })
   match_status: string;
   match_status: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
+  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
   is_use: string;
   is_use: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   status: string;
   status: string;

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

@@ -20,7 +20,7 @@ export class News extends BaseModel {
   number: number;
   number: number;
   @Column({ type: 'character varying', nullable: true, comment: '类型 0:政策新闻,1:新闻资讯', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '类型 0:政策新闻,1:新闻资讯', default: '0' })
   type: string;
   type: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否使用', default: '1' })
+  @Column({ type: 'character varying', nullable: true, comment: '是否使用', default: '0' })
   is_use: string;
   is_use: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   status: string;
   status: string;

+ 4 - 4
src/entity/platform/project.entity.ts

@@ -25,10 +25,6 @@ export class Project extends BaseModel {
   area: Array<any>;
   area: Array<any>;
   @Column({ type: 'text', nullable: true, comment: '简介' })
   @Column({ type: 'text', nullable: true, comment: '简介' })
   brief: string;
   brief: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否公开' })
-  is_use: string;
-  @Column({ type: 'character varying', nullable: true, comment: '状态' })
-  status: string;
   @Column({ type: 'character varying', nullable: true, comment: '项目主体' })
   @Column({ type: 'character varying', nullable: true, comment: '项目主体' })
   main: string;
   main: string;
   @Column({ type: 'character varying', nullable: true, comment: '项目进展' })
   @Column({ type: 'character varying', nullable: true, comment: '项目进展' })
@@ -39,4 +35,8 @@ export class Project extends BaseModel {
   source: string;
   source: string;
   @Column({ type: 'character varying', nullable: true, comment: '产业分类' })
   @Column({ type: 'character varying', nullable: true, comment: '产业分类' })
   industry: string;
   industry: string;
+  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
+  is_use: string;
+  @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
+  status: string;
 }
 }

+ 0 - 1
src/entity/platform/sign.entity.ts

@@ -25,7 +25,6 @@ export class Sign extends BaseModel {
   remark: string;
   remark: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '状态', default: '0' })
   status: string;
   status: string;
-
   @Column({ type: 'character varying', nullable: true, comment: '隶属单位' })
   @Column({ type: 'character varying', nullable: true, comment: '隶属单位' })
   unit: string;
   unit: string;
 }
 }

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

@@ -29,7 +29,7 @@ export class Supply extends BaseModel {
   brief: string;
   brief: string;
   @Column({ type: 'character varying', nullable: true, comment: '需求状态', default: '0' })
   @Column({ type: 'character varying', nullable: true, comment: '需求状态', default: '0' })
   demand_status: string;
   demand_status: string;
-  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '1' })
+  @Column({ type: 'character varying', nullable: true, comment: '是否公开', default: '0' })
   is_use: string;
   is_use: string;
   @Column({ type: 'character varying', nullable: true, comment: '状态' })
   @Column({ type: 'character varying', nullable: true, comment: '状态' })
   status: string;
   status: string;