| | |
| | | package cn.com.basic.face.service.sqlite;
|
| | |
|
| | | /**
|
| | | * Created by xiuxi on 2017/7/17.
|
| | | */
|
| | | import android.database.Cursor;
|
| | |
|
| | | import org.xutils.http.RequestParams;
|
| | |
|
| | | import cn.com.basic.face.base.Config;
|
| | |
|
| | | public class RegisterDao {
|
| | |
|
| | | public static RegisterDao instance = new RegisterDao();
|
| | | public static RegisterDao getInstance() {
|
| | | return instance;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 访客注册
|
| | | * @param params
|
| | | * @param idCardHeadPhoto
|
| | | * @return
|
| | | */
|
| | | public boolean add(RequestParams params, String idCardHeadPhoto) {
|
| | | return true;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 考勤注册
|
| | | * @param params
|
| | | * @param idCardHeadPhoto
|
| | | * @return
|
| | | */
|
| | | public boolean addAttender(RequestParams params, String idCardHeadPhoto) {
|
| | | return true;
|
| | | }
|
| | |
|
| | | public boolean hasOfflineRegisterData() {
|
| | | Cursor c = Config.sqlMap.getDb().rawQuery("select count(*) from register", new String[]{});
|
| | | c.moveToFirst();
|
| | | return c.getInt(0) > 0 ? true : false;
|
| | | }
|
| | | }
|