| | |
| | | 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);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | public String update(){
|
| | | BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
|
| | | ServiceModel model = service.update(binfo);
|