Commit 3530a5ca by 蒋勇

d

parent 4d8ace1e
......@@ -2,6 +2,7 @@ const TaskBase=require("../../task.base");
const settings=require("../../../../config/settings");
var excel = require('exceljs');
const system = require("../../../system");
const fs = require('fs');
class ParseRptTask extends TaskBase{
constructor(){
super(TaskBase.getServiceName(ParseRptTask));
......@@ -71,6 +72,13 @@ async readxls(path) {
rptcode:rptCode,
hisdata:rows
});
//
fs.unlink(localpath,(err)=>{
(err) => {
if (err) throw err;
console.log('文件已删除');
}
});
this.parseXls();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment