|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transactional |
|
|
@Transactional |
|
|
public JsonResult executePointFligh(PointFlightRequest request) { |
|
|
public JsonResult executePointFligh(PointFlightRequest request) { |
|
|
log.info("进入调用机场平台,执行定点飞行"); |
|
|
|
|
|
|
|
|
log.info("进入调用机场平台,执行定点飞行, request = {}", request); |
|
|
JsonResult result = this.check(request); |
|
|
JsonResult result = this.check(request); |
|
|
User user = ShiroUtils.getUserInfo(); |
|
|
User user = ShiroUtils.getUserInfo(); |
|
|
Integer tenantId = user.getTenantId(); |
|
|
Integer tenantId = user.getTenantId(); |
|
|
|
|
|
|
|
|
// 创建应急任务 |
|
|
// 创建应急任务 |
|
|
ThMission mission = this.createMission(user, request); |
|
|
ThMission mission = this.createMission(user, request); |
|
|
|
|
|
|
|
|
|
|
|
log.info("进入调用机场平台,执行定点飞行, mission = {}", mission); |
|
|
|
|
|
|
|
|
// 调用机场平台 |
|
|
// 调用机场平台 |
|
|
// 修改原巡检任务状态为已完成 |
|
|
// 修改原巡检任务状态为已完成 |
|
|
if (TaskStatusEnum.COMPLETE.getCode() == mission.getStatus()) { |
|
|
if (TaskStatusEnum.COMPLETE.getCode() == mission.getStatus()) { |