| | |
| | | import com.fgkj.dao.BattTestData;
|
| | | import com.fgkj.dao.BattinfGroupFactory;
|
| | | import com.fgkj.dao.DAOHelper;
|
| | | import com.fgkj.dao.FBS9100_ComBase;
|
| | | import com.fgkj.dao.ProcessServerDao;
|
| | | import com.fgkj.dao.impl.App_SysImpl;
|
| | | import com.fgkj.dao.impl.BattInfImpl;
|
| | |
| | | PreparedStatement ps=null;
|
| | | boolean b=((BattInfImpl)dao).updateIp(obj);
|
| | | if(b){
|
| | | boolean bl=(new Fbs9100_setparamImpl()).sendCmdToFBS9100Dev(binf.getNum(), binf.getFBSDeviceId());
|
| | | boolean bl=(new Fbs9100_setparamImpl()).sendCmdToFBS9100Dev(binf.getNum(),FBS9100_ComBase.CMD_TESTCMD_NULL, binf.getFBSDeviceId());
|
| | | if(bl){
|
| | | //将6185的服务设为重启
|
| | | Process_survey process=new Process_survey();
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | | //查询管理的机房(左侧导航第三层,查所有的机房,num中存放uid)
|
| | | //查询管理的县/区(左侧导航第三层,查所有的县/区)
|
| | | public ServiceModel serchStationName5(Object obj){
|
| | | List list=((BattInfImpl)dao).serchStationName5(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | | model.setCode(1);
|
| | | model.setData(list);
|
| | | model.setMsg("查询成功!");
|
| | | }else{
|
| | | model.setCode(0);
|
| | | model.setData(list);
|
| | | model.setMsg("查询失败!");
|
| | | }
|
| | | return model;
|
| | | }
|
| | | //查询管理的县/区(左侧导航第三层,查所有的县/区)
|
| | | public ServiceModel serchStationName5_all(Object obj){
|
| | | List list=((BattInfImpl)dao).serchStationName5_all(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | | model.setCode(1);
|
| | | model.setData(list);
|
| | | model.setMsg("查询成功!");
|
| | | }else{
|
| | | model.setCode(0);
|
| | | model.setData(list);
|
| | | model.setMsg("查询失败!");
|
| | | }
|
| | | return model;
|
| | | }
|
| | | //查询管理的机房(左侧导航第四层,查所有的机房,num中存放uid)
|
| | | public ServiceModel serchStationName3(Object obj){
|
| | | List list=((BattInfImpl)dao).serchStationName3(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | | //查询管理的机房(左侧导航第三层,查所有的机房)
|
| | | //查询管理的机房(左侧导航第四层,查所有的机房)
|
| | | public ServiceModel serchStationName3_all(Object obj){
|
| | | List list=((BattInfImpl)dao).serchStationName3_all(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | | //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组,num中存放uid)
|
| | | //根据机房id查询机房下的电池组信息(左侧导航第五层,根据机房查询下面的电池组,num中存放uid)
|
| | | public ServiceModel serchBattByStation(Object obj){
|
| | | List list=((BattInfImpl)dao).serchBattByStation(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | |
| | | }
|
| | | return model;
|
| | | }
|
| | | //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组)
|
| | | //根据机房id查询机房下的电池组信息(左侧导航第五层,根据机房查询下面的电池组)
|
| | | public ServiceModel serchBattByStation_all(Object obj){
|
| | | List list=((BattInfImpl)dao).serchBattByStation_all(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | |
| | | return model;
|
| | | }
|
| | |
|
| | | //首页上根据stationid查询电池组的机历卡
|
| | | public ServiceModel serchBattAllInfoByStationId(Object obj){
|
| | | List list=((BattInfImpl)dao).serchBattAllInfoByStationId(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();
|