update
This commit is contained in:
+5
-1
@@ -1,6 +1,8 @@
|
||||
package com.fangjia.script.gj.xiamen
|
||||
|
||||
import com.fangjia.script.BaseBatch
|
||||
import com.fangjia.script.BatchOwner
|
||||
import com.fangjia.script.Watcher
|
||||
import com.fangjia.script.gj.OpenApiUtils
|
||||
import com.fangjia.script.util.DateUtil
|
||||
import com.fangjia.script.util.ExcelUtils
|
||||
@@ -8,6 +10,7 @@ import com.fangjia.script.util.ExcelUtils
|
||||
/**
|
||||
* 厦门每月月初自动跑涉农数据
|
||||
*/
|
||||
@BatchOwner(Watcher.GaoJuan)
|
||||
class XiaMenVillageBatch extends BaseBatch{
|
||||
|
||||
|
||||
@@ -20,6 +23,7 @@ class XiaMenVillageBatch extends BaseBatch{
|
||||
def monthStr = DateUtil.formatByPattern(new Date(), "yyyy-MM");
|
||||
def outFileName = "xmbank_"+monthStr+"_result.xlsx"
|
||||
def inFileName = "xmbank_"+monthStr+".xlsx"
|
||||
println "输入文件:"+inFileName+" 输出文件:"+outFileName
|
||||
def exists = checkFileExists(outFileName)
|
||||
if(!exists){
|
||||
def rows = []
|
||||
@@ -43,7 +47,7 @@ class XiaMenVillageBatch extends BaseBatch{
|
||||
}
|
||||
}
|
||||
uploadExcel(rows, outFileName)
|
||||
|
||||
println "新增文件,上传已完成"
|
||||
}else{
|
||||
println "已存在 "+ DateUtil.formatByPattern(new Date(), "yyyy-MM-dd HH:mm:ss")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user