From d210be88a9bccdc1c98d466c5dacbf14d7528711 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 09 十二月 2022 14:52:45 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/service/erp/task/ErpScheduler.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/common/service/erp/task/ErpScheduler.java b/src/main/java/com/zy/common/service/erp/task/ErpScheduler.java index 1b531da..1ad54b9 100644 --- a/src/main/java/com/zy/common/service/erp/task/ErpScheduler.java +++ b/src/main/java/com/zy/common/service/erp/task/ErpScheduler.java @@ -170,8 +170,10 @@ // erp 鍚屾 int state = 1; - if (!erpService.updateStateForVoucher(voucher.getVoucherID(), 1)) { + if (!erpService.updateStateForVoucher(voucher.getVoucherID(), state)) { throw new CoolException(voucher.getVoucherID() + "璁㈠崟淇敼State涓�"+state+"澶辫触"); + } else { + erpService.updateTimeForVoucherDetail(voucher.getVoucherID()); } } else { -- Gitblit v1.9.1