package com.mes.largenscreen.controller;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.mes.largenscreen.entity.DailyProductionVO;
|
import com.mes.largenscreen.entity.DateRequest;
|
import com.mes.largenscreen.service.LargenScreenService;
|
import com.mes.utils.Result;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
/**
|
* @Author : zhoush
|
* @Date: 2025/3/12 14:24
|
* @Description:
|
*/
|
@Api(tags = "大屏统计信息")
|
@RestController
|
@RequestMapping("largenScreen")
|
public class LargenScreenController {
|
|
@Resource
|
LargenScreenService largenScreenService;
|
|
@ApiOperation("按照条件统计每日生产情况")
|
@PostMapping("/queryDailyProduction")
|
public Result<Page<DailyProductionVO>> queryDailyProduction(@RequestBody @Validated DateRequest query) {
|
return Result.build(200, "查询成功", largenScreenService.queryDailyProduction(query));
|
}
|
|
|
}
|