新增 运营端小程序 站点经营分析统计图相关接口

This commit is contained in:
Lemon
2024-07-30 14:19:15 +08:00
parent 719fb39ffb
commit 01fb1e7b2a
11 changed files with 484 additions and 17 deletions

View File

@@ -4,8 +4,10 @@ import com.alibaba.fastjson2.JSONObject;
import com.google.common.collect.ImmutableMap;
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.PileStationInfoService;
import com.jsowell.pile.vo.StationBusinessAnalyzeInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -43,4 +45,24 @@ public class BusinessStationInfoController extends BaseController {
logger.info("获取站点统计信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
/**
* 获取站点运营分析信息
* @param dto
* @return
*/
@PostMapping("/getStationBusinessAnalyzeInfo")
public RestApiResponse<?> getStationBusinessAnalyzeInfo(@RequestBody StationBusinessAnalyzeInfoDTO dto){
RestApiResponse<?> response = null;
try {
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationBusinessAnalyzeInfo(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;
}
}