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();