| | |
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | import com.fgkj.dao.impl.BattInfImpl;
|
| | | import com.fgkj.dao.impl.Batt_rtstateDAOImpl;
|
| | | import com.fgkj.dto.BattInf;
|
| | |
|
| | | public class BattinfGroupFactory {
|
| | |
| | | }
|
| | | return list;
|
| | | }
|
| | |
|
| | | //查询当前最大的电池组id
|
| | | public static int searchMaxBattgroupId(){
|
| | | int BattgroupId_max=(new Batt_rtstateDAOImpl()).searchMaxBattgroupId();//当前内存中最大的电池组id
|
| | | int BattgroupId_next=BattgroupId_max+1;
|
| | | return BattgroupId_next;
|
| | | }
|
| | | //查询当前最大的stationid
|
| | | public static int searchStationId(){
|
| | | int station_max=(new BattInfImpl()).searchMaxId();//当前最大的stationid
|
| | | int station_next=station_max+1;
|
| | | return station_next;
|
| | | }
|
| | | }
|