新增 运营端小程序 查询订单数量趋势信息接口

This commit is contained in:
Lemon
2024-08-08 14:04:17 +08:00
parent cd6feb7aa3
commit 1054c1fe51
10 changed files with 147 additions and 13 deletions

View File

@@ -6,8 +6,9 @@ import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.dto.StationBusinessAnalyzeInfoDTO;
import com.jsowell.pile.dto.StationStatisticsInfoDTO;
import com.jsowell.pile.service.OrderBasicInfoService;
import com.jsowell.pile.service.PileStationInfoService;
import com.jsowell.pile.vo.StationBusinessAnalyzeInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationBusinessAnalyzeInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -27,6 +28,9 @@ public class BusinessStationInfoController extends BaseController {
@Autowired
private PileStationInfoService pileStationInfoService;
@Autowired
private OrderBasicInfoService orderBasicInfoService;
/**
* 获取站点统计信息
* @param dto
@@ -85,4 +89,22 @@ public class BusinessStationInfoController extends BaseController {
logger.info("获取站点运营分析信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
/**
* 查询订单数量趋势信息
* @return
*/
@PostMapping("/getStationOrderQuantityInfo")
public RestApiResponse<?> getStationOrderQuantityInfo(@RequestBody StationBusinessAnalyzeInfoDTO dto) {
RestApiResponse<?> response = null;
try {
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationOrderQuantityInfo(dto);
response = new RestApiResponse<>(ImmutableMap.of("stationBusinessAnalyzeInfoVO", vo));
} catch (Exception e) {
logger.error("查询订单数量趋势信息 error", e);
response = new RestApiResponse<>(e);
}
logger.info("查询订单数量趋势信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
}