Commit 3530a5ca by 蒋勇

d

parent 4d8ace1e
...@@ -2,6 +2,7 @@ const TaskBase=require("../../task.base"); ...@@ -2,6 +2,7 @@ const TaskBase=require("../../task.base");
const settings=require("../../../../config/settings"); const settings=require("../../../../config/settings");
var excel = require('exceljs'); var excel = require('exceljs');
const system = require("../../../system"); const system = require("../../../system");
const fs = require('fs');
class ParseRptTask extends TaskBase{ class ParseRptTask extends TaskBase{
constructor(){ constructor(){
super(TaskBase.getServiceName(ParseRptTask)); super(TaskBase.getServiceName(ParseRptTask));
...@@ -71,6 +72,13 @@ async readxls(path) { ...@@ -71,6 +72,13 @@ async readxls(path) {
rptcode:rptCode, rptcode:rptCode,
hisdata:rows hisdata:rows
}); });
//
fs.unlink(localpath,(err)=>{
(err) => {
if (err) throw err;
console.log('文件已删除');
}
});
this.parseXls(); 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