| | |
| | | if(list!=null&&list.size()>0){
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | | Fbs9100s_dfu_state dfu=list.get(i);
|
| | | String sql="update db_ram_db.tb_fbs9100s_dfu_state set dfu_en=true,dfu_wr_stat=1, dfu_data_blocknum=1,dfu_file="+dfu.getDfu_file()+" where dev_id="+dfu.getDev_id();
|
| | | String sql="update db_ram_db.tb_fbs9100s_dfu_state set dfu_en=true,dfu_wr_stat=1, dfu_data_blocknum=1,dfu_file='"+dfu.getDfu_file()+"' where dev_id="+dfu.getDev_id();
|
| | | sql_str.add(sql);
|
| | | {
|
| | | String msg="升级"+dfu.getDev_id()+"设备";
|
| | |
| | | public static void main(String[] args) {
|
| | | Fbs9100s_dfu_stateImpl fimpl=new Fbs9100s_dfu_stateImpl();
|
| | | List list=new ArrayList();
|
| | | list.add(910000002);
|
| | | list.add(910000577);
|
| | | list.add(910000534);
|
| | | list.add(910000001);
|
| | | /*list.add(910000577);
|
| | | list.add(910000534);*/
|
| | | BattInf binf=new BattInf();
|
| | | binf.setNum(1);
|
| | | binf.setStationName("广西省");
|