update 打印日志

This commit is contained in:
2024-03-19 16:22:40 +08:00
parent f079021ca4
commit 6a6ed9f311
92 changed files with 412 additions and 440 deletions

View File

@@ -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;
}