|
|
@@ -1,5 +1,7 @@ |
|
|
|
package com.tuoheng.admin.service.inspection.query; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.tuoheng.admin.entity.Inspection; |
|
|
|
import com.tuoheng.admin.mapper.InspectionFileMapper; |
|
|
|
import com.tuoheng.admin.mapper.InspectionMapper; |
|
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
@@ -7,6 +9,8 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author ChengWang |
|
|
|
* @Date 2022/11/29 |
|
|
@@ -22,6 +26,19 @@ public class QueryInspectionListService { |
|
|
|
private InspectionFileMapper inspectionFileMapper; |
|
|
|
|
|
|
|
public JsonResult getList(Integer airportId) { |
|
|
|
return null; |
|
|
|
//校验 |
|
|
|
if(null == airportId){ |
|
|
|
return JsonResult.success("巡检机场id不存在"); |
|
|
|
} |
|
|
|
List<Inspection> inspections = inspectionMapper.selectList(Wrappers.<Inspection>lambdaQuery() |
|
|
|
.eq(Inspection::getMark, 1) |
|
|
|
.eq(Inspection::getTenantId, "0") |
|
|
|
.eq(Inspection::getAirportId, airportId) |
|
|
|
.in(Inspection::getStatus, 15, 10)); |
|
|
|
if(null == inspections){ |
|
|
|
return JsonResult.error(); |
|
|
|
} |
|
|
|
|
|
|
|
return JsonResult.success(inspections); |
|
|
|
} |
|
|
|
} |