|
@@ -19,21 +19,21 @@ class PatentinfoService extends CrudService {
|
|
|
this.personalModel = this.ctx.model.Personal;
|
|
|
this.organizationModel = this.ctx.model.Organization;
|
|
|
|
|
|
- // this.root_path = _.get(this.ctx.app.config.export, 'root_path');
|
|
|
- // if (process.env.NODE_ENV === 'development') {
|
|
|
- // this.root_path = 'S:\\workspace\\exportFile\\';
|
|
|
- // }
|
|
|
- // this.file_type = '';
|
|
|
- // if (!fs.existsSync(`${this.root_path}${this.file_type}`)) {
|
|
|
- // // 如果不存在文件夹,就创建
|
|
|
- // fs.mkdirSync(`${this.root_path}${this.file_type}`);
|
|
|
- // }
|
|
|
- // this.excel_path = `${sep}excel${sep}`;
|
|
|
- // this.domain = 'http://127.0.0.1';
|
|
|
- // if (process.env.NODE_ENV === 'development') {
|
|
|
- // this.domain = 'http://127.0.0.1:9999';
|
|
|
- // }
|
|
|
- // this.export_limit = 50;
|
|
|
+ this.root_path = _.get(this.ctx.app.config.export, 'root_path');
|
|
|
+ if (process.env.NODE_ENV === 'development') {
|
|
|
+ this.root_path = 'S:\\workspace\\exportFile\\';
|
|
|
+ }
|
|
|
+ this.file_type = '';
|
|
|
+ if (!fs.existsSync(`${this.root_path}${this.file_type}`)) {
|
|
|
+ // 如果不存在文件夹,就创建
|
|
|
+ fs.mkdirSync(`${this.root_path}${this.file_type}`);
|
|
|
+ }
|
|
|
+ this.excel_path = `${sep}excel${sep}`;
|
|
|
+ this.domain = 'http://127.0.0.1';
|
|
|
+ if (process.env.NODE_ENV === 'development') {
|
|
|
+ this.domain = 'http://127.0.0.1:9999';
|
|
|
+ }
|
|
|
+ this.export_limit = 50;
|
|
|
}
|
|
|
|
|
|
async query(query, { skip = 0, limit = 0 }) {
|