mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-02 17:10:03 +08:00
update 打印日志
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package com.jsowell.web.controller.index;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.pile.dto.IndexQueryDTO;
|
||||
import com.jsowell.pile.service.PileBasicInfoService;
|
||||
import com.jsowell.pile.service.OrderBasicInfoService;
|
||||
import com.jsowell.pile.service.PileBasicInfoService;
|
||||
import com.jsowell.pile.vo.web.IndexGeneralSituationVO;
|
||||
import com.jsowell.pile.vo.web.IndexOrderInfoVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -33,7 +33,7 @@ public class indexController extends BaseController {
|
||||
|
||||
@PostMapping("/getGeneralSituation")
|
||||
public RestApiResponse<?> getGeneralSituation(@RequestBody IndexQueryDTO dto) {
|
||||
logger.info("首页基础数据查询 param:{}", JSONObject.toJSONString(dto));
|
||||
logger.info("首页基础数据查询 param:{}", JSON.toJSONString(dto));
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
IndexGeneralSituationVO generalSituation = pileBasicInfoService.getGeneralSituation(dto);
|
||||
@@ -42,7 +42,7 @@ public class indexController extends BaseController {
|
||||
logger.error("首页数据查询错误:{}", e.getMessage());
|
||||
response = new RestApiResponse<>("00200001", "首页基础数据查询错误");
|
||||
}
|
||||
logger.info("首页数据查询 result:{}", JSONObject.toJSONString(response));
|
||||
logger.info("首页数据查询 result:{}", JSON.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class indexController extends BaseController {
|
||||
*/
|
||||
@PostMapping("/getOrderInfo")
|
||||
public RestApiResponse<?> getOrderInfo(@RequestBody IndexQueryDTO dto) {
|
||||
logger.info("首页订单相关信息查询 param:{}", JSONObject.toJSONString(dto));
|
||||
logger.info("首页订单相关信息查询 param:{}", JSON.toJSONString(dto));
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
List<IndexOrderInfoVO> indexOrderInfo = orderBasicInfoService.getIndexOrderInfo(dto);
|
||||
@@ -63,7 +63,7 @@ public class indexController extends BaseController {
|
||||
logger.error("首页订单相关信息查询错误!{}", e.getMessage());
|
||||
response = new RestApiResponse<>("00200002", "首页订单数据查询错误");
|
||||
}
|
||||
logger.info("首页订单相关信息查询 result:{}", JSONObject.toJSONString(response));
|
||||
logger.info("首页订单相关信息查询 result:{}", JSON.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user