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)); }