@@ -196,6 +196,10 @@ public class AddInspectionService { | |||
inspection.setCreateTime(DateUtils.now()); | |||
inspection.setMobile(user.getMobile()); | |||
inspection.setStatus(InspectionStatusEnum.WAIT_FLIGHT.getCode()); | |||
if (InspectionTypeEnum.AIRPORT.getCode() == addInspectionRequest.getInspectionType()) { | |||
// 机场巡逻,只有直播,将isLive设置为1 | |||
inspection.setIsLive(1); | |||
} | |||
return inspection; | |||
} | |||