From a5d7b6dab450fcc2223010998bdd1aeea3435ad1 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Mon, 26 Sep 2022 14:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E6=94=B6=E7=81=AB?= =?UTF-8?q?=E7=82=B9=E4=BF=A1=E6=81=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/controller/FirePointController.java | 7 +++++++ 1 file changed, 7 insertions(+) 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);