Sfoglia il codice sorgente

修改获取预警详情代码

tags/v1.2.0^2
wanjing 1 anno fa
parent
commit
041e1120f6
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  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 Vedi File

@@ -57,8 +57,9 @@ public class WarningDetailsService {
private UserMapper userMapper;

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

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

Loading…
Annulla
Salva