| | |
| | | import java.io.Serializable;
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | import com.github.pagehelper.Page;
|
| | |
|
| | | import lombok.Data;
|
| | |
|
| | | /**
|
| | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.moral.common.bean.PageBean; |
| | | import com.moral.common.mapper.BaseMapper; |
| | | import com.moral.entity.Account; |
| | | import lombok.extern.log4j.Log4j; |
| | | import tk.mybatis.mapper.entity.Example; |
| | | import tk.mybatis.mapper.mapperhelper.MapperHelper; |
| | | import tk.mybatis.mapper.mapperhelper.MapperTemplate; |
| | | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.lang.reflect.Type; |
| | | import java.util.List; |
| | | |
| | | @Log4j |
| | |
| | | @Resource |
| | | private DeviceVersionSensorMapper deviceVersionSensorMapper; |
| | | private static Class ENTITY_CLASS = DeviceVersion.class; |
| | | @Override |
| | | public PageBean queryByPageBean(PageBean pageBean){ |
| | | return MyBatisBaseMapUtil.queryPage(deviceVersionMapper,pageBean,ENTITY_CLASS); |
| | | } |
| | | @Override |
| | | public void addOrModify(DeviceVersion deviceVersion){ |
| | | try{ |
| | | if(deviceVersion.getId()==null){ |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e9": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 3000, |
| | | 3600, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e14": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 10000, |
| | | 12000, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e21": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 3, |
| | | 4, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e25": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 41, |
| | | 49, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e26": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 47, |
| | | 57, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e27": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 71, |
| | | 86, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e29": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 71, |
| | | 86, |
| | |
| | | "degression": [0,0,0] |
| | | }, |
| | | "e30": { |
| | | "enable": 0, |
| | | "enable": 1, |
| | | "increment": [ |
| | | 84, |
| | | 101, |
| | |
| | | minZoom: 12, |
| | | maxZoom: 20 |
| | | }; |
| | | debugger; |
| | | if(!!arguments[1]) { |
| | | $.extend(defaultParam,arguments[1]); |
| | | } |
| | |
| | | if(window["console"]!=undefined){ |
| | | console.log(equStr); |
| | | } |
| | | if(!!window['external']&&window['external']['callWin']){ |
| | | if(!!window['external']&&!!window['external']['callWin']){ |
| | | window['external'].callWin(equStr); |
| | | }else{ |
| | | if(!!select&&select==='chart'&&!!window['external']&&window['external']['showChartInfo']){ |
| | | if(!!select&&select==='chart'&&!!window['external']&&!!window['external']['showChartInfo']){ |
| | | window['external'].showChartInfo(equStr); |
| | | }else if(!!window['external']&&window['external']['showMonitorInfo']){ |
| | | }else if(!!window['external']&&!!window['external']['showMonitorInfo']){ |
| | | window['external'].showMonitorInfo(equStr); |
| | | }else{ |
| | | alert(equStr); |
| | |
| | | var mapType = getUrlParam("mapType"); |
| | | var mapOption = {}; |
| | | if(!!mapType && !!eval(mapType)) { |
| | | mapOption["mapType"] = eval(mapType); |
| | | mapOption["mapType"] = jieval(mapType); |
| | | } |
| | | //通过地区名称加载地图 |
| | | moralMap.mapInit(params["regionName"],mapOption); |
| | |
| | | if(window["console"]!=undefined){ |
| | | console.log(equStr); |
| | | } |
| | | if(!!window['external']&&window['external']['callWin']){ |
| | | if(!!window['external']&&!!window['external']['callWin']){ |
| | | window['external'].callWin(equStr); |
| | | }else |
| | | if(!!window['external']&&window['external']['showMonitorInfo']){ |
| | | if(!!window['external']&&!!window['external']['showMonitorInfo']){ |
| | | window['external'].showMonitorInfo(equStr); |
| | | }else{ |
| | | alert(equStr); |
| | |
| | | var obj = {}; |
| | | obj['methodName'] = 'showChart'; |
| | | var objStr = JSON.stringify(obj); |
| | | if(!!window['external']&&window['external']['callWin']){ |
| | | if(!!window['external']&&!!window['external']['callWin']){ |
| | | window['external'].callWin(objStr); |
| | | }else |
| | | if(!!window['external']&&window['external']['showChartInfo']){ |
| | | if(!!window['external']&&!!window['external']['showChartInfo']){ |
| | | window['external'].showChartInfo(""); |
| | | }else{ |
| | | alert(objStr); |