| | |
| | | model.setData(dev_id);
|
| | | return model;
|
| | | }
|
| | | //添加操作时查询出电池组id
|
| | | public ServiceModel searchMaxBattgroupId(){
|
| | | int battgroupid=BattinfGroupFactory.searchMaxBattgroupId();
|
| | | model.setData(battgroupid);
|
| | | return model;
|
| | | }
|
| | |
|
| | | //批量设置放电参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组
|
| | | public ServiceModel serchByDischarge(Object obj){
|
| | | List list=((BattInfImpl)dao).serchByDischarge(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | | model.setCode(1);
|
| | | model.setData(list);
|
| | | model.setMsg("查询成功!");
|
| | | }else{
|
| | | model.setCode(0);
|
| | | model.setMsg("查询失败!");
|
| | | }
|
| | | return model;
|
| | | }
|
| | | public static void main(String[] args) {
|
| | | //new BattInfServices().findMenu();
|
| | | BattInf b=new BattInf();
|