| | |
| | | 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 |
| | |
| | | @GetMapping("groupWithStationAndAlarm") |
| | | @ApiOperation(value = "查询班组管理下的站点及告警") |
| | | public Response<List<BaoJiGroup>> getGroupWithStationAndAlarm(){ |
| | | return service.getGroupWithStationAndAlarm(); |
| | | Long uId = ActionUtil.getUser().getUId(); |
| | | return service.getGroupWithStationAndAlarm(uId.intValue()); |
| | | } |
| | | |
| | | } |