| | |
| | | //读取设备参数
|
| | | boolean getdevParam = FBS9100Param_SQL.sendCmdToFBS9100Dev(con_pool,plan.getDev_id(),FBS9100_ComBase.CMD_GetDischargeParm);
|
| | | if(getdevParam){
|
| | | //清除当前设备告警
|
| | | Batt_Discharge_Plan_SQL.clearSameStation(con_pool, plan.getDev_id());
|
| | | if(plan.getDev_id() /100000 == 6185) {
|
| | | //清除当前设备告警
|
| | | Batt_Discharge_Plan_SQL.clearSameStation(con_pool, plan.getDev_id());
|
| | | }
|
| | | //System.out.println("获取放电参数成功");
|
| | | //修改数据库中的放电参数
|
| | | boolean upSetParam = FBS9100Param_SQL.updateFbs9100ParamTable(con_pool, plan);
|
| | |
| | | }
|
| | | Batt_Discharge_Plan_SQL.updateDischargePlan(con_pool,plans);
|
| | | sleep(500);
|
| | | } catch (InterruptedException e) {
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|