|
@@ -1,6 +1,5 @@
|
|
package com.ozs.web.controller.accountmanagment;
|
|
package com.ozs.web.controller.accountmanagment;
|
|
|
|
|
|
-
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -8,6 +7,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.ozs.common.core.controller.BaseController;
|
|
import com.ozs.common.core.controller.BaseController;
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
import com.ozs.common.core.domain.entity.SysDept;
|
|
import com.ozs.common.core.domain.entity.SysDept;
|
|
|
|
+import com.ozs.common.core.domain.entity.SysUser;
|
|
|
|
+import com.ozs.common.core.domain.model.LoginUser;
|
|
import com.ozs.common.utils.AppendUtils;
|
|
import com.ozs.common.utils.AppendUtils;
|
|
import com.ozs.common.utils.StringUtils;
|
|
import com.ozs.common.utils.StringUtils;
|
|
import com.ozs.common.utils.poi.ExcelUtil;
|
|
import com.ozs.common.utils.poi.ExcelUtil;
|
|
@@ -15,6 +16,7 @@ import com.ozs.service.entity.*;
|
|
import com.ozs.service.entity.vo.*;
|
|
import com.ozs.service.entity.vo.*;
|
|
import com.ozs.service.mapper.MsgAlarmMapper;
|
|
import com.ozs.service.mapper.MsgAlarmMapper;
|
|
import com.ozs.service.service.*;
|
|
import com.ozs.service.service.*;
|
|
|
|
+import com.ozs.system.service.DataScoreUtil;
|
|
import com.ozs.system.service.ISysDictDataService;
|
|
import com.ozs.system.service.ISysDictDataService;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
@@ -79,6 +81,30 @@ public class MsgAlarmController extends BaseController {
|
|
private MsgWebPushService msgWebPushService;
|
|
private MsgWebPushService msgWebPushService;
|
|
@Autowired
|
|
@Autowired
|
|
private ISysDictDataService dictDataService;
|
|
private ISysDictDataService dictDataService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private DataScoreUtil dataScoreUtil;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * web更多消息-总数,已读数
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/messageMoreNum")
|
|
|
|
+ @ApiOperation("更多消息--总数,已读数")
|
|
|
|
+ public AjaxResult messageMoreNum(@RequestBody MsgAlarmVo msgAlarmVo) {
|
|
|
|
+ String userId = getUserId();
|
|
|
|
+ Map<String, Integer> messageMore = msgWebPushService.messageMoreNum(userId, msgAlarmVo);
|
|
|
|
+ return AjaxResult.success(messageMore);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * web更多消息
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/messageMore")
|
|
|
|
+ @ApiOperation("更多消息")
|
|
|
|
+ public AjaxResult messageMore(@RequestBody MsgAlarmVo msgAlarmVo) {
|
|
|
|
+ String userId = getUserId();
|
|
|
|
+ IPage<MsgAlarm> messageMore = msgWebPushService.messageMore(userId, msgAlarmVo);
|
|
|
|
+ return AjaxResult.success(messageMore);
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* web报警未读消息个数+未读消息列表
|
|
* web报警未读消息个数+未读消息列表
|
|
@@ -112,49 +138,13 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiOperation(value = "报警信息分页")
|
|
@ApiOperation(value = "报警信息分页")
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
public AjaxResult selectMsgAlarm(@RequestBody MsgAlarmVo msgAlarmVo) {
|
|
public AjaxResult selectMsgAlarm(@RequestBody MsgAlarmVo msgAlarmVo) {
|
|
- List<BaseCameraManagement> baseCameraManagementList=new ArrayList<>();
|
|
|
|
- LambdaQueryWrapper<BaseCameraManagement> wrapper = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getRailwayCode())) {
|
|
|
|
- wrapper.eq(BaseCameraManagement::getRailwayCode, msgAlarmVo.getRailwayCode());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getBeginMile())) {
|
|
|
|
- wrapper.ge(BaseCameraManagement::getBeginMile, msgAlarmVo.getBeginMile());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getEndMile())) {
|
|
|
|
- wrapper.le(BaseCameraManagement::getEndMile, msgAlarmVo.getEndMile());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getRailwayCode())||!ObjectUtils.isEmpty(msgAlarmVo.getBeginMile())||!ObjectUtils.isEmpty(msgAlarmVo.getEndMile())) {
|
|
|
|
- baseCameraManagementList = baseCameraManagementService.list(wrapper);
|
|
|
|
- }
|
|
|
|
- List<String> userIds = baseCameraManagementService.getUserIds(getUserId());
|
|
|
|
- LambdaQueryWrapper<MsgAlarm> lw = new LambdaQueryWrapper<MsgAlarm>();
|
|
|
|
- if (!ObjectUtils.isEmpty(userIds)) {
|
|
|
|
- lw.in(MsgAlarm::getCreateBy, userIds);
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getLineDir())) {
|
|
|
|
- lw.eq(MsgAlarm::getLineDir, msgAlarmVo.getLineDir());
|
|
|
|
- }
|
|
|
|
- if (baseCameraManagementList.size()>0) {
|
|
|
|
- List<String> collect = baseCameraManagementList.stream().map(BaseCameraManagement::getCameraCode).collect(Collectors.toList());
|
|
|
|
- lw.in(MsgAlarm::getCameraCode, collect);
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getAlarmType())) {
|
|
|
|
- lw.eq(MsgAlarm::getAlarmType, msgAlarmVo.getAlarmType());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getAlarmMile())&& msgAlarmVo.getAlarmMile() != 0) {
|
|
|
|
- lw.eq(MsgAlarm::getAlarmMile, msgAlarmVo.getAlarmMile());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getBeginAlarmTime())) {
|
|
|
|
- lw.ge(MsgAlarm::getAlarmTime, msgAlarmVo.getBeginAlarmTime());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getEndAlarmTime())) {
|
|
|
|
- lw.le(MsgAlarm::getAlarmTime, msgAlarmVo.getEndAlarmTime());
|
|
|
|
- }
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarmVo.getIsLock())) {
|
|
|
|
- lw.eq(MsgAlarm::getIsLock, msgAlarmVo.getIsLock());
|
|
|
|
- }
|
|
|
|
- IPage<MsgAlarm> page = msgAlarmService.page(new Page<>(msgAlarmVo.getPageNum(), msgAlarmVo.getPageSize()), lw);
|
|
|
|
- if(!ObjectUtils.isEmpty(page) && !ObjectUtils.isEmpty(page.getRecords())){
|
|
|
|
|
|
+ msgAlarmVo = (MsgAlarmVo) dataScoreUtil.setDataScore(getUserId(), msgAlarmVo);
|
|
|
|
+ IPage<MsgAlarm> page = msgAlarmService.queryPage(msgAlarmVo);
|
|
|
|
+ page.setTotal(page.getTotal());
|
|
|
|
+ page.setCurrent(page.getCurrent());
|
|
|
|
+ page.setPages(page.getPages());
|
|
|
|
+
|
|
|
|
+ if (!ObjectUtils.isEmpty(page) && page.getRecords().size() > 0) {
|
|
List<MsgAlarm> dto1 = page.getRecords().stream().map(o -> {
|
|
List<MsgAlarm> dto1 = page.getRecords().stream().map(o -> {
|
|
String[] split = o.getImageUrl().split(";");
|
|
String[] split = o.getImageUrl().split(";");
|
|
ArrayList<String> objects = new ArrayList<>(Arrays.asList(split));
|
|
ArrayList<String> objects = new ArrayList<>(Arrays.asList(split));
|
|
@@ -169,7 +159,6 @@ public class MsgAlarmController extends BaseController {
|
|
queryWrapper.eq(BaseRailwayManagement::getRailwayCode, cameraManagement.getRailwayCode());
|
|
queryWrapper.eq(BaseRailwayManagement::getRailwayCode, cameraManagement.getRailwayCode());
|
|
}
|
|
}
|
|
BaseRailwayManagement baseRailwayManagement = baseRailwayManagementService.getOne(queryWrapper);
|
|
BaseRailwayManagement baseRailwayManagement = baseRailwayManagementService.getOne(queryWrapper);
|
|
-
|
|
|
|
o.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
o.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
String mils = AppendUtils.stringAppend(cameraManagement.getInstallMile());
|
|
String mils = AppendUtils.stringAppend(cameraManagement.getInstallMile());
|
|
o.setAlarmMiles(mils);
|
|
o.setAlarmMiles(mils);
|
|
@@ -177,7 +166,7 @@ public class MsgAlarmController extends BaseController {
|
|
o.setEndMile(end);
|
|
o.setEndMile(end);
|
|
String begin = AppendUtils.stringAppend(cameraManagement.getBeginMile());
|
|
String begin = AppendUtils.stringAppend(cameraManagement.getBeginMile());
|
|
o.setBeginMile(begin);
|
|
o.setBeginMile(begin);
|
|
- o.setAlarmCount((int) msgAlarmFrequencyService.count()+1);
|
|
|
|
|
|
+ o.setAlarmCount((int) msgAlarmFrequencyService.count() + 1);
|
|
return o;
|
|
return o;
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
page.setRecords(dto1);
|
|
page.setRecords(dto1);
|
|
@@ -189,31 +178,34 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiOperation("根据报警信息ID获取详细信息")
|
|
@ApiOperation("根据报警信息ID获取详细信息")
|
|
public AjaxResult getInfo(@PathVariable Long id) {
|
|
public AjaxResult getInfo(@PathVariable Long id) {
|
|
MsgAlarm msgAlarm = msgAlarmService.getById(id);
|
|
MsgAlarm msgAlarm = msgAlarmService.getById(id);
|
|
- LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
|
- if (!ObjectUtils.isEmpty(msgAlarm.getCameraCode())) {
|
|
|
|
- lw.eq(BaseCameraManagement::getCameraCode, msgAlarm.getCameraCode());
|
|
|
|
|
|
+ if (!ObjectUtils.isEmpty(msgAlarm)) {
|
|
|
|
+ LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
|
+ if (!ObjectUtils.isEmpty(msgAlarm.getCameraCode())) {
|
|
|
|
+ lw.eq(BaseCameraManagement::getCameraCode, msgAlarm.getCameraCode());
|
|
|
|
+ }
|
|
|
|
+ BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(lw);
|
|
|
|
+ LambdaQueryWrapper<BaseRailwayManagement> wrapper = new LambdaQueryWrapper<BaseRailwayManagement>();
|
|
|
|
+ if (!ObjectUtils.isEmpty(baseCameraManagement.getRailwayCode())) {
|
|
|
|
+ wrapper.eq(BaseRailwayManagement::getRailwayCode, baseCameraManagement.getRailwayCode());
|
|
|
|
+ }
|
|
|
|
+ BaseRailwayManagement baseRailwayManagement = baseRailwayManagementService.getOne(wrapper);
|
|
|
|
+ MsgAlarmResp msgAlarmResp = new MsgAlarmResp();
|
|
|
|
+ BeanUtils.copyProperties(msgAlarm, msgAlarmResp);
|
|
|
|
+ msgAlarmResp.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
|
|
+ msgAlarmResp.setDeptId(baseCameraManagement.getDeptId());
|
|
|
|
+ String begin = AppendUtils.stringAppend(baseCameraManagement.getBeginMile());
|
|
|
|
+ String end = AppendUtils.stringAppend(baseCameraManagement.getEndMile());
|
|
|
|
+ String endMile = begin + "-" + end;
|
|
|
|
+ msgAlarmResp.setBeginMile(endMile);
|
|
|
|
+ String mile = AppendUtils.stringAppend(baseCameraManagement.getInstallMile());
|
|
|
|
+ msgAlarmResp.setAlarmMile(mile);
|
|
|
|
+ msgAlarmResp.setInstallLongitude(baseCameraManagement.getInstallLongitude() + "," + baseCameraManagement.getInstallLatitude());
|
|
|
|
+ return AjaxResult.success(msgAlarmResp);
|
|
|
|
+ }else {
|
|
|
|
+ return success("无报警信息数据");
|
|
}
|
|
}
|
|
- BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(lw);
|
|
|
|
- LambdaQueryWrapper<BaseRailwayManagement> wrapper = new LambdaQueryWrapper<BaseRailwayManagement>();
|
|
|
|
- if (!ObjectUtils.isEmpty(baseCameraManagement.getRailwayCode())) {
|
|
|
|
- wrapper.eq(BaseRailwayManagement::getRailwayCode, baseCameraManagement.getRailwayCode());
|
|
|
|
- }
|
|
|
|
- BaseRailwayManagement baseRailwayManagement = baseRailwayManagementService.getOne(wrapper);
|
|
|
|
- MsgAlarmResp msgAlarmResp = new MsgAlarmResp();
|
|
|
|
- BeanUtils.copyProperties(msgAlarm, msgAlarmResp);
|
|
|
|
- msgAlarmResp.setRailwayName(baseRailwayManagement.getRailwayName());
|
|
|
|
- msgAlarmResp.setDeptId(baseCameraManagement.getDeptId());
|
|
|
|
- String begin = AppendUtils.stringAppend(baseCameraManagement.getBeginMile());
|
|
|
|
- String end = AppendUtils.stringAppend(baseCameraManagement.getEndMile());
|
|
|
|
- String endMile=begin+"-"+end;
|
|
|
|
- msgAlarmResp.setBeginMile(endMile);
|
|
|
|
- String mile = AppendUtils.stringAppend(baseCameraManagement.getInstallMile());
|
|
|
|
- msgAlarmResp.setAlarmMile(mile);
|
|
|
|
- msgAlarmResp.setInstallLongitude(baseCameraManagement.getInstallLongitude()+","+baseCameraManagement.getInstallLatitude());
|
|
|
|
- return AjaxResult.success(msgAlarmResp);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
@PutMapping(value = "/{id}")
|
|
@PutMapping(value = "/{id}")
|
|
@ApiOperation("根据报警信息ID解除报警")
|
|
@ApiOperation("根据报警信息ID解除报警")
|
|
public AjaxResult updateIsLock(@PathVariable Long id) {
|
|
public AjaxResult updateIsLock(@PathVariable Long id) {
|
|
@@ -235,11 +227,11 @@ public class MsgAlarmController extends BaseController {
|
|
return AjaxResult.success(list);
|
|
return AjaxResult.success(list);
|
|
}
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/videoHistoricalAlarm/{alarmId}")
|
|
|
|
|
|
+ @GetMapping(value = "/videoHistoricalAlarm/{cameraCode}")
|
|
@ApiOperation("视频服务历史报警信息")
|
|
@ApiOperation("视频服务历史报警信息")
|
|
- public AjaxResult videoHistoricalAlarm(@PathVariable String alarmId) {
|
|
|
|
|
|
+ public AjaxResult videoHistoricalAlarm(@PathVariable String cameraCode) {
|
|
QueryWrapper<MsgAlarm> wrapper = new QueryWrapper<>();
|
|
QueryWrapper<MsgAlarm> wrapper = new QueryWrapper<>();
|
|
- wrapper.eq("alarm_id", alarmId);
|
|
|
|
|
|
+ wrapper.eq("camera_code", cameraCode);
|
|
wrapper.orderByDesc("alarm_time");
|
|
wrapper.orderByDesc("alarm_time");
|
|
List<MsgAlarm> list = msgAlarmService.list(wrapper);
|
|
List<MsgAlarm> list = msgAlarmService.list(wrapper);
|
|
return AjaxResult.success(list);
|
|
return AjaxResult.success(list);
|
|
@@ -262,8 +254,9 @@ public class MsgAlarmController extends BaseController {
|
|
public AjaxResult dataStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public AjaxResult dataStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
Integer pageNum = alarmStatisticResVo.getPageNum().intValue();
|
|
Integer pageNum = alarmStatisticResVo.getPageNum().intValue();
|
|
Integer pageSize = alarmStatisticResVo.getPageSize().intValue();
|
|
Integer pageSize = alarmStatisticResVo.getPageSize().intValue();
|
|
|
|
+ SysUser user = getLoginUser().getUser();
|
|
String userId = getUserId();
|
|
String userId = getUserId();
|
|
- if ("1".equals(userId)) {
|
|
|
|
|
|
+ if (user.isAdmin(user.getId())) {
|
|
userId = "";
|
|
userId = "";
|
|
}
|
|
}
|
|
IPage<AlarmStatisticVo> page = msgAlarmService.list(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getStartMonth(),
|
|
IPage<AlarmStatisticVo> page = msgAlarmService.list(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getStartMonth(),
|
|
@@ -286,11 +279,13 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public AjaxResult alarmMonthStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public AjaxResult alarmMonthStatistic(@RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
|
|
+ SysUser user = getLoginUser().getUser();
|
|
String userId = getUserId();
|
|
String userId = getUserId();
|
|
- if ("1".equals(userId)) {
|
|
|
|
|
|
+ ;
|
|
|
|
+ if (user.isAdmin(user.getId())) {
|
|
userId = "";
|
|
userId = "";
|
|
}
|
|
}
|
|
- List<AlarmStatisticVo> list = msgAlarmService.getCount(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getStartMonth(),
|
|
|
|
|
|
+ List<AlarmStatisticMonthDto> list = msgAlarmService.getCount(alarmStatisticResVo.getRailwayCode(), alarmStatisticResVo.getStartMonth(),
|
|
alarmStatisticResVo.getEndMonth(), alarmStatisticResVo.getAlarmType(), userId);
|
|
alarmStatisticResVo.getEndMonth(), alarmStatisticResVo.getAlarmType(), userId);
|
|
return AjaxResult.success(list);
|
|
return AjaxResult.success(list);
|
|
}
|
|
}
|
|
@@ -311,12 +306,23 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public void exportDataStatistic(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public void exportDataStatistic(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
|
|
+ SysUser user = getLoginUser().getUser();
|
|
String userId = getUserId();
|
|
String userId = getUserId();
|
|
- if ("1".equals(userId)) {
|
|
|
|
|
|
+ if (user.isAdmin(user.getId())) {
|
|
userId = "";
|
|
userId = "";
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
List<AlarmStatisticDto> list = msgAlarmService.exportExcel(alarmStatisticResVo, userId);
|
|
List<AlarmStatisticDto> list = msgAlarmService.exportExcel(alarmStatisticResVo, userId);
|
|
|
|
+ list.forEach(l -> {
|
|
|
|
+ String alarmType = l.getAlarmType();
|
|
|
|
+ String alarmTypeValue = dictDataService.selectDictLabel("sys_alarm_type", alarmType);
|
|
|
|
+ l.setAlarmTypeValue(alarmTypeValue);
|
|
|
|
+
|
|
|
|
+ String lineDir = l.getLineDir();
|
|
|
|
+ String lineDirValue = dictDataService.selectDictLabel("sys_line_dir", lineDir);
|
|
|
|
+ l.setLineDirValue(lineDirValue);
|
|
|
|
+
|
|
|
|
+ });
|
|
ExcelUtil<AlarmStatisticDto> util = new ExcelUtil<>(AlarmStatisticDto.class);
|
|
ExcelUtil<AlarmStatisticDto> util = new ExcelUtil<>(AlarmStatisticDto.class);
|
|
util.exportExcel(response, list, "报警数据详情");
|
|
util.exportExcel(response, list, "报警数据详情");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -340,8 +346,9 @@ public class MsgAlarmController extends BaseController {
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
@ApiImplicitParam(paramType = "query", name = "alarmType", value = "灾害类型"),
|
|
})
|
|
})
|
|
public void exportDataStatisticMonth(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
public void exportDataStatisticMonth(HttpServletResponse response, @RequestBody AlarmStatisticResVo alarmStatisticResVo) {
|
|
|
|
+ SysUser user = getLoginUser().getUser();
|
|
String userId = getUserId();
|
|
String userId = getUserId();
|
|
- if ("1".equals(userId)) {
|
|
|
|
|
|
+ if (user.isAdmin(user.getId())) {
|
|
userId = "";
|
|
userId = "";
|
|
}
|
|
}
|
|
try {
|
|
try {
|