| | |
| | | msg="设置"+sys.getDev_id()+"的设备系统参数";
|
| | | }else if(sys.getNum()==FBS9100_ComBase.CMD_ResetSystem){
|
| | | msg="重启"+sys.getDev_id()+"的设备";
|
| | | }else if(sys.getNum()==FBS9100_ComBase.CMD_SetSYSSetParam){
|
| | | }else if(sys.getNum()==FBS9100_ComBase.CMD_GetSYSSetParam){
|
| | | msg="获取"+sys.getDev_id()+"的设备系统参数";
|
| | | }
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Alter, msg);
|
| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //批量设置系统参数
|
| | | public String updatePro() {
|
| | | List<Fbs9100_sysparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_sysparam>>(){}.getType());
|
| | | ServiceModel model = service.updatePro(list);
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | |
| | | //根据设备id查询系统参数(一定是被管理的)
|
| | | public String serchByCondition(){
|
| | | Fbs9100_sysparam sys= getGson().fromJson(json, Fbs9100_sysparam.class);
|
| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //批量设置系统参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组并读取它的实际系统参数
|
| | | public String serchBattinfAndParam() {
|
| | | BattInf binf=getGson().fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.serchBattinfAndParam(binf);
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | |
| | | |
| | | public String getResult() {
|
| | | return result;
|
| | | }
|