黑名单应该清空再建
This commit is contained in:
parent
40201906ed
commit
34a726baa0
@ -36,11 +36,13 @@ public class XhpcStationInternetBlacklistController extends BaseController {
|
|||||||
// @PreAuthorize(hasPermi = "station:internet:add")
|
// @PreAuthorize(hasPermi = "station:internet:add")
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
public AjaxResult add(@Valid @RequestBody List<XhpcStationInternetBlacklist> list) {
|
public AjaxResult add(@Valid @RequestBody List<XhpcStationInternetBlacklist> list) {
|
||||||
if (null != list && list.size() > 0) {
|
|
||||||
String internetUserId = list.get(0).getInternetUserId();
|
String internetUserId = list.get(0).getInternetUserId();
|
||||||
iXhpcStationInternetBlacklistService.deleteByOperatorIdEvcs(internetUserId);
|
iXhpcStationInternetBlacklistService.deleteByOperatorIdEvcs(internetUserId);
|
||||||
|
if (null != list && list.size() > 0) {
|
||||||
for (XhpcStationInternetBlacklist xhpcStationInternetBlacklist : list) {
|
for (XhpcStationInternetBlacklist xhpcStationInternetBlacklist : list) {
|
||||||
Map<String, Object> info = xhpcInternetUserService.info(Long.valueOf(xhpcStationInternetBlacklist.getInternetUserId()));
|
Map<String, Object> info =
|
||||||
|
xhpcInternetUserService.info(Long.valueOf(xhpcStationInternetBlacklist.getInternetUserId()));
|
||||||
if (info != null || info.get("operatorIdEvcs") != null) {
|
if (info != null || info.get("operatorIdEvcs") != null) {
|
||||||
xhpcStationInternetBlacklist.setOperatorIdEvcs(info.get("operatorIdEvcs").toString());
|
xhpcStationInternetBlacklist.setOperatorIdEvcs(info.get("operatorIdEvcs").toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user