From 4e3b8155722b66e25df3c6fd42cc586b68dea391 Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期五, 06 六月 2025 13:55:39 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollowtask/controller/HollowBigStorageCageHistoryTaskController.java | 37 +++++++++++++++++++++++++++++++++++-- 1 files changed, 35 insertions(+), 2 deletions(-) diff --git a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollowtask/controller/HollowBigStorageCageHistoryTaskController.java b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollowtask/controller/HollowBigStorageCageHistoryTaskController.java index cb5d659..a4d8f90 100644 --- a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollowtask/controller/HollowBigStorageCageHistoryTaskController.java +++ b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollowtask/controller/HollowBigStorageCageHistoryTaskController.java @@ -1,8 +1,20 @@ package com.mes.hollowtask.controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.mes.hollowtask.entity.HollowBigStorageCageHistoryTask; +import com.mes.hollowtask.entity.request.HollowBigStorageCageHistoryRequest; +import com.mes.hollowtask.service.HollowBigStorageCageHistoryTaskService; +import com.mes.largenscreen.entity.DailyProductionVO; +import com.mes.largenscreen.entity.RunTime; +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.*; + +import javax.annotation.Resource; +import java.util.List; /** * (HollowBigStorageCageHistoryTask)琛ㄦ帶鍒跺眰 @@ -10,9 +22,30 @@ * @author makejava * @since 2024-11-27 15:22:45 */ +@Api(tags = "涓┖鐞嗙墖绗间俊鎭巻鍙蹭换鍔�") @RestController @RequestMapping("hollowBigStorageCageHistoryTask") public class HollowBigStorageCageHistoryTaskController { + @Resource + HollowBigStorageCageHistoryTaskService hollowBigStorageCageHistoryTaskService; + + @ApiOperation("鎸夌収鏌ヨ鏉′欢鏌ヨ涓┖鐞嗙墖绗间俊鎭巻鍙蹭换鍔�") + @PostMapping("/queryHollowBigStorageCageHistoryTask") + public Result<Page<HollowBigStorageCageHistoryTask>> queryHollowBigStorageCageHistoryTask(@RequestBody @Validated HollowBigStorageCageHistoryRequest request) { + return Result.build(200, "鏌ヨ鎴愬姛", hollowBigStorageCageHistoryTaskService.queryHollowBigStorageCageHistoryTask(request)); + } + + @ApiOperation(value = "鏌ヨ鏈潯绾垮巻鍙叉寚瀹氭棩鏈熺殑鏃ョ敓浜ф暟鎹�", notes = "鏌ヨ鏈潯绾垮巻鍙叉寚瀹氭棩鏈熺殑鏃ョ敓浜ф暟鎹�") + @PostMapping("/queryHollowDailyProduction") + public Result<DailyProductionVO> queryHollowDailyProduction(@RequestBody HollowBigStorageCageHistoryRequest request) { + return Result.success(hollowBigStorageCageHistoryTaskService.queryHollowDailyProduction(request)); + } + + @ApiOperation(value = "鏌ヨ鐢熶骇绾胯繍琛屾儏鍐�", notes = "鏌ヨ鐢熶骇绾胯繍琛屾儏鍐�") + @GetMapping("/queryRunTimes") + public Result<List<RunTime>> queryRunTimes(String days) { + return Result.success(hollowBigStorageCageHistoryTaskService.queryRunTimes(days)); + } } -- Gitblit v1.8.0