From c75aed3a0293a8948c67daa6ecb9c0a67b83f5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=8D=9A?= Date: Thu, 31 Oct 2024 18:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E6=85=A7=E6=A0=A1=E5=9B=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ten/controller/TenRelationController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shapelight-admin/src/main/java/net/shapelight/modules/ten/controller/TenRelationController.java b/shapelight-admin/src/main/java/net/shapelight/modules/ten/controller/TenRelationController.java index dec6d76..7eebae0 100644 --- a/shapelight-admin/src/main/java/net/shapelight/modules/ten/controller/TenRelationController.java +++ b/shapelight-admin/src/main/java/net/shapelight/modules/ten/controller/TenRelationController.java @@ -57,6 +57,7 @@ public class TenRelationController extends AbstractController { @PostMapping("/status") public R upStatus(@RequestBody List> params) { + List errMsg = new ArrayList<>(); params.forEach(item -> { TenRelation tenRelation = relationService.getById(item.get("id").toString()); tenRelation.setStatus(Integer.parseInt(item.get("status").toString())); @@ -78,7 +79,11 @@ public class TenRelationController extends AbstractController { dataInfo.add(info); opParams.put("dataInfo",dataInfo); JSONObject jsonObject = opFeignClient.submitData(opParams); - relationService.updateById(tenRelation); + if(jsonObject.getString("shrgStatus").equals("S")) { + if(jsonObject.getJSONArray("errInfo").isEmpty()) { + relationService.updateById(tenRelation); + } + } }); return R.ok();