| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.PwrdevAlarmParamMapper; |
| | | import com.whyc.pojo.PwrdevAlarmParam; |
| | | import com.whyc.pojo.PwrdevTimeOutAlarm; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | int flag=mapper.exportModel(powerDeviceId,list); |
| | | return new Response().set(flag>0?1:0); |
| | | } |
| | | /** |
| | | * 获取 告警模板 |
| | | */ |
| | | public Response getTemplate(){ |
| | | List<PwrdevAlarmParam> list = mapper.selectList(null); |
| | | return new Response().set(1,list,"查询成功"); |
| | | } |
| | | |
| | | |
| | | public Response update(PwrdevAlarmParam param){ |
| | | if (mapper.updateParam(param)>0){ |
| | | return new Response().set(1,true,"编辑成功"); |
| | | }else { |
| | | return new Response().set(1,false,"编辑失败"); |
| | | } |
| | | } |
| | | } |