| | |
| | |
|
| | | import com.fgkj.dao.UinfDaoFactory;
|
| | | import com.fgkj.dto.BattMap_information;
|
| | | import com.fgkj.dto.Page;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_inf;
|
| | | import com.fgkj.dto.User_log;
|
| | |
| | | public String add(){
|
| | | BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
|
| | | ServiceModel model = service.add(binfo);
|
| | | {
|
| | | String msg="设置"+binfo.getStationName()+"在"+binfo.getAddress();
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Increase, msg);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //9.1录入机房信息(手机端)
|
| | | public String replace(){
|
| | | BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
|
| | | ServiceModel model = service.replace(binfo);
|
| | | {
|
| | | String msg="设置"+binfo.getStationName()+"在"+binfo.getAddress();
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Increase, msg);
|
| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数)
|
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的,l查询全部打开页面)
|
| | | public String searchUserManageStation() {
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | List list = service.searchUserManageStation(uinf);
|
| | | ServiceModel model = service.searchUserManageStation(uinf);
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的,分页刷新)
|
| | | public String searchUserManageStation2() {
|
| | | Page p=getGson().fromJson(json, Page.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | p.setPageAll(uinf.getUId());
|
| | | List list = service.searchUserManageStation2(p);
|
| | | result = tojson(list);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的,3.根据具体id查询告警信息等)
|
| | | public String searchUserManageStation3() {
|
| | | BattMap_information binfor=getGson().fromJson(json, BattMap_information.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | binfor.setNum(uinf.getUId());
|
| | | List list = service.searchUserManageStation3(binfor);
|
| | | result = tojson(list);
|
| | | return SUCCESS;
|
| | | }
|
| | | //9.1电池寿命管理
|
| | | public String serchByStationid(){
|
| | | BattMap_information bmap = getGson().fromJson(json, BattMap_information.class);
|