xuxiuxi
2017-07-23 3ad6cbe55a4c63f4b64f6c999bf3db0a2b0187a4
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/sqlite/RegisterDao.java
@@ -31,7 +31,7 @@
     * 访客注册
     * @return
     */
    public List<CheckInQueryItem> add(Register item) {
    public long add(Register item) {
        ContentValues contentValues = new ContentValues();
        contentValues.put("register_id",item.getRegisterId());
        contentValues.put("username",item.getUsername());
@@ -40,7 +40,7 @@
        contentValues.put("country_id", item.getCountryId());
        contentValues.put("province", item.getProvince());
        contentValues.put("city", item.getCity());
        contentValues.put("companyId", item.getCompanyId());
        contentValues.put("company_id", item.getCompanyId());
        contentValues.put("company", item.getCompany());
        contentValues.put("birthday", item.getBirthday());
        contentValues.put("tel", item.getTel());
@@ -69,8 +69,7 @@
        contentValues.put("raw_surveillance_photo_height", item.getRawSurveillancePhotoHeight());
        contentValues.put("create_time", item.getCreateTime());
        long registerId = MainActivity.getInstance().db.insert("register", "", contentValues);
        List<CheckInQueryItem> checkInQueryItemList = (List<CheckInQueryItem>)CheckInDao.getInstance().findCheckInLeftListById(registerId).getData();
        return checkInQueryItemList;
        return registerId;
    }
    /**