| | |
| | | package com.doumee.core.haikang.service; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson.TypeReference; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | |
| | | import com.doumee.core.haikang.model.param.respose.*; |
| | | import com.doumee.core.utils.Constants; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.BeanUtils; |
| | | import oshi.hardware.Sensors; |
| | | import sun.management.Sensor; |
| | | |
| | | import java.io.InputStream; |
| | | import java.lang.reflect.Field; |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *分页查询设备下的所有报警记录 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<FindDeviceAlarmListResponse>> findDeviceAlarmPage(FindDeviceAlarmListRequest param){ |
| | | log.info("【海康分页查询设备下的所有报警记录】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.findDeviceAlarmPage(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<BaseListPageResponse<FindDeviceAlarmListResponse>>>(){}; |
| | | BaseResponse<BaseListPageResponse<FindDeviceAlarmListResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康分页查询设备下的所有报警记录"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康分页查询设备下的所有报警记录】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *询消防设备列表 |
| | | * @return |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | public static String getMenuUrl(Integer type,String token){ |
| | | String menuId = HKConstants.MenuPageId.zhaf; |
| | | String menuId = HKConstants.MenuPageId.afzx; |
| | | if(Constants.equalsInteger(type,Constants.ONE)){ |
| | | menuId = HKConstants.MenuPageId.wyhq; |
| | | menuId = HKConstants.MenuPageId.xkzx; |
| | | }else if(Constants.equalsInteger(type,Constants.TWO)){ |
| | | menuId = HKConstants.MenuPageId.xzbg; |
| | | menuId = HKConstants.MenuPageId.ngzx; |
| | | }else if(Constants.equalsInteger(type,Constants.THREE)){ |
| | | menuId = HKConstants.MenuPageId.yyzx; |
| | | menuId = HKConstants.MenuPageId.jsc; |
| | | }else if(Constants.equalsInteger(type,Constants.FOUR)){ |
| | | menuId = HKConstants.MenuPageId.kqgl; |
| | | } |
| | | log.info("【海康获取工作台菜单免密登陆调整地址】================开始====menuId:"+menuId+"==token:"+token); |
| | | try { |