添加接收火点信息日志
This commit is contained in:
parent
f312e74eee
commit
a5d7b6dab4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user