|
@@ -12,7 +12,9 @@ import com.tofly.yxpc.R;
|
|
|
import com.tofly.yxpc.base.MyApp;
|
|
|
import com.tofly.yxpc.base.NetWorkUrl;
|
|
|
import com.tofly.yxpc.databinding.FragmentMyBinding;
|
|
|
+import com.tofly.yxpc.entity.BaseUpdataEntity;
|
|
|
import com.tofly.yxpc.entity.WaterMeterEntity;
|
|
|
+import com.tofly.yxpc.greenDao.BaseUpdataEntityDao;
|
|
|
import com.tofly.yxpc.greenDao.WaterMeterEntityDao;
|
|
|
import com.tofly.yxpc.ui.activity.AboutSystemActivity;
|
|
|
import com.tofly.yxpc.ui.activity.LoginActivity;
|
|
@@ -73,6 +75,9 @@ public class MeFragment extends LatteDelegate {
|
|
|
message = "是否确定清理本地缓存?";
|
|
|
}
|
|
|
DialogUtils.showDialog(requireContext(), "提示", message, false, (dialog, which) -> {
|
|
|
+ List<BaseUpdataEntity> baseUpdataEntities = DaoUtilsStore.getInstance().getBaseUpdataEntityDbUtils().queryByQueryBuilder(
|
|
|
+ BaseUpdataEntityDao.Properties.CheckId.eq(AccountManager.getUserId()));
|
|
|
+ DaoUtilsStore.getInstance().getBaseUpdataEntityDbUtils().delete(baseUpdataEntities);
|
|
|
DaoUtilsStore.getInstance().getWaterMeterEntityDbUtils().delete(list);
|
|
|
});
|
|
|
}
|