| | |
| | | |
| | | import com.whyc.dto.Real.AlmDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_param.BattAlmparam; |
| | | import com.whyc.service.BattAlmparamService; |
| | | import com.whyc.service.DevAlmparamService; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | 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); |
| | | } |
| | | |
| | | } |