zxl
2025-10-15 7aa3389ed873054a07a963ac010190d12e7ce89b
manager-api/src/main/java/cn/lili/controller/lmk/StatisticsController.java
@@ -13,6 +13,7 @@
import cn.lili.modules.statistics.service.PlatformViewService;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -28,7 +29,7 @@
 * @date : 2025-09-16 16:36
 **/
@RestController
@AllArgsConstructor
@RequiredArgsConstructor
@RequestMapping("/manager/lmk/statistics")
public class StatisticsController {
    private final OrderService orderService;
@@ -95,9 +96,24 @@
    }
    /**
     * 浏览数据和下订单时间段分析
     * @param queryParam
     * @return
     */
    @GetMapping("/orderTimePeriod")
    public Result getOrderTimePeriod(StatisticsQueryParam queryParam) {
        return orderService.getOrderTimePeriod(queryParam);
    }
    /**
     * 商品复购率
     * @param queryParam
     * @return
     */
    @GetMapping("/productRepurchase")
    public Result gerProductRepurchase(StatisticsQueryParam queryParam){
        return orderService.gerProductRepurchase(queryParam);
    }
}