| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.BaoJiGroup; |
| | | import com.whyc.service.BaoJiGroupService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.swing.*; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | |
| | | return service.updateDischargeFlag(baoJiGroupId,flag); |
| | | } |
| | | |
| | | @GetMapping("groupNameList") |
| | | @ApiOperation(value = "班组名列表") |
| | | public Response<List<BaoJiGroup>> getGroupNameList(){ |
| | | List<BaoJiGroup> baoJiGroupList = service.getBaoJiGroupNameListByFlag(1); |
| | | return new Response<List<BaoJiGroup>>().set(1,baoJiGroupList); |
| | | } |
| | | |
| | | @GetMapping("groupWithStationAndAlarmForScreen") |
| | | @ApiOperation(value = "大屏下的查询班组管理下的站点及告警") |
| | | public Response<List<BaoJiGroup>> getGroupWithStationAndAlarmForScreen(){ |
| | | Long uId = ActionUtil.getUser().getUId(); |
| | | return service.getGroupWithStationAndAlarmForScreen(uId.intValue()); |
| | | } |
| | | |
| | | @GetMapping("groupWithStationAndAlarm") |
| | | @ApiOperation(value = "查询班组管理下的站点及告警") |
| | | public Response<List<BaoJiGroup>> getGroupWithStationAndAlarm(){ |
| | | Long uId = ActionUtil.getUser().getUId(); |
| | | return service.getGroupWithStationAndAlarm(uId.intValue()); |
| | | } |
| | | |
| | | } |