|
|
@@ -46,9 +46,8 @@ public class QueryWarningByIdService { |
|
|
|
|
|
|
|
public JsonResult getOneById(Integer id) { |
|
|
|
// log.info("进入根据查询Id查询预警信息业务"); |
|
|
|
// User user = ShiroUtils.getUserInfo(); |
|
|
|
// Integer tenantId = user.getTenantId(); |
|
|
|
Integer tenantId = 2; |
|
|
|
User user = ShiroUtils.getUserInfo(); |
|
|
|
Integer tenantId = user.getTenantId(); |
|
|
|
JsonResult result = this.check(tenantId, id); |
|
|
|
if (0 != result.getCode()) { |
|
|
|
log.info("根据Id查询预警信息业务:校验失败:{}", result.getMsg()); |
|
|
@@ -90,8 +89,7 @@ public class QueryWarningByIdService { |
|
|
|
*/ |
|
|
|
private WarningVo buildWarningVo(Warning warning) { |
|
|
|
WarningVo warningVo = WarningConverMapper.INSTANCE.fromWarningToWarningVo(warning); |
|
|
|
// ThMission mission = missionMapper.selectById(warningVo.getMissionId()); |
|
|
|
ThMission mission = missionMapper.selectById(168); |
|
|
|
ThMission mission = missionMapper.selectById(warningVo.getMissionId()); |
|
|
|
if (ObjectUtil.isNotNull(mission)) { |
|
|
|
warningVo.setAirportId(mission.getAirportId()); |
|
|
|
warningVo.setAirportName(mission.getAirportName()); |