Jelajahi Sumber

修改导出

zs 1 tahun lalu
induk
melakukan
254cd292fd
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      src/service/patent.service.ts

+ 1 - 3
src/service/patent.service.ts

@@ -40,8 +40,6 @@ export class PatentService extends BaseService<modelType> {
   root_path;
   @Config('export.patentInfo_dir')
   patentInfo_dir;
-  @Config('export.file_type')
-  file_type;
   @Config('export.export_dir')
   export_dir;
 
@@ -242,7 +240,7 @@ export class PatentService extends BaseService<modelType> {
     const typeList: any = await this.adminAxios.get(
       'dictData?type=patent_type'
     );
-    const path = `${this.root_path}${sep}${this.file_type}${sep}${
+    const path = `${this.root_path}${sep}${this.export_dir}${sep}${
       this.patentInfo_dir
     }${new Date().getTime()}`;
     if (!path) {