去除e.printStackTrace();使用slf4j实现
This commit is contained in:
@@ -15,6 +15,7 @@ import cn.lili.modules.statistics.service.OrderStatisticsDataService;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -28,6 +29,7 @@ import java.util.List;
|
||||
* @author Bulbasaur
|
||||
* @date: 2020/12/9 19:04
|
||||
*/
|
||||
@Slf4j
|
||||
@Api(tags = "店铺端,订单统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/store/statistics/order")
|
||||
@@ -56,7 +58,7 @@ public class OrderStatisticsStoreController {
|
||||
statisticsQueryParam.setStoreId(UserContext.getCurrentUser().getStoreId());
|
||||
return ResultUtil.data(orderStatisticsDataService.overview(statisticsQueryParam));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("订单概览统计错误",e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -68,7 +70,7 @@ public class OrderStatisticsStoreController {
|
||||
statisticsQueryParam.setStoreId(UserContext.getCurrentUser().getStoreId());
|
||||
return ResultUtil.data(orderStatisticsDataService.statisticsChart(statisticsQueryParam));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("订单图表统计错误",e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -82,7 +84,7 @@ public class OrderStatisticsStoreController {
|
||||
statisticsQueryParam.setStoreId(UserContext.getCurrentUser().getStoreId());
|
||||
return ResultUtil.data(orderService.getStatistics(statisticsQueryParam, pageVO));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("订单统计错误",e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
@@ -37,6 +38,7 @@ import java.util.List;
|
||||
* @author Chopper
|
||||
* @date 2020/11/17 4:35 下午
|
||||
**/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/store/orders")
|
||||
@Api(tags = "店铺端,订单接口")
|
||||
@@ -177,7 +179,7 @@ public class OrderStoreController {
|
||||
}
|
||||
orderService.batchDeliver(orderBatchDeliverDTOList);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("上传文件进行订单批量发货错误",e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user