@@ -62,6 +62,11 @@ class ExcelimportService extends Service {
body: exceldata,
});
console.log(studRes);
+ // 导入成功时更新状态
+ if(studRes != null){
+ const updatedata = {id: id, status: '1' };
+ await this.ctx.service.dataimp.update(updatedata);
+ }
}