| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //根据维护区和机房名称查询电池组信息
|
| | | public String searchInform1() {
|
| | | Batt_Maint_Dealarm bmd = getGson().fromJson(json, Batt_Maint_Dealarm.class);
|
| | | ServiceModel model = service.searchInform1(bmd);
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | public String serchByCondition() {
|
| | | model = service.serchByCondition(bif);
|
| | | result = ActionUtil.tojson(model);
|
| | |
| | | //电池配组管理(重要)
|
| | | public String serchMakeGroup(){
|
| | | BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | binf.setNum(uinf.getUId());
|
| | | ServiceModel model = service.serchMakeGroup(binf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //电池配组管理(重要)
|
| | | public String serchGroupByInfor(){
|
| | | BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | binf.setNum(uinf.getUId());
|
| | | ServiceModel model = service.serchGroupByInfor(binf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | public BattInf getBif() {
|
| | | return bif;
|
| | | }
|