| | |
| | | @PostMapping("/statTrend") |
| | | @Operation(summary = "加油站统计-顶部条形图") |
| | | public Result<?> statTrend(@RequestBody DataStatisReqVo param) { |
| | | LoginUser user = SystemContextUtil.currentLoginUser(); |
| | | param.setOrgCodeIfnull(user.getOrgCode()); |
| | | JSONObject statFan; |
| | | if (param.getTrendType() == DataStatisReqVo.TrendType.CLIENT || param.getTrendType() == DataStatisReqVo.TrendType.LOSE_CLIENT) { |
| | | statFan = oilRecordService.statTrendClient(param); |
| | |
| | | return Result.ok(statFan); |
| | | } |
| | | |
| | | @PostMapping("/statTrendDetail") |
| | | @Operation(summary = "加油站统计-趋势分析明细") |
| | | public Result<?> statTrendDetail(@RequestBody DataStatisReqVo param) { |
| | | LoginUser user = SystemContextUtil.currentLoginUser(); |
| | | param.setOrgCodeIfnull(user.getOrgCode()); |
| | | List<Map<String, Object>> list = oilRecordService.statTrendDetail(param); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | |
| | | } |