Browse Source

部门信息简报接口

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
dc182e2ead
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionListService.java

+ 18
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionListService.java View File

@@ -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);
}
}

Loading…
Cancel
Save