|
@@ -24,7 +24,9 @@ export class InitThreeService {
|
|
|
@InjectEntityModel(Sign)
|
|
|
signModel: Repository<Sign>;
|
|
|
|
|
|
- async initData() {}
|
|
|
+ async dataToUse() {
|
|
|
+ await this.companyModel.update({}, { status: '1' });
|
|
|
+ }
|
|
|
|
|
|
|
|
|
* 获取excel表头对应的字段
|
|
@@ -201,7 +203,7 @@ export class InitThreeService {
|
|
|
if (num <= 0) await this.signModel.insert(obj);
|
|
|
}
|
|
|
}
|
|
|
- await this.addTags(this.tags)
|
|
|
+ await this.addTags(this.tags);
|
|
|
}
|
|
|
|
|
|
async addTags(tags: Array<string>) {
|