Browse Source

修改获取预警详情代码

tags/v1.2.0^2
wanjing 1 year ago
parent
commit
041e1120f6
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/details/WarningDetailsService.java

+ 4
- 3
tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/details/WarningDetailsService.java View File

private UserMapper userMapper; private UserMapper userMapper;


public JsonResult details(Integer id) { public JsonResult details(Integer id) {
User user = ShiroUtils.getUserInfo();
Integer tenantId = user.getTenantId();
User user = ShiroUtils.getUserInfo();
Integer tenantId = user.getTenantId();

//校验 //校验
if(null == id){ if(null == id){
throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL); throw new ServiceException(ServiceExceptionEnum.PARAMETER_IS_NULL);
warningRecordVO.setRecordStartTime(x.getCreateTime()); warningRecordVO.setRecordStartTime(x.getCreateTime());
//巡检机场名称 //巡检机场名称
ThMission thMission = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>() ThMission thMission = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>()
.eq(ThMission::getId, x.getMissionId())
.eq(ThMission::getId, x.getEmergencyMissionId())
.eq(ThMission::getMark, 1)); .eq(ThMission::getMark, 1));
if (ObjectUtils.isNotEmpty(thMission)) { if (ObjectUtils.isNotEmpty(thMission)) {
//获取巡检机场 //获取巡检机场

Loading…
Cancel
Save