Kaynağa Gözat

修复无year错误

chenendian 1 ay önce
ebeveyn
işleme
579cd7ebfe

+ 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);