Commit a86194b5 authored by 黎博's avatar 黎博

暂时停掉对账定时任务

parent 39753929
......@@ -64,7 +64,7 @@ public class ReconciliationTask {
* 微信商户后台与支付中心数据对账
*/
// @Scheduled(cron = "0 */5 * * * ?")
@Scheduled(cron = "0 0 13 ? * *")
// @Scheduled(cron = "0 0 13 ? * *")
public void wxPayDailyReconciliation() {
if (scheduledTaskStart.equals("true")) {
log.info("开始微信支付对账.");
......@@ -248,7 +248,7 @@ public class ReconciliationTask {
* 支付宝商户后台与支付中心数据对账
*/
// @Scheduled(cron = "0 */5 * * * ?")
@Scheduled(cron = "0 0 13 ? * *")
// @Scheduled(cron = "0 0 13 ? * *")
public void aliPayDailyReconciliation() throws AlipayApiException, IOException {
if (scheduledTaskStart.equals("true")) {
log.info("开始支付宝支付对账.");
......@@ -437,20 +437,4 @@ public class ReconciliationTask {
}
}
@Scheduled(cron = "0 20 15 24 2 ?")
public void aliPayDailyReconciliationTest() throws AlipayApiException, IOException {
// String billDate = DateUtils.convertDate(DateUtils.getBeforeDay(new Date(), 1), "yyyy-MM-dd");
// List<AliPayBillData> aliPayBillDataList = aliPayBillService.parseAliPayBillFile(aliPayBillService.downloadBillFile(billDate));
String fileDir = "/home/quant_group/alipay-bill/20889319557053230156_20220223.csv";
File[] files = FileUtil.file(fileDir).listFiles();
for (File file: files) {
log.info("转换前文件名称:{}", file.getName());
FileUtil.convertCharset(file, Charset.forName("gbk"), Charset.forName("utf-8"));
}
File[] files2 = FileUtil.file(fileDir).listFiles();
for (File file: files2) {
log.info("转换后文件名称:{}", file.getName());
}
}
}
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