Browse Source

Merge branch 'main' of http://git.cc-lotus.info/Information/cxyy-service

lrf 10 tháng trước cách đây
mục cha
commit
aed902d8dc

+ 2 - 2
src/config/config.local.ts

@@ -53,7 +53,7 @@ export default {
         entities: ['./entity'],
         type: 'postgres',
         synchronize: false, // 如果第一次使用,不存在表,有同步的需求可以写 true,注意会丢数据
-        logging: true,
+        logging: false,
       },
       logs: {
         database: logsDB,
@@ -64,7 +64,7 @@ export default {
         entities: ['./entityLogs'],
         type: 'postgres',
         synchronize: false, // 如果第一次使用,不存在表,有同步的需求可以写 true,注意会丢数据
-        logging: true,
+        logging: false,
       },
     },
   },

+ 1 - 1
src/service/initData/initOne.service.ts

@@ -28,8 +28,8 @@ export class InitOneService {
     // await this.importExpertFromExcel();
   }
   async dataToUse() {
-    await this.achievementModel.update({}, { is_use: '0' });
     await this.expertModel.update({}, { status: '1' });
+    await this.achievementModel.update({}, { is_use: '0', status: '1' });
   }
   async addTags() {
     const list = [{ title: '20240611' }, { title: '成果' }, { title: '专家' }, { title: '需求' }];

+ 3 - 3
src/service/initData/initTwo.service.ts

@@ -39,9 +39,9 @@ export class InitTwoService {
   }
 
   async dataToUse() {
-    // await this.demandModel.update({}, { is_use: '0' });
-    await this.projectModel.update({}, { is_use: '0' });
-    await this.supplyModel.update({}, { is_use: '0' });
+    await this.demandModel.update({}, { is_use: '0', status: '1' });
+    await this.projectModel.update({}, { is_use: '0', status: '1' });
+    await this.supplyModel.update({}, { is_use: '0', status: '1' });
   }
 
   async addTags() {