ADD file via upload

master
pybple5kv 3 years ago
parent c3248699cf
commit 632886f2b1

@ -0,0 +1,47 @@
package com.example;
import com.example.bean.QuestBean;
import com.example.greendao.QuestBeanDao;
public class LoveDao {
/**
*
*
* @param questBean
*/
public static void insertLove(QuestBean questBean) {
MyApplication.getDaoInstant().getQuestBeanDao().insertOrReplace(questBean);
}
/**
*
*
* @param id
*/
// public static void deleteLove(long id) {
// MyApplication.getDaoInstant().getQuestBeanDao().deleteByKey(id);
// }
/**
*
*
* @param shop
*/
public static void updateLove(QuestBean shop) {
MyApplication.getDaoInstant().getQuestBeanDao().update(shop);
}
/**
* id=id
*
* @return
*/
public static QuestBean queryLove(String id) {
return MyApplication.getDaoInstant().getQuestBeanDao().queryBuilder().where(QuestBeanDao.Properties.Id.eq(id)).list().get(0);
}
}
Loading…
Cancel
Save