| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.constant.BattSingalIdEnum; |
| | | import com.whyc.constant.PowerAlarmEnum; |
| | | import com.whyc.dto.AlarmParam; |
| | | import com.whyc.dto.Param.AlmAnalyseDto; |
| | | import com.whyc.dto.Param.ParamAlmDto; |
| | | import com.whyc.dto.Real.AlmDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.PwrdevAlarmParamMapper; |
| | | import com.whyc.pojo.db_alarm.BattalarmData; |
| | | import com.whyc.pojo.db_param.BattAlmparam; |
| | | import com.whyc.pojo.db_pwrdev_alarm.PwrdevAlarmParam; |
| | | import com.whyc.pojo.db_station.PowerInf; |
| | |
| | | } |
| | | } |
| | | // PageInfo<PwrdevAlarmParam> pageInfo=new PageInfo(list); |
| | | return new Response().setIII(1,list!=null,list,pinf,"获取电源告警参数"); |
| | | return new Response().setIII(1,list!=null&&list.size()>0,list,pinf,"获取电源告警参数"); |
| | | } |
| | | |
| | | //获取电源告警参数(无参用于导出) |
| | | public Response getPwrAlmParamToExport(Integer uid) { |
| | | List<PwrdevAlarmParam> list = mapper.getPwrAlmParamToExport(uid); |
| | | return new Response().setII(1,list!=null,list,"获取电源告警参数(无参用于导出)"); |
| | | return new Response().setII(1,list!=null&&list.size()>0,list,"获取电源告警参数(无参用于导出)"); |
| | | } |
| | | //修改电源告警参数 |
| | | public Response setPwrAlmParam(List<PwrdevAlarmParam> almparamList) { |
| | |
| | | } |
| | | return new Response().set(1,true,"修改电源告警参数"); |
| | | } |
| | | |
| | | } |