diff --git a/src/main/java/com/xkrs/controller/FirePointController.java b/src/main/java/com/xkrs/controller/FirePointController.java index b9afe72..20cec34 100644 --- a/src/main/java/com/xkrs/controller/FirePointController.java +++ b/src/main/java/com/xkrs/controller/FirePointController.java @@ -13,8 +13,11 @@ import com.xkrs.model.qo.FirePointQo; import com.xkrs.model.qo.ShanDongFirePointVerifyStateQo; import com.xkrs.service.FirePointService; import com.xkrs.service.StreetService; +import com.xkrs.service.impl.FirePointServiceImpl; import com.xkrs.utils.FirePointQueryHelper; import org.apache.hc.core5.util.TextUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; @@ -35,6 +38,8 @@ import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulat @RestController public class FirePointController { + public static Logger log = LoggerFactory.getLogger(FirePointServiceImpl.class); + private final Locale locale = LocaleContextHolder.getLocale(); @Resource @@ -84,6 +89,7 @@ public class FirePointController { */ @PostMapping("/insertFirePoint") public String insertFirePoint(@RequestBody FirePointQo firePointQo) { + log.info("insertFirePoint 接收到火点信息:" + firePointQo.toString()); boolean success = firePointService.insertFirePoint(firePointQo); if (success) { return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功", locale); @@ -100,6 +106,7 @@ public class FirePointController { */ @PostMapping("/insertfirepointchanneltwo") public String insertFirePointChannelTwo(@RequestBody FirePointQo firePointQo) { + log.info("insertFirePointChannelTwo 接收到火点信息:" + firePointQo.toString()); boolean success = firePointService.insertFirePointChannelTwo(firePointQo); if (success) { return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功", locale);