| | |
| | | import com.fgkj.dao.impl.Batttestdata_infDAOImpl;
|
| | | import com.fgkj.dao.impl.BatttestdatastopDAOImpl;
|
| | | import com.fgkj.dao.impl.Process_surveyImpl;
|
| | | import com.fgkj.dao.impl.ram.Bts_station_stateImpl;
|
| | | import com.fgkj.dao.impl.ram.Fbs9100_setparamImpl;
|
| | | import com.fgkj.db.DBUtil;
|
| | | import com.fgkj.dto.App_Sys;
|
| | |
| | | import com.fgkj.dto.Page;
|
| | | import com.fgkj.dto.Process_survey;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_inf;
|
| | |
|
| | | public class BattInfServices {
|
| | | private ServiceModel model;
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | | //首页上显示已安装数和全部基站数
|
| | | public ServiceModel serchDevice(Object obj){
|
| | | int devNum=(new BattInfImpl()).serchByDeviceId(obj); //总设备数(已安装)
|
| | | int allNum=(new BattInfImpl()).serchByDeviceId_all(obj); //总设备数(全部)
|
| | | model.setSum(allNum);
|
| | | model.setNewsum(devNum);
|
| | | return model;
|
| | | }
|
| | |
|
| | | public static void main(String[] args) {
|
| | | //new BattInfServices().findMenu();
|
| | | BattInf b=new BattInf();
|
| | |
| | | //bs.searchInform(bmd);
|
| | | //bs.serchByBattGroupName(b);
|
| | | //bs.updateIp(b);
|
| | | ServiceModel model=bs.serchMakeGroup(b);
|
| | | /*ServiceModel model=bs.serchMakeGroup(b);
|
| | | List<BattInf> list=(List) model.getData();
|
| | | for (BattInf binf : list) {
|
| | | List<Batttestdatastop> list_sdata=(List) binf.getObj();
|
| | | for (Batttestdatastop s : list_sdata) {
|
| | | System.out.println(s);
|
| | | }
|
| | | }
|
| | | }*/
|
| | | //BattTestData.run_cmd(BattTestData.STRCMD);
|
| | | User_inf uinf=new User_inf();
|
| | | uinf.setUId(1002);
|
| | | ServiceModel model=bs.serchDevice(uinf);
|
| | | System.out.println(model);
|
| | | }
|
| | | }
|