|
@@ -1,23 +1,19 @@
|
|
|
package com.onemap.apply.controller.tdgy;
|
|
|
|
|
|
-import com.onemap.apply.domain.tdgy.vo.UpdateTdgyVo;
|
|
|
-import com.onemap.apply.service.tdgy.TdgyService;
|
|
|
import com.onemap.apply.service.tdgy.TdtjService;
|
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
-import javax.validation.Valid;
|
|
|
|
|
|
/**
|
|
|
* 闲置土地统计
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/tdtj")
|
|
|
-public class TdgsController {
|
|
|
+public class TdtjController {
|
|
|
@Resource
|
|
|
private TdtjService tdtjService;
|
|
|
|
|
@@ -27,20 +23,20 @@ public class TdgsController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/overview")
|
|
|
- public RequestResult overviewTdtj() {
|
|
|
- RequestResult requestResult = tdtjService.getOverview();
|
|
|
+ public RequestResult overviewTdtj(String startTime, String endTime) {
|
|
|
+ RequestResult requestResult = tdtjService.getOverview(startTime, endTime);
|
|
|
return requestResult;
|
|
|
}
|
|
|
|
|
|
@GetMapping("/district")
|
|
|
- public RequestResult districtTdtj() {
|
|
|
- RequestResult requestResult = tdtjService.getDistrict();
|
|
|
+ public RequestResult districtTdtj(String startTime, String endTime) {
|
|
|
+ RequestResult requestResult = tdtjService.getDistrict(startTime, endTime);
|
|
|
return requestResult;
|
|
|
}
|
|
|
|
|
|
@GetMapping("/reason")
|
|
|
- public RequestResult reasonTdtj() {
|
|
|
- RequestResult requestResult = tdtjService.getReason();
|
|
|
+ public RequestResult reasonTdtj(String startTime, String endTime) {
|
|
|
+ RequestResult requestResult = tdtjService.getReason(startTime, endTime);
|
|
|
return requestResult;
|
|
|
}
|
|
|
}
|