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