From 24b3f6f6d97358c296c87de120e8f342a6b7d0e0 Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Fri, 19 Aug 2022 14:24:36 +0800 Subject: [PATCH] =?UTF-8?q?ai=E4=B8=8A=E4=BC=A0=E7=8A=B6=E6=80=81=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/api/AppController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 0372a2c..8b28ff4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -357,6 +357,10 @@ public class AppController extends BaseController ObjectMapper mapper = new ObjectMapper(); String URL = RequestParamsUtil.HTTP + ip + RequestParamsUtil.SEPARATOR + port + url; JSONObject jsonObject = new JSONObject(); + TRecord tRecord = new TRecord(); + tRecord.setId(recordId); + tRecord.setStatus("1"); + tRecordService.updateTRecord(tRecord); String result; Date start; Date end; @@ -372,10 +376,6 @@ public class AppController extends BaseController } if (!StringUtils.isEmpty(result)) { - TRecord tRecord = new TRecord(); - tRecord.setId(recordId); - tRecord.setStatus("1"); - tRecordService.updateTRecord(tRecord); JSONObject data = JSONObject.parseObject(result); if(data.getInteger("code") != 200){ TRecord tRecord1 = new TRecord();