| | |
| | | |
| | | import com.whyc.dto.Real.AlmDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_param.BattAlmparam; |
| | | import com.whyc.pojo.db_param.DevAlmparam; |
| | | import com.whyc.service.BattAlmparamService; |
| | | import com.whyc.service.DevAlmparamService; |
| | | 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.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "告警管理") |
| | | @Api(tags = "告警参数管理") |
| | | @RequestMapping("almParam") |
| | | public class AlmParamController { |
| | | @Autowired |
| | |
| | | return battAlmparamService.getBattAlmParam(almDto); |
| | | } |
| | | |
| | | @PostMapping("setBattAlmParam") |
| | | @ApiOperation("修改电池告警参数") |
| | | public Response setBattAlmParam(@RequestBody List<BattAlmparam> almparamList){ |
| | | return battAlmparamService.setBattAlmParam(almparamList); |
| | | } |
| | | |
| | | @GetMapping("getDevAlmParam") |
| | | @ApiOperation("获取设备告警参数") |
| | | public Response getDevAlmParam(@RequestParam(required = false) Integer almId,@RequestParam Integer pageNum,@RequestParam Integer pageSize){ |
| | | return devAlmparamService.getDevAlmParam(almId,pageNum,pageSize); |
| | | } |
| | | |
| | | @PostMapping("setDevAlmParam") |
| | | @ApiOperation("修改设备告警参数") |
| | | public Response setDevAlmParam(@RequestBody List<DevAlmparam> almparamList){ |
| | | return devAlmparamService.setDevAlmParam(almparamList); |
| | | } |
| | | } |