|
@@ -20,7 +20,8 @@ class SchoolService extends CrudService {
|
|
|
assert(termid, 'termid不能为空');
|
|
|
assert(schid, 'schid不能为空');
|
|
|
// 取得excle中数据
|
|
|
- const studatas = await this.getImportXLSXData(filepath, termid, schid);
|
|
|
+ const _filepath = this.ctx.app.config.baseUrl + filepath;
|
|
|
+ const studatas = await this.getImportXLSXData(_filepath, termid, schid);
|
|
|
// 将得到的数据校验
|
|
|
const datacheck = await this.datacheck(studatas);
|
|
|
if (datacheck.errorcode === '1') {
|