| | |
| | |
|
| | |
|
| | | //删除已经上传到服务器的同步数据
|
| | | public void delDevice(String deviceCompanyId){
|
| | | String sql="delete from device where is_synchron='N' and device_company_id="+Integer.parseInt(deviceCompanyId);
|
| | | public void delDevice(){
|
| | | String sql="delete from device where is_synchron='N'";
|
| | | MainActivity.getInstance().db.execSQL(sql);
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | | //获取未同步数据总数
|
| | | public int getSynDataCount(){
|
| | | String sql="select count(*) from device where is_synchron='N' ";
|
| | | Cursor c =MainActivity.getInstance().db.rawQuery(sql,new String[]{});
|
| | | c.moveToFirst();
|
| | | return c.getInt(0);
|
| | | }
|
| | |
|
| | | }
|