Kaynağa Gözat

gis接口及问题核实接口

tags/v1.0.0^2
chengwang 1 yıl önce
ebeveyn
işleme
8dc51aab9c
4 değiştirilmiş dosya ile 79 ekleme ve 0 silme
  1. +11
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionFileController.java
  2. +3
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/IInspectionFileService.java
  3. +26
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/InspectionFileServiceImpl.java
  4. +39
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/InspectionFileVo.java

+ 11
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionFileController.java Dosyayı Görüntüle

@@ -1,7 +1,9 @@
package com.tuoheng.admin.controller;

import com.tuoheng.admin.service.IInspectionFileService;
import com.tuoheng.common.core.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@@ -16,5 +18,14 @@ public class InspectionFileController {
@Autowired
private IInspectionFileService iInspectionFileService;

/**
* 问题类型和任务名称
* @return
*/
@GetMapping("/getQuestionList")
public JsonResult getQuestionList(){
return iInspectionFileService.getQuestionList();
}


}

+ 3
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/IInspectionFileService.java Dosyayı Görüntüle

@@ -1,8 +1,11 @@
package com.tuoheng.admin.service;

import com.tuoheng.common.core.utils.JsonResult;

/**
* @Author ChengWang
* @Date 2022/11/29
*/
public interface IInspectionFileService {
JsonResult getQuestionList();
}

+ 26
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/InspectionFileServiceImpl.java Dosyayı Görüntüle

@@ -1,14 +1,40 @@
package com.tuoheng.admin.service.impl;

import com.tuoheng.admin.mapper.InspectionFileMapper;
import com.tuoheng.admin.mapper.InspectionMapper;
import com.tuoheng.admin.service.IInspectionFileService;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* 任务问题管理 前端控制器
*
* @Author ChengWang
* @Date 2022/11/29
*/
@Service
@Slf4j
public class InspectionFileServiceImpl implements IInspectionFileService {

@Autowired
private InspectionFileMapper inspectionFileMapper;

@Autowired
private InspectionMapper inspectionMapper;



/**
* 问题类型和任务名称
* @return
*/
@Override
public JsonResult getQuestionList() {



return null;
}
}

+ 39
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/vo/InspectionFileVo.java Dosyayı Görüntüle

@@ -0,0 +1,39 @@
package com.tuoheng.admin.vo;

import lombok.Data;

/**
*任务问题返回实体类
*
* @Author ChengWang
* @Date 2022/11/29
*/
@Data
public class InspectionFileVo {

/**
* 任务名称
*/
private String name;

/**
* 问题id
*/
private String id;

/**
* 问题经度
*/
private String latitude;

/**
* 问题经度
*/
private String longitude;

/**
* 问题类型:1坑槽,2积水,3裂缝
*/
private Integer type;

}

Yükleniyor…
İptal
Kaydet