From 34a726baa080bac8d1a1f6185b9c8f7059977775 Mon Sep 17 00:00:00 2001 From: ZZ Date: Mon, 13 Dec 2021 10:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=91=E5=90=8D=E5=8D=95=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E5=86=8D=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../XhpcStationInternetBlacklistController.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/controller/XhpcStationInternetBlacklistController.java b/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/controller/XhpcStationInternetBlacklistController.java index d4fca7f6..ec6dfc33 100644 --- a/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/controller/XhpcStationInternetBlacklistController.java +++ b/xhpc-modules/xhpc-user/src/main/java/com/xhpc/user/controller/XhpcStationInternetBlacklistController.java @@ -36,12 +36,14 @@ public class XhpcStationInternetBlacklistController extends BaseController { // @PreAuthorize(hasPermi = "station:internet:add") @PostMapping("/add") public AjaxResult add(@Valid @RequestBody List list) { + + String internetUserId = list.get(0).getInternetUserId(); + iXhpcStationInternetBlacklistService.deleteByOperatorIdEvcs(internetUserId); if (null != list && list.size() > 0) { - String internetUserId = list.get(0).getInternetUserId(); - iXhpcStationInternetBlacklistService.deleteByOperatorIdEvcs(internetUserId); for (XhpcStationInternetBlacklist xhpcStationInternetBlacklist : list) { - Map info = xhpcInternetUserService.info(Long.valueOf(xhpcStationInternetBlacklist.getInternetUserId())); - if(info !=null || info.get("operatorIdEvcs") !=null){ + Map info = + xhpcInternetUserService.info(Long.valueOf(xhpcStationInternetBlacklist.getInternetUserId())); + if (info != null || info.get("operatorIdEvcs") != null) { xhpcStationInternetBlacklist.setOperatorIdEvcs(info.get("operatorIdEvcs").toString()); } iXhpcStationInternetBlacklistService.insert(xhpcStationInternetBlacklist);