diff --git a/src/main/java/com/xkrs/controller/FirePointController.java b/src/main/java/com/xkrs/controller/FirePointController.java index e890490..94fa82c 100644 --- a/src/main/java/com/xkrs/controller/FirePointController.java +++ b/src/main/java/com/xkrs/controller/FirePointController.java @@ -1,11 +1,11 @@ package com.xkrs.controller; import com.xkrs.common.encapsulation.PromptMessageEnum; -import com.xkrs.service.FirePointService; -import com.xkrs.service.impl.FirePointServiceImpl; import com.xkrs.dao.SysUserDao; import com.xkrs.helper.FirePointQueryManager; +import com.xkrs.service.FirePointService; import com.xkrs.service.StreetService; +import com.xkrs.service.impl.FirePointServiceImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.i18n.LocaleContextHolder; @@ -81,7 +81,7 @@ public class FirePointController { * @param limit 最大数量 */ @GetMapping("/queryFirePointBroadcast") - public String queryFirePointBroadcast(@RequestParam("limit") Integer limit) { + public String queryFirePointBroadcast(@RequestParam(value = "limit", required = false) Integer limit) { return firePointService.queryFirePointBroadcast(limit); }