| | |
| | | import cn.com.basic.face.discern.common.CommonVariables;
|
| | | import cn.com.basic.face.discern.entity.Dictionary;
|
| | |
|
| | | import static cn.com.basic.face.discern.entity.Register.FieldNames.company;
|
| | |
|
| | | /**
|
| | | * 数据字典Dao
|
| | | */
|
| | |
| | | dic.setOrderBy(c.getString(c.getColumnIndex("order_by")));
|
| | | dic.setPid(c.getString(c.getColumnIndex("pid")));
|
| | | dic.setRemark(c.getString(c.getColumnIndex("remark")));
|
| | | dic.setIsValid(c.getString(c.getColumnIndex("is_valid")));
|
| | | dic.setCreateTime(c.getString(c.getColumnIndex("create_time")));
|
| | | result.add(dic);
|
| | | }
|
| | | return result;
|
| | |
| | | public int getSynDataCount(){
|
| | | String sql="select count(*) from dictionary where is_synchron='N' ";
|
| | | Cursor c =MainActivity.getInstance().db.rawQuery(sql,new String[]{});
|
| | | return c.getCount();
|
| | | c.moveToFirst();
|
| | | return c.getInt(0);
|
| | | }
|
| | |
|
| | | }
|