修改森林检测模块

This commit is contained in:
2022-11-01 18:00:22 +08:00
parent aab12640b0
commit da51b2a55d
5 changed files with 14 additions and 6 deletions

View File

@ -7,6 +7,7 @@ import com.ruoyi.system.service_yada.impl.ForestDetectionServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@ -25,14 +26,14 @@ public class ForestDetectionControer {
private IForestDetectionService service;
@RequestMapping(value = "/select", method = {RequestMethod.GET})
public AjaxResult select() {
public AjaxResult select(@RequestParam(value = "year1",required = false) String year1) {
ForestDetectionVO forest = new ForestDetectionVO();
List<ChangeTable> changes = service.selectChange();
List<CloumnarTable> cloumnars = service.selectCloumnar();
List<TypeTable> types = service.selectType();
List<TypeTable> types = service.selectType(year1);
List<TypeConversion> conversions = service.selectConversion();