package com.fgkj.actions;
|
|
import com.fgkj.dto.ServiceModel;
|
import com.fgkj.services.Sensor_mapinfoService;
|
|
|
public class Sensor_mapinfoAction extends ActionUtil{
|
private Sensor_mapinfoService service=new Sensor_mapinfoService();
|
private String json;
|
private String result;
|
|
//查询所有传感器的定位信息
|
public String searchAll() {
|
ServiceModel model= service.searchAll();
|
result=tojson(model);
|
System.out.println(result);
|
return SUCCESS;
|
}
|
|
public String getResult() {
|
return result;
|
}
|
public void setJson(String json) {
|
this.json = json;
|
}
|
public static void main(String[] args) {
|
Sensor_mapinfoAction action=new Sensor_mapinfoAction();
|
action.searchAll();
|
}
|
|
|
}
|