Commit ab4e6f7d by 罗翻

搬家前最后一次提交

parent fb6ec686
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea
.DS_Store
/build
/captures
......
......@@ -118,6 +118,7 @@
-keep class com.dayu.base.api.protocol.** { *; }
-keep class com.dayu.message.data.protocol.** { *; }
-keep class com.dayu.order.api.protocol.** { *; }
-keep class com.dayu.order.sqlbean.** { *; }
-keep class com.dayu.provider.event.** { *; }
-keep class com.dayu.usercenter.data.protocol.** { *; }
#-------------------------------------------------------------------------
......
......@@ -25,7 +25,7 @@ public class MainPresenter extends MainContract.Presenter {
/**
* 待接单数目.
*/
public ObservableField<String> tabRecive = new ObservableField("0");
public ObservableField<String> tabRecive = new ObservableField<>("0");
private UserInfo mUser;
private int mAccountId;
private int mSiteId;
......
......@@ -15,10 +15,10 @@ import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Consumer;
/**
* Created by luofan on 17/11/02.
* Created by luofan
* on 17/11/02.
*/
public abstract class BasePresenter<V> {
protected static final String TAG = "BasePresenter";
protected V mView;
protected CompositeDisposable mComDisposable = new CompositeDisposable();
......
package com.dayu.utils;
/**
* Created by luofan on 2017/11/24.
*/
public class InstanceUtil {
/**
* 通过实例工厂去实例化相应类
*
* @param <T> 返回实例的泛型类型
* @return
*/
public static <T> T getInstance(Class clazz) {
try {
return null;
// (T) InstanceFactory.create(clazz);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
}
......@@ -28,8 +28,8 @@ buildscript {
allprojects {
repositories {
jcenter()
mavenCentral()
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com' }
}
......
......@@ -68,7 +68,7 @@ public class ProcessOrderPresenter extends ProcessOrderContract.Presenter {
mOrderInfoDao = GreenDaoManager.getInstance().getmDaoSession().getOrderInfoDao();
mView.showDialog();
getOrderInfo(mOrderId);
Query query = mOrderInfoDao.queryBuilder().where(OrderInfoDao.Properties.Id.eq(mOrderId),
Query<OrderInfo> query = mOrderInfoDao.queryBuilder().where(OrderInfoDao.Properties.Id.eq(mOrderId),
OrderInfoDao.Properties.EngineerId.eq(mAccountId))
.build();
List<OrderInfo> list = query.list();
......
......@@ -22,7 +22,6 @@ import com.umeng.analytics.MobclickAgent;
* Created by luofan
* on 2017/11/8.
*/
public class LoginPresenter extends LoginContract.Presenter {
public ObservableField<String> userName = new ObservableField<>();
public ObservableField<String> password = new ObservableField<>();
......
......@@ -7,7 +7,8 @@ import com.dayu.usercenter.presenter.accountbalance.AccountBalanceContract;
import com.dayu.usercenter.presenter.accountbalance.AccountBalancePresenter;
/**
* Created by luofan on 2017/11/1.
* Created by luofan
* on 2017/11/1.
*/
public class AccountBalanceActivity extends BaseActivity<AccountBalancePresenter, AccountbalanceLayoutBinding>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment