|
@@ -819,11 +819,11 @@ module.exports = app => {
|
|
|
* @param excelData
|
|
|
* @returns {Promise<void>}
|
|
|
*/
|
|
|
- async importExcel(excelData) {
|
|
|
+ async importExcel(templateId, excelData) {
|
|
|
//console.time('analysis');
|
|
|
const AnalysisExcel = require('../lib/analysis_excel');
|
|
|
const analysisExcel = new AnalysisExcel(this.ctx);
|
|
|
- const tempData = await this.ctx.service.tenderNodeTemplate.getData(true);
|
|
|
+ const tempData = await this.ctx.service.tenderNodeTemplate.getData(templateId, true);
|
|
|
const cacheTree = analysisExcel.analysisData(excelData, tempData);
|
|
|
const cacheKey = keyPre + this.ctx.tender.id;
|
|
|
const orgMaxId = parseInt(await this.cache.get(cacheKey));
|