| | |
| | | //System.out.println(result);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | |
| | | //添加操作时查询出设备id
|
| | | public String searchmaxdev_id(){
|
| | | model = service.searchmaxdev_id();
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //添加操作时查询出电池组id
|
| | | public String searchMaxBattgroupId(){
|
| | | model = service.searchMaxBattgroupId();
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | public String searchAll() {
|
| | | model = service.searchAll();
|
| | | result = ActionUtil.tojson(model);
|
| | |
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //批量设置放电参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组
|
| | | public String serchByDischarge(){
|
| | | BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.serchByDischarge(binf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //跨域访问获取所有电池组的信息<-------跨域----------->
|
| | | public String searchInform_ky(){
|
| | | //isAllowHeaders(); //允许跨域访问
|