소스 검색

修复无year错误

chenendian 1 개월 전
부모
커밋
579cd7ebfe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      siwei-modules/siwei-apply/src/main/java/com/siwei/apply/controller/cadastre/SupplyController.java

+ 1 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/controller/cadastre/SupplyController.java

@@ -286,7 +286,7 @@ public class SupplyController extends BaseController {
      * @return
      */
     @GetMapping("/projectList")
-    public R<List<LandSupplyProjectVO>> getProjectList(@RequestParam String year,@RequestParam Integer supplyType) {
+    public R<List<LandSupplyProjectVO>> getProjectList(@RequestParam(required = false) String year,@RequestParam Integer supplyType) {
         try {
                 List<LandSupplyProjectVO> resList =  supplyService.projectList(year,supplyType);
                 return R.ok(resList);