| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //设置电池组充电电流阈值
|
| | | public String update_charge() {
|
| | | BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.update_charge(binf);
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //删除电池组
|
| | | public String delete() {
|
| | | List<BattInf> list= getGson("yyyy-MM-dd").fromJson(json, new TypeToken<List<BattInf>>(){}.getType());
|
| | |
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //首页上显示已安装数和全部基站数
|
| | | public String serchDevice(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model = service.serchDevice(uinf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | public BattInf getBif() {
|
| | | return bif;
|