| | |
| | | private String json;
|
| | | private String result;
|
| | |
|
| | | |
| | | //修改告警值
|
| | | public String replaceAlarm(){
|
| | | Sensor_inf sinf=ActionUtil.getGson().fromJson(json, Sensor_inf.class);
|
| | | ServiceModel model=service.replaceAlarm(sinf);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //查询所有的省份(一级)
|
| | | public String serchProvice(){
|
| | | ServiceModel model=service.serchProvice();
|
| | |
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //查询所有的设备(四级)
|
| | | public String serchDevice(){
|
| | | Sensor_inf sinf=ActionUtil.getGson().fromJson(json, Sensor_inf.class);
|
| | | ServiceModel model=service.serchDevice(sinf);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //根据设备id查询信息
|
| | | public String serchByCondition(){
|
| | | Sensor_inf sinf=ActionUtil.getGson().fromJson(json, Sensor_inf.class);
|