| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Real.AlmDto; |
| | |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list!=null,pageInfo,"获取电池告警参数"); |
| | | } |
| | | //修改电池告警参数 |
| | | public Response setBattAlmParam(List<BattAlmparam> almparamList) { |
| | | for (BattAlmparam param:almparamList) { |
| | | UpdateWrapper wrapper=new UpdateWrapper(); |
| | | wrapper.eq("battgroup_id",param.getBattgroupId()); |
| | | wrapper.eq("alm_id",param.getAlmId()); |
| | | mapper.update(param,wrapper); |
| | | } |
| | | return new Response().set(1,true,"修改电池告警参数"); |
| | | } |
| | | } |