From e6d941b972c2716b20b4771a6e997d3a5514c44e Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 7 Dec 2023 09:07:40 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=8E=BB=E9=99=A4=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzims/alarm/show/controller/ShowAlarmController.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/controller/ShowAlarmController.java b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/controller/ShowAlarmController.java index d5873d2..5410138 100644 --- a/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/controller/ShowAlarmController.java +++ b/hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/show/controller/ShowAlarmController.java @@ -1,6 +1,5 @@ package com.hnac.hzims.alarm.show.controller; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.hnac.hzims.alarm.entity.AlarmEntity; @@ -15,14 +14,9 @@ import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; import org.springblade.core.tool.api.R; -import org.springblade.core.tool.utils.Func; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; -import springfox.documentation.annotations.ApiIgnore; -import javax.validation.Valid; import java.util.List; -import java.util.Map; /** * @author ysj @@ -40,7 +34,7 @@ public class ShowAlarmController extends BladeController { @GetMapping("/broadcast") @ApiOperationSupport(order = 1) @ApiOperation(value = "播报告警", notes = "传入:时间区间") - public R> broadcast(@ApiParam(value = "开始时间", required = false) String startTime, + public R> broadcast(@ApiParam(value = "开始时间") String startTime, @ApiParam(value = "结束时间", required = true) String endTime) { return R.data(alarmService.broadcast(startTime,endTime)); }