添加接收火点信息日志

This commit is contained in:
liuchengqian 2022-09-26 14:48:01 +08:00
parent f312e74eee
commit a5d7b6dab4

View File

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