初始化
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
package com.arpa.hndahesudintocctmsdriver;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.util.Log;
|
||||
|
||||
import com.alct.mdp.MDPLocationCollectionManager;
|
||||
import com.arpa.hndahesudintocctmsdriver.report.JTTProcess;
|
||||
import com.esign.esignsdk.EsignSdk;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.umeng.commonsdk.UMConfigure;
|
||||
|
||||
import cn.jiguang.verifysdk.api.JVerificationInterface;
|
||||
|
||||
public class App extends Application {
|
||||
|
||||
String key="f9d35b1133cff1f6e3960c89b249e03f";
|
||||
String license="eQQm7gCZPF58Cy4i9OGkqSdFdDnFF0VSUVpw92WcrNLx7zVbpGJwjQhnKL8b0piApIbOTog5log/S1ZIxoUQogueaG84BQlJfRwKjtvpVWImlmhthQyQd2ogRqGkm3rkVGeG9wK49fzP3g5AtghNF05je2rQWd/Tyy/wutXq0e0rvR/bEckFaZ4BesQaYd0MejFC3lA8BjxNWiuvCKs15e1aRUOU5vwN5wsaTsTHokBIYhioSxOoGgHn6NrX6K9Dsl9uTWZ2dOVK/jEzYsNt6E/1Ww2ck1XmIWdRCQNmCpgikuPT0ACAL/w7UaRoWzM/Pm+akWqyp+bEavHT1Vhug3HAHOSGfOghGw2NerNlyEg8h6cVneMx+TsidnQ0ZG29aqdcLBRsvi26BYJJCA8+0WXjT+73RhS8g97Rfb6h0/W//5Az8UNZ6dp6XvUi2EJXQRhY5hkHiuwWT2W1ik+6wiiURkkrBACKbO1kmZWbVpRIe3Y3pcr3Q/V+oAcyPHRXCxu+JIe/j40/epuRrCyf8yvKsZ2Dnkl4QQmlwNqlW1F/arS+19G6zOG+6VKwtbI01A1R9SU1TYOA5UL/Qpo6Gyi3Ec3/irgQlzkq1rZrOIS4oo6tghul/zcG8rjno3luqHYwIZf8vAVfpwBesIVcANCOIuTRPU3A8vdmUoK/twGIchPapmjlAzLhjZ4KoAbNeMsWu3sN6kF44xofLMghos2X8OtvUA9CMD37v2FpYoM75qavyoivsBAbb6mG0p5TmkZ37BxfaGGP6SYrCa9ygQ==";
|
||||
|
||||
public final static int APP_STATUS_KILLED = 0; // 表示应用是被杀死后在启动的
|
||||
public final static int APP_STATUS_NORMAL = 1; // 表示应用时正常的启动流程
|
||||
public static int APP_STATUS = APP_STATUS_KILLED; // 记录App的启动状态
|
||||
private Context con;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
con=getBaseContext();
|
||||
String state= SPUtil.getSP(con,"state_data","authorization_state");
|
||||
if("1".equals(state)){
|
||||
try{
|
||||
Context context = getApplicationContext();
|
||||
Resources res = getResources();
|
||||
Configuration config = new Configuration();
|
||||
config.setToDefaults();
|
||||
res.updateConfiguration(config, res.getDisplayMetrics());
|
||||
//安联初始化
|
||||
if (context.getPackageName().equals(getCurrentProcessName(context))) {
|
||||
//Log.e("--使用的测试环境--",BuildConfig.OPEN_API_URL);
|
||||
MDPLocationCollectionManager.initialize(this,"https://oapi.alct56.com");
|
||||
}
|
||||
//在使用SDK各组件之前初始化context信息,传入ApplicationContext
|
||||
// 路由初始化
|
||||
JVerificationInterface.setDebugMode(true);
|
||||
JVerificationInterface.init(this, 5000, (code, msg) -> Log.d("tag", "code = " + code + " msg = " + msg));
|
||||
//友盟
|
||||
//设置非debug版本开启
|
||||
if(!isDebugVersion(con)){
|
||||
youmenginit();
|
||||
}
|
||||
EsignSdk.getInstance().init(key,license);
|
||||
JTTProcess.init(this);
|
||||
//QupaiHttpFinal.getInstance().initOkHttpFinal();
|
||||
}catch (Exception e){
|
||||
Log.e("-error-","初始化失败sss");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void youmenginit(){
|
||||
//设置LOG开关,默认为false
|
||||
UMConfigure.setLogEnabled(true);
|
||||
//友盟预初始化
|
||||
UMConfigure.preInit(getApplicationContext(),"60fbfe87ff4d74541c81e01a","Umeng");
|
||||
/**
|
||||
* 打开app首次隐私协议授权,以及sdk初始化,判断逻辑请查看SplashTestActivity
|
||||
*/
|
||||
//判断是否同意隐私协议,uminit为1时为已经同意,直接初始化umsdk
|
||||
// if(SPUtil.getSP(getAppContext(),"umeng","uminit").equals("1")){
|
||||
//友盟正式初始化
|
||||
UMConfigure.init(getApplicationContext(),UMConfigure.DEVICE_TYPE_PHONE,"");
|
||||
}
|
||||
|
||||
private static String getCurrentProcessName(Context context) {
|
||||
String currentProcessName = "";
|
||||
int pid = android.os.Process.myPid();
|
||||
ActivityManager mActivityManager = (ActivityManager) context .getSystemService(Context.ACTIVITY_SERVICE);
|
||||
if (mActivityManager.getRunningAppProcesses() != null && mActivityManager.getRunningAppProcesses().size() > 0) {
|
||||
for (ActivityManager.RunningAppProcessInfo appProcess : mActivityManager.getRunningAppProcesses()) {
|
||||
if (appProcess.pid == pid) {
|
||||
currentProcessName = appProcess.processName;
|
||||
}
|
||||
}
|
||||
}
|
||||
return currentProcessName;
|
||||
}
|
||||
|
||||
private static boolean isDebugVersion(Context context) {
|
||||
try {
|
||||
ApplicationInfo info = context.getApplicationInfo();
|
||||
return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,281 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class BankCardListBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private List<RecordsDTO> records;
|
||||
private int total;
|
||||
private int size;
|
||||
private int current;
|
||||
private List<?> orders;
|
||||
private boolean searchCount;
|
||||
private int pages;
|
||||
|
||||
public List<RecordsDTO> getRecords() {
|
||||
if (records == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return records;
|
||||
}
|
||||
|
||||
public void setRecords(List<RecordsDTO> records) {
|
||||
this.records = records;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getCurrent() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public void setCurrent(int current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
public List<?> getOrders() {
|
||||
if (orders == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return orders;
|
||||
}
|
||||
|
||||
public void setOrders(List<?> orders) {
|
||||
this.orders = orders;
|
||||
}
|
||||
|
||||
public boolean isSearchCount() {
|
||||
return searchCount;
|
||||
}
|
||||
|
||||
public void setSearchCount(boolean searchCount) {
|
||||
this.searchCount = searchCount;
|
||||
}
|
||||
|
||||
public int getPages() {
|
||||
return pages;
|
||||
}
|
||||
|
||||
public void setPages(int pages) {
|
||||
this.pages = pages;
|
||||
}
|
||||
|
||||
public static class RecordsDTO {
|
||||
private int id;
|
||||
private String bankId;
|
||||
private String bankName;
|
||||
private String cardNo;
|
||||
private String bankImgUrl;
|
||||
private int cardType;
|
||||
private int auditStatus;
|
||||
private int createUser;
|
||||
private String createUserName;
|
||||
private String createTime;
|
||||
private String openBank;
|
||||
private String companyName;
|
||||
private String companyCode;
|
||||
private String address;
|
||||
private String phone;
|
||||
private int cardUserType;
|
||||
private String userCompany;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getBankId() {
|
||||
return bankId == null ? "" : bankId;
|
||||
}
|
||||
|
||||
public void setBankId(String bankId) {
|
||||
this.bankId = bankId;
|
||||
}
|
||||
|
||||
public String getBankName() {
|
||||
return bankName == null ? "" : bankName;
|
||||
}
|
||||
|
||||
public void setBankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return cardNo == null ? "" : cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getBankImgUrl() {
|
||||
return bankImgUrl == null ? "" : bankImgUrl;
|
||||
}
|
||||
|
||||
public void setBankImgUrl(String bankImgUrl) {
|
||||
this.bankImgUrl = bankImgUrl;
|
||||
}
|
||||
|
||||
public int getCardType() {
|
||||
return cardType;
|
||||
}
|
||||
|
||||
public void setCardType(int cardType) {
|
||||
this.cardType = cardType;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public int getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(int createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName == null ? "" : createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime == null ? "" : createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getOpenBank() {
|
||||
return openBank == null ? "" : openBank;
|
||||
}
|
||||
|
||||
public void setOpenBank(String openBank) {
|
||||
this.openBank = openBank;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName == null ? "" : companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode == null ? "" : companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone == null ? "" : phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public int getCardUserType() {
|
||||
return cardUserType;
|
||||
}
|
||||
|
||||
public void setCardUserType(int cardUserType) {
|
||||
this.cardUserType = cardUserType;
|
||||
}
|
||||
|
||||
public String getUserCompany() {
|
||||
return userCompany == null ? "" : userCompany;
|
||||
}
|
||||
|
||||
public void setUserCompany(String userCompany) {
|
||||
this.userCompany = userCompany;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/7 14:28
|
||||
* @description:基础bean
|
||||
*/
|
||||
public class BaseBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private Object data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Object data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 10:23
|
||||
* @description:
|
||||
*/
|
||||
public class BusinessBean {
|
||||
|
||||
private int code;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String openshopid;
|
||||
private String name;
|
||||
private String branch_name;
|
||||
private String city;
|
||||
private String address;
|
||||
private List<String> categories;
|
||||
private double avg_rating;
|
||||
private int ugc_count;
|
||||
private int avg_price;
|
||||
private double taste;
|
||||
private double decoration;
|
||||
private double service;
|
||||
private String photo_url;
|
||||
private String business_url;
|
||||
|
||||
public String getOpenshopid() {
|
||||
return openshopid == null ? "" : openshopid;
|
||||
}
|
||||
|
||||
public void setOpenshopid(String openshopid) {
|
||||
this.openshopid = openshopid;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getBranch_name() {
|
||||
return branch_name == null ? "" : branch_name;
|
||||
}
|
||||
|
||||
public void setBranch_name(String branch_name) {
|
||||
this.branch_name = branch_name;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city == null ? "" : city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public List<String> getCategories() {
|
||||
if (categories == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return categories;
|
||||
}
|
||||
|
||||
public void setCategories(List<String> categories) {
|
||||
this.categories = categories;
|
||||
}
|
||||
|
||||
public double getAvg_rating() {
|
||||
return avg_rating;
|
||||
}
|
||||
|
||||
public void setAvg_rating(double avg_rating) {
|
||||
this.avg_rating = avg_rating;
|
||||
}
|
||||
|
||||
public int getUgc_count() {
|
||||
return ugc_count;
|
||||
}
|
||||
|
||||
public void setUgc_count(int ugc_count) {
|
||||
this.ugc_count = ugc_count;
|
||||
}
|
||||
|
||||
public int getAvg_price() {
|
||||
return avg_price;
|
||||
}
|
||||
|
||||
public void setAvg_price(int avg_price) {
|
||||
this.avg_price = avg_price;
|
||||
}
|
||||
|
||||
public double getTaste() {
|
||||
return taste;
|
||||
}
|
||||
|
||||
public void setTaste(double taste) {
|
||||
this.taste = taste;
|
||||
}
|
||||
|
||||
public double getDecoration() {
|
||||
return decoration;
|
||||
}
|
||||
|
||||
public void setDecoration(double decoration) {
|
||||
this.decoration = decoration;
|
||||
}
|
||||
|
||||
public double getService() {
|
||||
return service;
|
||||
}
|
||||
|
||||
public void setService(double service) {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
public String getPhoto_url() {
|
||||
return photo_url == null ? "" : photo_url;
|
||||
}
|
||||
|
||||
public void setPhoto_url(String photo_url) {
|
||||
this.photo_url = photo_url;
|
||||
}
|
||||
|
||||
public String getBusiness_url() {
|
||||
return business_url == null ? "" : business_url;
|
||||
}
|
||||
|
||||
public void setBusiness_url(String business_url) {
|
||||
this.business_url = business_url;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 10:22
|
||||
* @description:
|
||||
*/
|
||||
public class BusinessListBean {
|
||||
|
||||
private int code;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int total_count;
|
||||
private int page;
|
||||
private List<ResultsDTO> results;
|
||||
|
||||
public int getTotal_count() {
|
||||
return total_count;
|
||||
}
|
||||
|
||||
public void setTotal_count(int total_count) {
|
||||
this.total_count = total_count;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public List<ResultsDTO> getResults() {
|
||||
if (results == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
public void setResults(List<ResultsDTO> results) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
public static class ResultsDTO {
|
||||
private String openshopid;
|
||||
private String name;
|
||||
private String branch_name;
|
||||
|
||||
public String getOpenshopid() {
|
||||
return openshopid == null ? "" : openshopid;
|
||||
}
|
||||
|
||||
public void setOpenshopid(String openshopid) {
|
||||
this.openshopid = openshopid;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getBranch_name() {
|
||||
return branch_name == null ? "" : branch_name;
|
||||
}
|
||||
|
||||
public void setBranch_name(String branch_name) {
|
||||
this.branch_name = branch_name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/4 14:24
|
||||
* @description:车辆信息详情实体类
|
||||
*/
|
||||
public class CarDelBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private int res;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int auditStatus;
|
||||
private String backImage;
|
||||
private String carImage;
|
||||
private String carNumber;
|
||||
private String frontImage;
|
||||
private int isTrailer;
|
||||
private boolean needRoad;
|
||||
private String nfcId;
|
||||
private String owner;
|
||||
private String roadLicense;
|
||||
private String roadLicensePhoto;
|
||||
private String roadLicenseSend;
|
||||
private String roadLicenseValidity;
|
||||
private String threeImage;
|
||||
private TrailerResVoDTO trailerResVo;
|
||||
private String type;
|
||||
private String vehicleNumber;
|
||||
private String nfcImage;
|
||||
private String registerImage;
|
||||
private String registerNo;
|
||||
private String carEnergyTypValue;
|
||||
private String carPlateColorValue;
|
||||
|
||||
public String getCarPlateColorValue() {
|
||||
return carPlateColorValue;
|
||||
}
|
||||
|
||||
public void setCarPlateColorValue(String carPlateColorValue) {
|
||||
this.carPlateColorValue = carPlateColorValue;
|
||||
}
|
||||
|
||||
public String getCarEnergyTypValue() {
|
||||
return carEnergyTypValue;
|
||||
}
|
||||
|
||||
public void setCarEnergyTypValue(String carEnergyTypValue) {
|
||||
this.carEnergyTypValue = carEnergyTypValue;
|
||||
}
|
||||
|
||||
public String getRegisterNo() {
|
||||
return registerNo;
|
||||
}
|
||||
|
||||
public void setRegisterNo(String registerNo) {
|
||||
this.registerNo = registerNo;
|
||||
}
|
||||
|
||||
public String getNfcImage() {
|
||||
return nfcImage == null ? "" : nfcImage;
|
||||
}
|
||||
|
||||
public void setNfcImage(String nfcImage) {
|
||||
this.nfcImage = nfcImage;
|
||||
}
|
||||
|
||||
public String getRegisterImage() {
|
||||
return registerImage == null ? "" : registerImage;
|
||||
}
|
||||
|
||||
public void setRegisterImage(String registerImage) {
|
||||
this.registerImage = registerImage;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public String getBackImage() {
|
||||
return backImage == null ? "" : backImage;
|
||||
}
|
||||
|
||||
public void setBackImage(String backImage) {
|
||||
this.backImage = backImage;
|
||||
}
|
||||
|
||||
public String getCarImage() {
|
||||
return carImage == null ? "" : carImage;
|
||||
}
|
||||
|
||||
public void setCarImage(String carImage) {
|
||||
this.carImage = carImage;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public String getFrontImage() {
|
||||
return frontImage == null ? "" : frontImage;
|
||||
}
|
||||
|
||||
public void setFrontImage(String frontImage) {
|
||||
this.frontImage = frontImage;
|
||||
}
|
||||
|
||||
public int getIsTrailer() {
|
||||
return isTrailer;
|
||||
}
|
||||
|
||||
public void setIsTrailer(int isTrailer) {
|
||||
this.isTrailer = isTrailer;
|
||||
}
|
||||
|
||||
public boolean isNeedRoad() {
|
||||
return needRoad;
|
||||
}
|
||||
|
||||
public void setNeedRoad(boolean needRoad) {
|
||||
this.needRoad = needRoad;
|
||||
}
|
||||
|
||||
public String getNfcId() {
|
||||
return nfcId == null ? "" : nfcId;
|
||||
}
|
||||
|
||||
public void setNfcId(String nfcId) {
|
||||
this.nfcId = nfcId;
|
||||
}
|
||||
|
||||
public String getOwner() {
|
||||
return owner == null ? "" : owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public String getRoadLicense() {
|
||||
return roadLicense == null ? "" : roadLicense;
|
||||
}
|
||||
|
||||
public void setRoadLicense(String roadLicense) {
|
||||
this.roadLicense = roadLicense;
|
||||
}
|
||||
|
||||
public String getRoadLicensePhoto() {
|
||||
return roadLicensePhoto == null ? "" : roadLicensePhoto;
|
||||
}
|
||||
|
||||
public void setRoadLicensePhoto(String roadLicensePhoto) {
|
||||
this.roadLicensePhoto = roadLicensePhoto;
|
||||
}
|
||||
|
||||
public String getRoadLicenseSend() {
|
||||
return roadLicenseSend == null ? "" : roadLicenseSend;
|
||||
}
|
||||
|
||||
public void setRoadLicenseSend(String roadLicenseSend) {
|
||||
this.roadLicenseSend = roadLicenseSend;
|
||||
}
|
||||
|
||||
public String getRoadLicenseValidity() {
|
||||
return roadLicenseValidity == null ? "" : roadLicenseValidity;
|
||||
}
|
||||
|
||||
public void setRoadLicenseValidity(String roadLicenseValidity) {
|
||||
this.roadLicenseValidity = roadLicenseValidity;
|
||||
}
|
||||
|
||||
public String getThreeImage() {
|
||||
return threeImage == null ? "" : threeImage;
|
||||
}
|
||||
|
||||
public void setThreeImage(String threeImage) {
|
||||
this.threeImage = threeImage;
|
||||
}
|
||||
|
||||
public TrailerResVoDTO getTrailerResVo() {
|
||||
return trailerResVo;
|
||||
}
|
||||
|
||||
public void setTrailerResVo(TrailerResVoDTO trailerResVo) {
|
||||
this.trailerResVo = trailerResVo;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type == null ? "" : type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getVehicleNumber() {
|
||||
return vehicleNumber == null ? "" : vehicleNumber;
|
||||
}
|
||||
|
||||
public void setVehicleNumber(String vehicleNumber) {
|
||||
this.vehicleNumber = vehicleNumber;
|
||||
}
|
||||
|
||||
public static class TrailerResVoDTO {
|
||||
private String backImage;
|
||||
private String carNumber;
|
||||
private String frontImage;
|
||||
private String owner;
|
||||
private String threeImage;
|
||||
private String type;
|
||||
private String vehicleNumber;
|
||||
|
||||
public String getBackImage() {
|
||||
return backImage == null ? "" : backImage;
|
||||
}
|
||||
|
||||
public void setBackImage(String backImage) {
|
||||
this.backImage = backImage;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public String getFrontImage() {
|
||||
return frontImage == null ? "" : frontImage;
|
||||
}
|
||||
|
||||
public void setFrontImage(String frontImage) {
|
||||
this.frontImage = frontImage;
|
||||
}
|
||||
|
||||
public String getOwner() {
|
||||
return owner == null ? "" : owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public String getThreeImage() {
|
||||
return threeImage == null ? "" : threeImage;
|
||||
}
|
||||
|
||||
public void setThreeImage(String threeImage) {
|
||||
this.threeImage = threeImage;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type == null ? "" : type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getVehicleNumber() {
|
||||
return vehicleNumber == null ? "" : vehicleNumber;
|
||||
}
|
||||
|
||||
public void setVehicleNumber(String vehicleNumber) {
|
||||
this.vehicleNumber = vehicleNumber;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/4 14:24
|
||||
* @description:车辆列表实体类
|
||||
*/
|
||||
|
||||
public class CarListBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private List<DataDTO> data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<DataDTO> getData() {
|
||||
if (data == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String carNumber;
|
||||
private String carId;
|
||||
private String type;
|
||||
private Object carImage;
|
||||
private String owner;
|
||||
private String vehicleNumber;
|
||||
private int auditStatus;
|
||||
private String drivingLicenseValidity;
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public String getCarId() {
|
||||
return carId == null ? "" : carId;
|
||||
}
|
||||
|
||||
public void setCarId(String carId) {
|
||||
this.carId = carId;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type == null ? "" : type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Object getCarImage() {
|
||||
return carImage;
|
||||
}
|
||||
|
||||
public void setCarImage(Object carImage) {
|
||||
this.carImage = carImage;
|
||||
}
|
||||
|
||||
public String getOwner() {
|
||||
return owner == null ? "" : owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public String getVehicleNumber() {
|
||||
return vehicleNumber == null ? "" : vehicleNumber;
|
||||
}
|
||||
|
||||
public void setVehicleNumber(String vehicleNumber) {
|
||||
this.vehicleNumber = vehicleNumber;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public String getDrivingLicenseValidity() {
|
||||
return drivingLicenseValidity == null ? "" : drivingLicenseValidity;
|
||||
}
|
||||
|
||||
public void setDrivingLicenseValidity(String drivingLicenseValidity) {
|
||||
this.drivingLicenseValidity = drivingLicenseValidity;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/25 20:04
|
||||
* @description:
|
||||
*/
|
||||
public class CarZhengBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private int res;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int carId;
|
||||
|
||||
public int getCarId() {
|
||||
return carId;
|
||||
}
|
||||
|
||||
public void setCarId(int carId) {
|
||||
this.carId = carId;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/26 17:44
|
||||
* @description:
|
||||
*/
|
||||
public class ChangeRecordBean {
|
||||
|
||||
private int code;
|
||||
private List<DataDTO> data;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public List<DataDTO> getData() {
|
||||
if (data == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
|
||||
private String balanceMonty;
|
||||
private String createTime;
|
||||
private String money;
|
||||
private String name;
|
||||
private String status;
|
||||
private String gldYldAmt;
|
||||
private String charges;
|
||||
|
||||
public String getGldYldAmt() {
|
||||
return gldYldAmt;
|
||||
}
|
||||
|
||||
public void setGldYldAmt(String gldYldAmt) {
|
||||
this.gldYldAmt = gldYldAmt;
|
||||
}
|
||||
|
||||
public String getCharges() {
|
||||
return charges;
|
||||
}
|
||||
|
||||
public void setCharges(String charges) {
|
||||
this.charges = charges;
|
||||
}
|
||||
|
||||
public String getBalanceMonty() {
|
||||
return balanceMonty == null ? "" : balanceMonty;
|
||||
}
|
||||
|
||||
public void setBalanceMonty(String balanceMonty) {
|
||||
this.balanceMonty = balanceMonty;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime == null ? "" : createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getMoney() {
|
||||
return money == null ? "" : money;
|
||||
}
|
||||
|
||||
public void setMoney(String money) {
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status == null ? "" : status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/30 19:48
|
||||
* @description:
|
||||
*/
|
||||
public class ComplaintBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private List<DataDTO> data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<DataDTO> getData() {
|
||||
if (data == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int waybillId;
|
||||
private String content;
|
||||
private Object listImgUrl;
|
||||
private int type;
|
||||
private int status;
|
||||
private String handleContent;
|
||||
private int handleUser;
|
||||
private String handleTime;
|
||||
private int appraiserId;
|
||||
private Object folderId;
|
||||
|
||||
public int getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(int waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content == null ? "" : content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public Object getListImgUrl() {
|
||||
return listImgUrl;
|
||||
}
|
||||
|
||||
public void setListImgUrl(Object listImgUrl) {
|
||||
this.listImgUrl = listImgUrl;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getHandleContent() {
|
||||
return handleContent == null ? "" : handleContent;
|
||||
}
|
||||
|
||||
public void setHandleContent(String handleContent) {
|
||||
this.handleContent = handleContent;
|
||||
}
|
||||
|
||||
public int getHandleUser() {
|
||||
return handleUser;
|
||||
}
|
||||
|
||||
public void setHandleUser(int handleUser) {
|
||||
this.handleUser = handleUser;
|
||||
}
|
||||
|
||||
public String getHandleTime() {
|
||||
return handleTime == null ? "" : handleTime;
|
||||
}
|
||||
|
||||
public void setHandleTime(String handleTime) {
|
||||
this.handleTime = handleTime;
|
||||
}
|
||||
|
||||
public int getAppraiserId() {
|
||||
return appraiserId;
|
||||
}
|
||||
|
||||
public void setAppraiserId(int appraiserId) {
|
||||
this.appraiserId = appraiserId;
|
||||
}
|
||||
|
||||
public Object getFolderId() {
|
||||
return folderId;
|
||||
}
|
||||
|
||||
public void setFolderId(Object folderId) {
|
||||
this.folderId = folderId;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/11 11:53
|
||||
* @description:
|
||||
*/
|
||||
public class ConfigBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
|
||||
private String serviceMobile;
|
||||
private String privateUrl;
|
||||
private String userUrl;
|
||||
private String contractUrl;
|
||||
private String startImageUrl;
|
||||
private String securityUrl;
|
||||
|
||||
public String getServiceMobile() {
|
||||
return serviceMobile == null ? "" : serviceMobile;
|
||||
}
|
||||
|
||||
public void setServiceMobile(String serviceMobile) {
|
||||
this.serviceMobile = serviceMobile;
|
||||
}
|
||||
|
||||
public String getPrivateUrl() {
|
||||
return privateUrl == null ? "" : privateUrl;
|
||||
}
|
||||
|
||||
public void setPrivateUrl(String privateUrl) {
|
||||
this.privateUrl = privateUrl;
|
||||
}
|
||||
|
||||
public String getUserUrl() {
|
||||
return userUrl == null ? "" : userUrl;
|
||||
}
|
||||
|
||||
public void setUserUrl(String userUrl) {
|
||||
this.userUrl = userUrl;
|
||||
}
|
||||
|
||||
public String getContractUrl() {
|
||||
return contractUrl == null ? "" : contractUrl;
|
||||
}
|
||||
|
||||
public void setContractUrl(String contractUrl) {
|
||||
this.contractUrl = contractUrl;
|
||||
}
|
||||
|
||||
public String getStartImageUrl() {
|
||||
return startImageUrl == null ? "" : startImageUrl;
|
||||
}
|
||||
|
||||
public void setStartImageUrl(String startImageUrl) {
|
||||
this.startImageUrl = startImageUrl;
|
||||
}
|
||||
|
||||
public String getSecurityUrl() {
|
||||
return securityUrl == null ? "" : securityUrl;
|
||||
}
|
||||
|
||||
public void setSecurityUrl(String securityUrl) {
|
||||
this.securityUrl = securityUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @ClassName ConfigRecordBean
|
||||
* @Author 用户
|
||||
* @Date 2022/8/2 16:53
|
||||
* @Description TODO
|
||||
*/
|
||||
public class ConfigRecordBean {
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
|
||||
private String chargeRate;
|
||||
private String createTime;
|
||||
private String id;
|
||||
private String minCharge;
|
||||
private String chargeNum;
|
||||
private String amount;
|
||||
|
||||
public String getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(String amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public String getChargeNum() {
|
||||
return chargeNum;
|
||||
}
|
||||
|
||||
public void setChargeNum(String chargeNum) {
|
||||
this.chargeNum = chargeNum;
|
||||
}
|
||||
|
||||
public String getChargeRate() {
|
||||
return chargeRate;
|
||||
}
|
||||
|
||||
public void setChargeRate(String chargeRate) {
|
||||
this.chargeRate = chargeRate;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMinCharge() {
|
||||
return minCharge;
|
||||
}
|
||||
|
||||
public void setMinCharge(String minCharge) {
|
||||
this.minCharge = minCharge;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/3 16:28
|
||||
* @description:
|
||||
*/
|
||||
public class ContractsBean {
|
||||
|
||||
private int code;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
private DataDTO data;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String bidsSnglFlgCd;
|
||||
private String childAcctNo;
|
||||
|
||||
public String getBidsSnglFlgCd() {
|
||||
return bidsSnglFlgCd == null ? "" : bidsSnglFlgCd;
|
||||
}
|
||||
|
||||
public void setBidsSnglFlgCd(String bidsSnglFlgCd) {
|
||||
this.bidsSnglFlgCd = bidsSnglFlgCd;
|
||||
}
|
||||
|
||||
public String getChildAcctNo() {
|
||||
return childAcctNo == null ? "" : childAcctNo;
|
||||
}
|
||||
|
||||
public void setChildAcctNo(String childAcctNo) {
|
||||
this.childAcctNo = childAcctNo;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import com.github.gzuliyujiang.wheelview.contract.TextProvider;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName DicBean
|
||||
* @Author 用户
|
||||
* @Date 2022/4/24 9:31
|
||||
* @Description TODO
|
||||
*/
|
||||
public class DicBean implements Serializable {
|
||||
private int code;
|
||||
private ArrayList<DataDTO> data;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public ArrayList<DataDTO> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(ArrayList<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO implements TextProvider {
|
||||
private String name;
|
||||
private String type;
|
||||
private String value;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String provideText() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,872 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
public class DriverAuthDataBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private int userId;
|
||||
private Object contactName;
|
||||
private String contactPhone;
|
||||
private String idcard;
|
||||
private String idcardValidity;
|
||||
private String dirverAllowType;
|
||||
private int idcardPhoto;
|
||||
private int idcardBackPhoto;
|
||||
private Object idcardPhotoHold;
|
||||
private String idcardAddress;
|
||||
private String idcardName;
|
||||
private int idcardSex;
|
||||
private int idCardStatus;
|
||||
private int driverLicenseStatus;
|
||||
private int qualificationCertificateStatus;
|
||||
private String idCardReason;
|
||||
private String driverLicenseReason;
|
||||
private String qualificationCertificateReason;
|
||||
private Object qualificationCertificate;
|
||||
private Object qualificationCertificateValidity;
|
||||
private Object qualificationCertificatePhoto;
|
||||
private String driverLicense;
|
||||
private String driverLicenseValidity;
|
||||
private String archivesName;
|
||||
private String driverLicenseName;
|
||||
private String allowType;
|
||||
private String driverLicenseFirstTime;
|
||||
private int driverLicensePhoto;
|
||||
private int driverLicenseBackPhoto;
|
||||
private Object driverLicenseType;
|
||||
private Object driverPhoto;
|
||||
private Object license;
|
||||
private Object licenseValidity;
|
||||
private Object licensePhoto;
|
||||
private int auditStatus;
|
||||
private Object reason;
|
||||
private String applyTime;
|
||||
private String auditTime;
|
||||
private Object isCarOwner;
|
||||
private Object carOwnerName;
|
||||
private Object carOwnerIdcard;
|
||||
private Object carOwnerIdcardValidity;
|
||||
private Object carOwnerIdcardPhoto;
|
||||
private Object carOwnerIdcardPhotoBack;
|
||||
private Object carOwnerIdcardPhotoHold;
|
||||
private Object carOwnerBankcardNumber;
|
||||
private Object carOwnerBankcardAddress;
|
||||
private Object carOwnerBankcardPhoto;
|
||||
private Object driverLicenseFrom;
|
||||
private Object driverLicenseIssuingOrg;
|
||||
private int reportStatus;
|
||||
private int disabled;
|
||||
private Object bindStatus;
|
||||
private Object bindCarIds;
|
||||
private Object bindCarList;
|
||||
private Object bindCars;
|
||||
private String rname;
|
||||
private String registerPhone;
|
||||
private String loginPhone;
|
||||
private Object headportrait;
|
||||
private String headportraitUrl;
|
||||
private Object headportraitInfo;
|
||||
private int positiveRate;
|
||||
private int allWaybillCount;
|
||||
private Object updatePhoneTime;
|
||||
private String registerTime;
|
||||
private Object idcardPhotoInfo;
|
||||
private String idcardPhotoUrl;
|
||||
private Object idcardPhotoBackInfo;
|
||||
private String idcardPhotoBackUrl;
|
||||
private Object idcardPhotoHoldInfo;
|
||||
private String idcardPhotoHoldUrl;
|
||||
private Object qualificationCertificatePhotoInfo;
|
||||
private String qualificationCertificatePhotoUrl;
|
||||
private Object driverLicensePhotoInfo;
|
||||
private String driverLicensePhotoUrl;
|
||||
private Object driverPhotoInfo;
|
||||
private String driverPhotoUrl;
|
||||
private Object licensePhotoInfo;
|
||||
private String licensePhotoUrl;
|
||||
private Object carOwnerIdcardPhotoInfo;
|
||||
private String carOwnerIdcardPhotoUrl;
|
||||
private Object carOwnerIdcardPhotoBackInfo;
|
||||
private String carOwnerIdcardPhotoBackUrl;
|
||||
private Object carOwnerIdcardPhotoHoldInfo;
|
||||
private String carOwnerIdcardPhotoHoldUrl;
|
||||
private Object carOwnerBankcardPhotoInfo;
|
||||
private String carOwnerBankcardPhotoUrl;
|
||||
private Object mbindStatus;
|
||||
private Object mreason;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(int userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Object getContactName() {
|
||||
return contactName;
|
||||
}
|
||||
|
||||
public void setContactName(Object contactName) {
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public String getContactPhone() {
|
||||
return contactPhone == null ? "" : contactPhone;
|
||||
}
|
||||
|
||||
public void setContactPhone(String contactPhone) {
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public String getIdcard() {
|
||||
return idcard == null ? "" : idcard;
|
||||
}
|
||||
|
||||
public void setIdcard(String idcard) {
|
||||
this.idcard = idcard;
|
||||
}
|
||||
|
||||
public String getIdcardValidity() {
|
||||
return idcardValidity == null ? "" : idcardValidity;
|
||||
}
|
||||
|
||||
public void setIdcardValidity(String idcardValidity) {
|
||||
this.idcardValidity = idcardValidity;
|
||||
}
|
||||
|
||||
public String getDirverAllowType() {
|
||||
return dirverAllowType == null ? "" : dirverAllowType;
|
||||
}
|
||||
|
||||
public void setDirverAllowType(String dirverAllowType) {
|
||||
this.dirverAllowType = dirverAllowType;
|
||||
}
|
||||
|
||||
public int getIdcardPhoto() {
|
||||
return idcardPhoto;
|
||||
}
|
||||
|
||||
public void setIdcardPhoto(int idcardPhoto) {
|
||||
this.idcardPhoto = idcardPhoto;
|
||||
}
|
||||
|
||||
public int getIdcardBackPhoto() {
|
||||
return idcardBackPhoto;
|
||||
}
|
||||
|
||||
public void setIdcardBackPhoto(int idcardBackPhoto) {
|
||||
this.idcardBackPhoto = idcardBackPhoto;
|
||||
}
|
||||
|
||||
public Object getIdcardPhotoHold() {
|
||||
return idcardPhotoHold;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoHold(Object idcardPhotoHold) {
|
||||
this.idcardPhotoHold = idcardPhotoHold;
|
||||
}
|
||||
|
||||
public String getIdcardAddress() {
|
||||
return idcardAddress == null ? "" : idcardAddress;
|
||||
}
|
||||
|
||||
public void setIdcardAddress(String idcardAddress) {
|
||||
this.idcardAddress = idcardAddress;
|
||||
}
|
||||
|
||||
public String getIdcardName() {
|
||||
return idcardName == null ? "" : idcardName;
|
||||
}
|
||||
|
||||
public void setIdcardName(String idcardName) {
|
||||
this.idcardName = idcardName;
|
||||
}
|
||||
|
||||
public int getIdcardSex() {
|
||||
return idcardSex;
|
||||
}
|
||||
|
||||
public void setIdcardSex(int idcardSex) {
|
||||
this.idcardSex = idcardSex;
|
||||
}
|
||||
|
||||
public int getIdCardStatus() {
|
||||
return idCardStatus;
|
||||
}
|
||||
|
||||
public void setIdCardStatus(int idCardStatus) {
|
||||
this.idCardStatus = idCardStatus;
|
||||
}
|
||||
|
||||
public int getDriverLicenseStatus() {
|
||||
return driverLicenseStatus;
|
||||
}
|
||||
|
||||
public void setDriverLicenseStatus(int driverLicenseStatus) {
|
||||
this.driverLicenseStatus = driverLicenseStatus;
|
||||
}
|
||||
|
||||
public int getQualificationCertificateStatus() {
|
||||
return qualificationCertificateStatus;
|
||||
}
|
||||
|
||||
public void setQualificationCertificateStatus(int qualificationCertificateStatus) {
|
||||
this.qualificationCertificateStatus = qualificationCertificateStatus;
|
||||
}
|
||||
|
||||
public String getIdCardReason() {
|
||||
return idCardReason == null ? "" : idCardReason;
|
||||
}
|
||||
|
||||
public void setIdCardReason(String idCardReason) {
|
||||
this.idCardReason = idCardReason;
|
||||
}
|
||||
|
||||
public String getDriverLicenseReason() {
|
||||
return driverLicenseReason == null ? "" : driverLicenseReason;
|
||||
}
|
||||
|
||||
public void setDriverLicenseReason(String driverLicenseReason) {
|
||||
this.driverLicenseReason = driverLicenseReason;
|
||||
}
|
||||
|
||||
public String getQualificationCertificateReason() {
|
||||
return qualificationCertificateReason == null ? "" : qualificationCertificateReason;
|
||||
}
|
||||
|
||||
public void setQualificationCertificateReason(String qualificationCertificateReason) {
|
||||
this.qualificationCertificateReason = qualificationCertificateReason;
|
||||
}
|
||||
|
||||
public Object getQualificationCertificate() {
|
||||
return qualificationCertificate;
|
||||
}
|
||||
|
||||
public void setQualificationCertificate(Object qualificationCertificate) {
|
||||
this.qualificationCertificate = qualificationCertificate;
|
||||
}
|
||||
|
||||
public Object getQualificationCertificateValidity() {
|
||||
return qualificationCertificateValidity;
|
||||
}
|
||||
|
||||
public void setQualificationCertificateValidity(Object qualificationCertificateValidity) {
|
||||
this.qualificationCertificateValidity = qualificationCertificateValidity;
|
||||
}
|
||||
|
||||
public Object getQualificationCertificatePhoto() {
|
||||
return qualificationCertificatePhoto;
|
||||
}
|
||||
|
||||
public void setQualificationCertificatePhoto(Object qualificationCertificatePhoto) {
|
||||
this.qualificationCertificatePhoto = qualificationCertificatePhoto;
|
||||
}
|
||||
|
||||
public String getDriverLicense() {
|
||||
return driverLicense == null ? "" : driverLicense;
|
||||
}
|
||||
|
||||
public void setDriverLicense(String driverLicense) {
|
||||
this.driverLicense = driverLicense;
|
||||
}
|
||||
|
||||
public String getDriverLicenseValidity() {
|
||||
return driverLicenseValidity == null ? "" : driverLicenseValidity;
|
||||
}
|
||||
|
||||
public void setDriverLicenseValidity(String driverLicenseValidity) {
|
||||
this.driverLicenseValidity = driverLicenseValidity;
|
||||
}
|
||||
|
||||
public String getArchivesName() {
|
||||
return archivesName == null ? "" : archivesName;
|
||||
}
|
||||
|
||||
public void setArchivesName(String archivesName) {
|
||||
this.archivesName = archivesName;
|
||||
}
|
||||
|
||||
public String getDriverLicenseName() {
|
||||
return driverLicenseName == null ? "" : driverLicenseName;
|
||||
}
|
||||
|
||||
public void setDriverLicenseName(String driverLicenseName) {
|
||||
this.driverLicenseName = driverLicenseName;
|
||||
}
|
||||
|
||||
public String getAllowType() {
|
||||
return allowType == null ? "" : allowType;
|
||||
}
|
||||
|
||||
public void setAllowType(String allowType) {
|
||||
this.allowType = allowType;
|
||||
}
|
||||
|
||||
public String getDriverLicenseFirstTime() {
|
||||
return driverLicenseFirstTime == null ? "" : driverLicenseFirstTime;
|
||||
}
|
||||
|
||||
public void setDriverLicenseFirstTime(String driverLicenseFirstTime) {
|
||||
this.driverLicenseFirstTime = driverLicenseFirstTime;
|
||||
}
|
||||
|
||||
public int getDriverLicensePhoto() {
|
||||
return driverLicensePhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhoto(int driverLicensePhoto) {
|
||||
this.driverLicensePhoto = driverLicensePhoto;
|
||||
}
|
||||
|
||||
public int getDriverLicenseBackPhoto() {
|
||||
return driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicenseBackPhoto(int driverLicenseBackPhoto) {
|
||||
this.driverLicenseBackPhoto = driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public Object getDriverLicenseType() {
|
||||
return driverLicenseType;
|
||||
}
|
||||
|
||||
public void setDriverLicenseType(Object driverLicenseType) {
|
||||
this.driverLicenseType = driverLicenseType;
|
||||
}
|
||||
|
||||
public Object getDriverPhoto() {
|
||||
return driverPhoto;
|
||||
}
|
||||
|
||||
public void setDriverPhoto(Object driverPhoto) {
|
||||
this.driverPhoto = driverPhoto;
|
||||
}
|
||||
|
||||
public Object getLicense() {
|
||||
return license;
|
||||
}
|
||||
|
||||
public void setLicense(Object license) {
|
||||
this.license = license;
|
||||
}
|
||||
|
||||
public Object getLicenseValidity() {
|
||||
return licenseValidity;
|
||||
}
|
||||
|
||||
public void setLicenseValidity(Object licenseValidity) {
|
||||
this.licenseValidity = licenseValidity;
|
||||
}
|
||||
|
||||
public Object getLicensePhoto() {
|
||||
return licensePhoto;
|
||||
}
|
||||
|
||||
public void setLicensePhoto(Object licensePhoto) {
|
||||
this.licensePhoto = licensePhoto;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public Object getReason() {
|
||||
return reason;
|
||||
}
|
||||
|
||||
public void setReason(Object reason) {
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
public String getApplyTime() {
|
||||
return applyTime == null ? "" : applyTime;
|
||||
}
|
||||
|
||||
public void setApplyTime(String applyTime) {
|
||||
this.applyTime = applyTime;
|
||||
}
|
||||
|
||||
public String getAuditTime() {
|
||||
return auditTime == null ? "" : auditTime;
|
||||
}
|
||||
|
||||
public void setAuditTime(String auditTime) {
|
||||
this.auditTime = auditTime;
|
||||
}
|
||||
|
||||
public Object getIsCarOwner() {
|
||||
return isCarOwner;
|
||||
}
|
||||
|
||||
public void setIsCarOwner(Object isCarOwner) {
|
||||
this.isCarOwner = isCarOwner;
|
||||
}
|
||||
|
||||
public Object getCarOwnerName() {
|
||||
return carOwnerName;
|
||||
}
|
||||
|
||||
public void setCarOwnerName(Object carOwnerName) {
|
||||
this.carOwnerName = carOwnerName;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcard() {
|
||||
return carOwnerIdcard;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcard(Object carOwnerIdcard) {
|
||||
this.carOwnerIdcard = carOwnerIdcard;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardValidity() {
|
||||
return carOwnerIdcardValidity;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardValidity(Object carOwnerIdcardValidity) {
|
||||
this.carOwnerIdcardValidity = carOwnerIdcardValidity;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardPhoto() {
|
||||
return carOwnerIdcardPhoto;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhoto(Object carOwnerIdcardPhoto) {
|
||||
this.carOwnerIdcardPhoto = carOwnerIdcardPhoto;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardPhotoBack() {
|
||||
return carOwnerIdcardPhotoBack;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoBack(Object carOwnerIdcardPhotoBack) {
|
||||
this.carOwnerIdcardPhotoBack = carOwnerIdcardPhotoBack;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardPhotoHold() {
|
||||
return carOwnerIdcardPhotoHold;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoHold(Object carOwnerIdcardPhotoHold) {
|
||||
this.carOwnerIdcardPhotoHold = carOwnerIdcardPhotoHold;
|
||||
}
|
||||
|
||||
public Object getCarOwnerBankcardNumber() {
|
||||
return carOwnerBankcardNumber;
|
||||
}
|
||||
|
||||
public void setCarOwnerBankcardNumber(Object carOwnerBankcardNumber) {
|
||||
this.carOwnerBankcardNumber = carOwnerBankcardNumber;
|
||||
}
|
||||
|
||||
public Object getCarOwnerBankcardAddress() {
|
||||
return carOwnerBankcardAddress;
|
||||
}
|
||||
|
||||
public void setCarOwnerBankcardAddress(Object carOwnerBankcardAddress) {
|
||||
this.carOwnerBankcardAddress = carOwnerBankcardAddress;
|
||||
}
|
||||
|
||||
public Object getCarOwnerBankcardPhoto() {
|
||||
return carOwnerBankcardPhoto;
|
||||
}
|
||||
|
||||
public void setCarOwnerBankcardPhoto(Object carOwnerBankcardPhoto) {
|
||||
this.carOwnerBankcardPhoto = carOwnerBankcardPhoto;
|
||||
}
|
||||
|
||||
public Object getDriverLicenseFrom() {
|
||||
return driverLicenseFrom;
|
||||
}
|
||||
|
||||
public void setDriverLicenseFrom(Object driverLicenseFrom) {
|
||||
this.driverLicenseFrom = driverLicenseFrom;
|
||||
}
|
||||
|
||||
public Object getDriverLicenseIssuingOrg() {
|
||||
return driverLicenseIssuingOrg;
|
||||
}
|
||||
|
||||
public void setDriverLicenseIssuingOrg(Object driverLicenseIssuingOrg) {
|
||||
this.driverLicenseIssuingOrg = driverLicenseIssuingOrg;
|
||||
}
|
||||
|
||||
public int getReportStatus() {
|
||||
return reportStatus;
|
||||
}
|
||||
|
||||
public void setReportStatus(int reportStatus) {
|
||||
this.reportStatus = reportStatus;
|
||||
}
|
||||
|
||||
public int getDisabled() {
|
||||
return disabled;
|
||||
}
|
||||
|
||||
public void setDisabled(int disabled) {
|
||||
this.disabled = disabled;
|
||||
}
|
||||
|
||||
public Object getBindStatus() {
|
||||
return bindStatus;
|
||||
}
|
||||
|
||||
public void setBindStatus(Object bindStatus) {
|
||||
this.bindStatus = bindStatus;
|
||||
}
|
||||
|
||||
public Object getBindCarIds() {
|
||||
return bindCarIds;
|
||||
}
|
||||
|
||||
public void setBindCarIds(Object bindCarIds) {
|
||||
this.bindCarIds = bindCarIds;
|
||||
}
|
||||
|
||||
public Object getBindCarList() {
|
||||
return bindCarList;
|
||||
}
|
||||
|
||||
public void setBindCarList(Object bindCarList) {
|
||||
this.bindCarList = bindCarList;
|
||||
}
|
||||
|
||||
public Object getBindCars() {
|
||||
return bindCars;
|
||||
}
|
||||
|
||||
public void setBindCars(Object bindCars) {
|
||||
this.bindCars = bindCars;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname == null ? "" : rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public String getRegisterPhone() {
|
||||
return registerPhone == null ? "" : registerPhone;
|
||||
}
|
||||
|
||||
public void setRegisterPhone(String registerPhone) {
|
||||
this.registerPhone = registerPhone;
|
||||
}
|
||||
|
||||
public String getLoginPhone() {
|
||||
return loginPhone == null ? "" : loginPhone;
|
||||
}
|
||||
|
||||
public void setLoginPhone(String loginPhone) {
|
||||
this.loginPhone = loginPhone;
|
||||
}
|
||||
|
||||
public Object getHeadportrait() {
|
||||
return headportrait;
|
||||
}
|
||||
|
||||
public void setHeadportrait(Object headportrait) {
|
||||
this.headportrait = headportrait;
|
||||
}
|
||||
|
||||
public String getHeadportraitUrl() {
|
||||
return headportraitUrl == null ? "" : headportraitUrl;
|
||||
}
|
||||
|
||||
public void setHeadportraitUrl(String headportraitUrl) {
|
||||
this.headportraitUrl = headportraitUrl;
|
||||
}
|
||||
|
||||
public Object getHeadportraitInfo() {
|
||||
return headportraitInfo;
|
||||
}
|
||||
|
||||
public void setHeadportraitInfo(Object headportraitInfo) {
|
||||
this.headportraitInfo = headportraitInfo;
|
||||
}
|
||||
|
||||
public int getPositiveRate() {
|
||||
return positiveRate;
|
||||
}
|
||||
|
||||
public void setPositiveRate(int positiveRate) {
|
||||
this.positiveRate = positiveRate;
|
||||
}
|
||||
|
||||
public int getAllWaybillCount() {
|
||||
return allWaybillCount;
|
||||
}
|
||||
|
||||
public void setAllWaybillCount(int allWaybillCount) {
|
||||
this.allWaybillCount = allWaybillCount;
|
||||
}
|
||||
|
||||
public Object getUpdatePhoneTime() {
|
||||
return updatePhoneTime;
|
||||
}
|
||||
|
||||
public void setUpdatePhoneTime(Object updatePhoneTime) {
|
||||
this.updatePhoneTime = updatePhoneTime;
|
||||
}
|
||||
|
||||
public String getRegisterTime() {
|
||||
return registerTime == null ? "" : registerTime;
|
||||
}
|
||||
|
||||
public void setRegisterTime(String registerTime) {
|
||||
this.registerTime = registerTime;
|
||||
}
|
||||
|
||||
public Object getIdcardPhotoInfo() {
|
||||
return idcardPhotoInfo;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoInfo(Object idcardPhotoInfo) {
|
||||
this.idcardPhotoInfo = idcardPhotoInfo;
|
||||
}
|
||||
|
||||
public String getIdcardPhotoUrl() {
|
||||
return idcardPhotoUrl == null ? "" : idcardPhotoUrl;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoUrl(String idcardPhotoUrl) {
|
||||
this.idcardPhotoUrl = idcardPhotoUrl;
|
||||
}
|
||||
|
||||
public Object getIdcardPhotoBackInfo() {
|
||||
return idcardPhotoBackInfo;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoBackInfo(Object idcardPhotoBackInfo) {
|
||||
this.idcardPhotoBackInfo = idcardPhotoBackInfo;
|
||||
}
|
||||
|
||||
public String getIdcardPhotoBackUrl() {
|
||||
return idcardPhotoBackUrl == null ? "" : idcardPhotoBackUrl;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoBackUrl(String idcardPhotoBackUrl) {
|
||||
this.idcardPhotoBackUrl = idcardPhotoBackUrl;
|
||||
}
|
||||
|
||||
public Object getIdcardPhotoHoldInfo() {
|
||||
return idcardPhotoHoldInfo;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoHoldInfo(Object idcardPhotoHoldInfo) {
|
||||
this.idcardPhotoHoldInfo = idcardPhotoHoldInfo;
|
||||
}
|
||||
|
||||
public String getIdcardPhotoHoldUrl() {
|
||||
return idcardPhotoHoldUrl == null ? "" : idcardPhotoHoldUrl;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoHoldUrl(String idcardPhotoHoldUrl) {
|
||||
this.idcardPhotoHoldUrl = idcardPhotoHoldUrl;
|
||||
}
|
||||
|
||||
public Object getQualificationCertificatePhotoInfo() {
|
||||
return qualificationCertificatePhotoInfo;
|
||||
}
|
||||
|
||||
public void setQualificationCertificatePhotoInfo(Object qualificationCertificatePhotoInfo) {
|
||||
this.qualificationCertificatePhotoInfo = qualificationCertificatePhotoInfo;
|
||||
}
|
||||
|
||||
public String getQualificationCertificatePhotoUrl() {
|
||||
return qualificationCertificatePhotoUrl == null ? "" : qualificationCertificatePhotoUrl;
|
||||
}
|
||||
|
||||
public void setQualificationCertificatePhotoUrl(String qualificationCertificatePhotoUrl) {
|
||||
this.qualificationCertificatePhotoUrl = qualificationCertificatePhotoUrl;
|
||||
}
|
||||
|
||||
public Object getDriverLicensePhotoInfo() {
|
||||
return driverLicensePhotoInfo;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhotoInfo(Object driverLicensePhotoInfo) {
|
||||
this.driverLicensePhotoInfo = driverLicensePhotoInfo;
|
||||
}
|
||||
|
||||
public String getDriverLicensePhotoUrl() {
|
||||
return driverLicensePhotoUrl == null ? "" : driverLicensePhotoUrl;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhotoUrl(String driverLicensePhotoUrl) {
|
||||
this.driverLicensePhotoUrl = driverLicensePhotoUrl;
|
||||
}
|
||||
|
||||
public Object getDriverPhotoInfo() {
|
||||
return driverPhotoInfo;
|
||||
}
|
||||
|
||||
public void setDriverPhotoInfo(Object driverPhotoInfo) {
|
||||
this.driverPhotoInfo = driverPhotoInfo;
|
||||
}
|
||||
|
||||
public String getDriverPhotoUrl() {
|
||||
return driverPhotoUrl == null ? "" : driverPhotoUrl;
|
||||
}
|
||||
|
||||
public void setDriverPhotoUrl(String driverPhotoUrl) {
|
||||
this.driverPhotoUrl = driverPhotoUrl;
|
||||
}
|
||||
|
||||
public Object getLicensePhotoInfo() {
|
||||
return licensePhotoInfo;
|
||||
}
|
||||
|
||||
public void setLicensePhotoInfo(Object licensePhotoInfo) {
|
||||
this.licensePhotoInfo = licensePhotoInfo;
|
||||
}
|
||||
|
||||
public String getLicensePhotoUrl() {
|
||||
return licensePhotoUrl == null ? "" : licensePhotoUrl;
|
||||
}
|
||||
|
||||
public void setLicensePhotoUrl(String licensePhotoUrl) {
|
||||
this.licensePhotoUrl = licensePhotoUrl;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardPhotoInfo() {
|
||||
return carOwnerIdcardPhotoInfo;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoInfo(Object carOwnerIdcardPhotoInfo) {
|
||||
this.carOwnerIdcardPhotoInfo = carOwnerIdcardPhotoInfo;
|
||||
}
|
||||
|
||||
public String getCarOwnerIdcardPhotoUrl() {
|
||||
return carOwnerIdcardPhotoUrl == null ? "" : carOwnerIdcardPhotoUrl;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoUrl(String carOwnerIdcardPhotoUrl) {
|
||||
this.carOwnerIdcardPhotoUrl = carOwnerIdcardPhotoUrl;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardPhotoBackInfo() {
|
||||
return carOwnerIdcardPhotoBackInfo;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoBackInfo(Object carOwnerIdcardPhotoBackInfo) {
|
||||
this.carOwnerIdcardPhotoBackInfo = carOwnerIdcardPhotoBackInfo;
|
||||
}
|
||||
|
||||
public String getCarOwnerIdcardPhotoBackUrl() {
|
||||
return carOwnerIdcardPhotoBackUrl == null ? "" : carOwnerIdcardPhotoBackUrl;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoBackUrl(String carOwnerIdcardPhotoBackUrl) {
|
||||
this.carOwnerIdcardPhotoBackUrl = carOwnerIdcardPhotoBackUrl;
|
||||
}
|
||||
|
||||
public Object getCarOwnerIdcardPhotoHoldInfo() {
|
||||
return carOwnerIdcardPhotoHoldInfo;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoHoldInfo(Object carOwnerIdcardPhotoHoldInfo) {
|
||||
this.carOwnerIdcardPhotoHoldInfo = carOwnerIdcardPhotoHoldInfo;
|
||||
}
|
||||
|
||||
public String getCarOwnerIdcardPhotoHoldUrl() {
|
||||
return carOwnerIdcardPhotoHoldUrl == null ? "" : carOwnerIdcardPhotoHoldUrl;
|
||||
}
|
||||
|
||||
public void setCarOwnerIdcardPhotoHoldUrl(String carOwnerIdcardPhotoHoldUrl) {
|
||||
this.carOwnerIdcardPhotoHoldUrl = carOwnerIdcardPhotoHoldUrl;
|
||||
}
|
||||
|
||||
public Object getCarOwnerBankcardPhotoInfo() {
|
||||
return carOwnerBankcardPhotoInfo;
|
||||
}
|
||||
|
||||
public void setCarOwnerBankcardPhotoInfo(Object carOwnerBankcardPhotoInfo) {
|
||||
this.carOwnerBankcardPhotoInfo = carOwnerBankcardPhotoInfo;
|
||||
}
|
||||
|
||||
public String getCarOwnerBankcardPhotoUrl() {
|
||||
return carOwnerBankcardPhotoUrl == null ? "" : carOwnerBankcardPhotoUrl;
|
||||
}
|
||||
|
||||
public void setCarOwnerBankcardPhotoUrl(String carOwnerBankcardPhotoUrl) {
|
||||
this.carOwnerBankcardPhotoUrl = carOwnerBankcardPhotoUrl;
|
||||
}
|
||||
|
||||
public Object getMbindStatus() {
|
||||
return mbindStatus;
|
||||
}
|
||||
|
||||
public void setMbindStatus(Object mbindStatus) {
|
||||
this.mbindStatus = mbindStatus;
|
||||
}
|
||||
|
||||
public Object getMreason() {
|
||||
return mreason;
|
||||
}
|
||||
|
||||
public void setMreason(Object mreason) {
|
||||
this.mreason = mreason;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/2/10 17:12
|
||||
* @description:
|
||||
*/
|
||||
public class DriverExpireBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String driverLicenseUpdateUrl;
|
||||
private String idCardUpdateUrl;
|
||||
|
||||
public String getDriverLicenseUpdateUrl() {
|
||||
return driverLicenseUpdateUrl;
|
||||
}
|
||||
|
||||
public void setDriverLicenseUpdateUrl(String driverLicenseUpdateUrl) {
|
||||
this.driverLicenseUpdateUrl = driverLicenseUpdateUrl;
|
||||
}
|
||||
|
||||
public String getIdCardUpdateUrl() {
|
||||
return idCardUpdateUrl;
|
||||
}
|
||||
|
||||
public void setIdCardUpdateUrl(String idCardUpdateUrl) {
|
||||
this.idCardUpdateUrl = idCardUpdateUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/11/23 19:16
|
||||
* @description:
|
||||
*/
|
||||
public class FqBean {
|
||||
|
||||
private int pageSize;
|
||||
private int currentPage;
|
||||
private int totalCount;
|
||||
private int totalPage;
|
||||
private List<Invoice> driverInvoices;
|
||||
//{"currentPage":100,"driverInvoices":[],"pageSize":1,"totalCount":0,"totalPage":0}
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getCurrentPage() {
|
||||
return currentPage;
|
||||
}
|
||||
|
||||
public void setCurrentPage(int currentPage) {
|
||||
this.currentPage = currentPage;
|
||||
}
|
||||
|
||||
public int getTotalCount() {
|
||||
return totalCount;
|
||||
}
|
||||
|
||||
public void setTotalCount(int totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
public int getTotalPage() {
|
||||
return totalPage;
|
||||
}
|
||||
|
||||
public void setTotalPage(int totalPage) {
|
||||
this.totalPage = totalPage;
|
||||
}
|
||||
|
||||
public List<Invoice> getDriverInvoices() {
|
||||
if (driverInvoices == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return driverInvoices;
|
||||
}
|
||||
|
||||
public void setDriverInvoices(List<Invoice> driverInvoices) {
|
||||
this.driverInvoices = driverInvoices;
|
||||
}
|
||||
|
||||
public class Invoice{
|
||||
String invoiceReceiverName; //受票方,string类型
|
||||
double taxRate; //发票税率,double类型
|
||||
double taxAmount; //税额, double类型
|
||||
double totalAmount; //金额, double类型
|
||||
double totalAmountIncludeTax; //金额+税额,double类型
|
||||
String driverInvoiceCode; //发票编号,string类型
|
||||
|
||||
public String getInvoiceReceiverName() {
|
||||
return invoiceReceiverName == null ? "" : invoiceReceiverName;
|
||||
}
|
||||
|
||||
public void setInvoiceReceiverName(String invoiceReceiverName) {
|
||||
this.invoiceReceiverName = invoiceReceiverName;
|
||||
}
|
||||
|
||||
public double getTaxRate() {
|
||||
return taxRate;
|
||||
}
|
||||
|
||||
public void setTaxRate(double taxRate) {
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public double getTaxAmount() {
|
||||
return taxAmount;
|
||||
}
|
||||
|
||||
public void setTaxAmount(double taxAmount) {
|
||||
this.taxAmount = taxAmount;
|
||||
}
|
||||
|
||||
public double getTotalAmount() {
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(double totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public double getTotalAmountIncludeTax() {
|
||||
return totalAmountIncludeTax;
|
||||
}
|
||||
|
||||
public void setTotalAmountIncludeTax(double totalAmountIncludeTax) {
|
||||
this.totalAmountIncludeTax = totalAmountIncludeTax;
|
||||
}
|
||||
|
||||
public String getDriverInvoiceCode() {
|
||||
return driverInvoiceCode == null ? "" : driverInvoiceCode;
|
||||
}
|
||||
|
||||
public void setDriverInvoiceCode(String driverInvoiceCode) {
|
||||
this.driverInvoiceCode = driverInvoiceCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,924 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/7/31 17:47
|
||||
* @description:
|
||||
*/
|
||||
public class HuoYuanDelBean {
|
||||
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private Object waybillId;
|
||||
private String orderNum;
|
||||
private int shipperId;
|
||||
private String loadingName;
|
||||
private String loadingPhone;
|
||||
private String loadingProvinceCityArea;
|
||||
private String loadingAddress;
|
||||
private String loadingDeadline;
|
||||
private String receiverName;
|
||||
private String receiverPhone;
|
||||
private String receiverProvinceCityArea;
|
||||
private String receiverAddress;
|
||||
private String receiverDeadline;
|
||||
private int allowSplitting;
|
||||
private String goodsValue;
|
||||
private int isInsure;
|
||||
private String insureAmount;
|
||||
private String effectiveTime;
|
||||
private String distance;
|
||||
private int vehicleType;
|
||||
private String vehicleTypeName;
|
||||
private int vehicleLength;
|
||||
private String vehicleLengthName;
|
||||
private String namedDrivers;
|
||||
private String requirement;
|
||||
private String totalFreight;
|
||||
private String failedReason;
|
||||
private List<SendInfoDTO> sendInfo;
|
||||
private List<PutInfoDTO> putInfo;
|
||||
private String sendPutString;
|
||||
private String report;
|
||||
private String contractTemplateUrl;
|
||||
private int status;
|
||||
private Object statusOver;
|
||||
private Object contactName;
|
||||
private Object contactPhone;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Object getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(Object waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
|
||||
public String getOrderNum() {
|
||||
return orderNum == null ? "" : orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public int getShipperId() {
|
||||
return shipperId;
|
||||
}
|
||||
|
||||
public void setShipperId(int shipperId) {
|
||||
this.shipperId = shipperId;
|
||||
}
|
||||
|
||||
public String getLoadingName() {
|
||||
return loadingName == null ? "" : loadingName;
|
||||
}
|
||||
|
||||
public void setLoadingName(String loadingName) {
|
||||
this.loadingName = loadingName;
|
||||
}
|
||||
|
||||
public String getLoadingPhone() {
|
||||
return loadingPhone == null ? "" : loadingPhone;
|
||||
}
|
||||
|
||||
public void setLoadingPhone(String loadingPhone) {
|
||||
this.loadingPhone = loadingPhone;
|
||||
}
|
||||
|
||||
public String getLoadingProvinceCityArea() {
|
||||
return loadingProvinceCityArea == null ? "" : loadingProvinceCityArea;
|
||||
}
|
||||
|
||||
public void setLoadingProvinceCityArea(String loadingProvinceCityArea) {
|
||||
this.loadingProvinceCityArea = loadingProvinceCityArea;
|
||||
}
|
||||
|
||||
public String getLoadingAddress() {
|
||||
return loadingAddress == null ? "" : loadingAddress;
|
||||
}
|
||||
|
||||
public void setLoadingAddress(String loadingAddress) {
|
||||
this.loadingAddress = loadingAddress;
|
||||
}
|
||||
|
||||
public String getLoadingDeadline() {
|
||||
return loadingDeadline == null ? "" : loadingDeadline;
|
||||
}
|
||||
|
||||
public void setLoadingDeadline(String loadingDeadline) {
|
||||
this.loadingDeadline = loadingDeadline;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return receiverName == null ? "" : receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public String getReceiverPhone() {
|
||||
return receiverPhone == null ? "" : receiverPhone;
|
||||
}
|
||||
|
||||
public void setReceiverPhone(String receiverPhone) {
|
||||
this.receiverPhone = receiverPhone;
|
||||
}
|
||||
|
||||
public String getReceiverProvinceCityArea() {
|
||||
return receiverProvinceCityArea == null ? "" : receiverProvinceCityArea;
|
||||
}
|
||||
|
||||
public void setReceiverProvinceCityArea(String receiverProvinceCityArea) {
|
||||
this.receiverProvinceCityArea = receiverProvinceCityArea;
|
||||
}
|
||||
|
||||
public String getReceiverAddress() {
|
||||
return receiverAddress == null ? "" : receiverAddress;
|
||||
}
|
||||
|
||||
public void setReceiverAddress(String receiverAddress) {
|
||||
this.receiverAddress = receiverAddress;
|
||||
}
|
||||
|
||||
public String getReceiverDeadline() {
|
||||
return receiverDeadline == null ? "" : receiverDeadline;
|
||||
}
|
||||
|
||||
public void setReceiverDeadline(String receiverDeadline) {
|
||||
this.receiverDeadline = receiverDeadline;
|
||||
}
|
||||
|
||||
public int getAllowSplitting() {
|
||||
return allowSplitting;
|
||||
}
|
||||
|
||||
public void setAllowSplitting(int allowSplitting) {
|
||||
this.allowSplitting = allowSplitting;
|
||||
}
|
||||
|
||||
public String getGoodsValue() {
|
||||
return goodsValue == null ? "" : goodsValue;
|
||||
}
|
||||
|
||||
public void setGoodsValue(String goodsValue) {
|
||||
this.goodsValue = goodsValue;
|
||||
}
|
||||
|
||||
public int getIsInsure() {
|
||||
return isInsure;
|
||||
}
|
||||
|
||||
public void setIsInsure(int isInsure) {
|
||||
this.isInsure = isInsure;
|
||||
}
|
||||
|
||||
public String getInsureAmount() {
|
||||
return insureAmount == null ? "" : insureAmount;
|
||||
}
|
||||
|
||||
public void setInsureAmount(String insureAmount) {
|
||||
this.insureAmount = insureAmount;
|
||||
}
|
||||
|
||||
public String getEffectiveTime() {
|
||||
return effectiveTime == null ? "" : effectiveTime;
|
||||
}
|
||||
|
||||
public void setEffectiveTime(String effectiveTime) {
|
||||
this.effectiveTime = effectiveTime;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance == null ? "" : distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public int getVehicleType() {
|
||||
return vehicleType;
|
||||
}
|
||||
|
||||
public void setVehicleType(int vehicleType) {
|
||||
this.vehicleType = vehicleType;
|
||||
}
|
||||
|
||||
public String getVehicleTypeName() {
|
||||
return vehicleTypeName == null ? "" : vehicleTypeName;
|
||||
}
|
||||
|
||||
public void setVehicleTypeName(String vehicleTypeName) {
|
||||
this.vehicleTypeName = vehicleTypeName;
|
||||
}
|
||||
|
||||
public int getVehicleLength() {
|
||||
return vehicleLength;
|
||||
}
|
||||
|
||||
public void setVehicleLength(int vehicleLength) {
|
||||
this.vehicleLength = vehicleLength;
|
||||
}
|
||||
|
||||
public String getVehicleLengthName() {
|
||||
return vehicleLengthName == null ? "" : vehicleLengthName;
|
||||
}
|
||||
|
||||
public void setVehicleLengthName(String vehicleLengthName) {
|
||||
this.vehicleLengthName = vehicleLengthName;
|
||||
}
|
||||
|
||||
public String getNamedDrivers() {
|
||||
return namedDrivers == null ? "" : namedDrivers;
|
||||
}
|
||||
|
||||
public void setNamedDrivers(String namedDrivers) {
|
||||
this.namedDrivers = namedDrivers;
|
||||
}
|
||||
|
||||
public String getRequirement() {
|
||||
return requirement == null ? "" : requirement;
|
||||
}
|
||||
|
||||
public void setRequirement(String requirement) {
|
||||
this.requirement = requirement;
|
||||
}
|
||||
|
||||
public String getTotalFreight() {
|
||||
return totalFreight == null ? "" : totalFreight;
|
||||
}
|
||||
|
||||
public void setTotalFreight(String totalFreight) {
|
||||
this.totalFreight = totalFreight;
|
||||
}
|
||||
|
||||
public String getFailedReason() {
|
||||
return failedReason == null ? "" : failedReason;
|
||||
}
|
||||
|
||||
public void setFailedReason(String failedReason) {
|
||||
this.failedReason = failedReason;
|
||||
}
|
||||
|
||||
public List<SendInfoDTO> getSendInfo() {
|
||||
if (sendInfo == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return sendInfo;
|
||||
}
|
||||
|
||||
public void setSendInfo(List<SendInfoDTO> sendInfo) {
|
||||
this.sendInfo = sendInfo;
|
||||
}
|
||||
|
||||
public List<PutInfoDTO> getPutInfo() {
|
||||
if (putInfo == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return putInfo;
|
||||
}
|
||||
|
||||
public void setPutInfo(List<PutInfoDTO> putInfo) {
|
||||
this.putInfo = putInfo;
|
||||
}
|
||||
|
||||
public String getSendPutString() {
|
||||
return sendPutString == null ? "" : sendPutString;
|
||||
}
|
||||
|
||||
public void setSendPutString(String sendPutString) {
|
||||
this.sendPutString = sendPutString;
|
||||
}
|
||||
|
||||
public String getReport() {
|
||||
return report == null ? "" : report;
|
||||
}
|
||||
|
||||
public void setReport(String report) {
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
public String getContractTemplateUrl() {
|
||||
return contractTemplateUrl == null ? "" : contractTemplateUrl;
|
||||
}
|
||||
|
||||
public void setContractTemplateUrl(String contractTemplateUrl) {
|
||||
this.contractTemplateUrl = contractTemplateUrl;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Object getStatusOver() {
|
||||
return statusOver;
|
||||
}
|
||||
|
||||
public void setStatusOver(Object statusOver) {
|
||||
this.statusOver = statusOver;
|
||||
}
|
||||
|
||||
public Object getContactName() {
|
||||
return contactName;
|
||||
}
|
||||
|
||||
public void setContactName(Object contactName) {
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public Object getContactPhone() {
|
||||
return contactPhone;
|
||||
}
|
||||
|
||||
public void setContactPhone(Object contactPhone) {
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public static class SendInfoDTO {
|
||||
private long childNumber;
|
||||
private int pid;
|
||||
private String name;
|
||||
private String phone;
|
||||
private int province;
|
||||
private int city;
|
||||
private int area;
|
||||
private String provinceCityArea;
|
||||
private String address;
|
||||
private String deadline;
|
||||
private int type;
|
||||
private int status;
|
||||
private int displayOrder;
|
||||
private Object totalAmount;
|
||||
private String createTime;
|
||||
private String longitude;
|
||||
private String latitude;
|
||||
private String businessName;
|
||||
private String businessCode;
|
||||
private List<GoodsDTO> goods;
|
||||
|
||||
public long getChildNumber() {
|
||||
return childNumber;
|
||||
}
|
||||
|
||||
public void setChildNumber(long childNumber) {
|
||||
this.childNumber = childNumber;
|
||||
}
|
||||
|
||||
public int getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(int pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone == null ? "" : phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public int getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(int province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public int getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(int city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public int getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(int area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
public String getProvinceCityArea() {
|
||||
return provinceCityArea == null ? "" : provinceCityArea;
|
||||
}
|
||||
|
||||
public void setProvinceCityArea(String provinceCityArea) {
|
||||
this.provinceCityArea = provinceCityArea;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getDeadline() {
|
||||
return deadline == null ? "" : deadline;
|
||||
}
|
||||
|
||||
public void setDeadline(String deadline) {
|
||||
this.deadline = deadline;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getDisplayOrder() {
|
||||
return displayOrder;
|
||||
}
|
||||
|
||||
public void setDisplayOrder(int displayOrder) {
|
||||
this.displayOrder = displayOrder;
|
||||
}
|
||||
|
||||
public Object getTotalAmount() {
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(Object totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime == null ? "" : createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude == null ? "" : longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude == null ? "" : latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getBusinessName() {
|
||||
return businessName == null ? "" : businessName;
|
||||
}
|
||||
|
||||
public void setBusinessName(String businessName) {
|
||||
this.businessName = businessName;
|
||||
}
|
||||
|
||||
public String getBusinessCode() {
|
||||
return businessCode == null ? "" : businessCode;
|
||||
}
|
||||
|
||||
public void setBusinessCode(String businessCode) {
|
||||
this.businessCode = businessCode;
|
||||
}
|
||||
|
||||
public List<GoodsDTO> getGoods() {
|
||||
if (goods == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return goods;
|
||||
}
|
||||
|
||||
public void setGoods(List<GoodsDTO> goods) {
|
||||
this.goods = goods;
|
||||
}
|
||||
|
||||
public static class GoodsDTO {
|
||||
private long id;
|
||||
private long childrenId;
|
||||
private String goodName;
|
||||
private String goodNum;
|
||||
private String goodUnit;
|
||||
private String goodPrice;
|
||||
private String packName;
|
||||
private Object createTime;
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public long getChildrenId() {
|
||||
return childrenId;
|
||||
}
|
||||
|
||||
public void setChildrenId(long childrenId) {
|
||||
this.childrenId = childrenId;
|
||||
}
|
||||
|
||||
public String getGoodName() {
|
||||
return goodName == null ? "" : goodName;
|
||||
}
|
||||
|
||||
public void setGoodName(String goodName) {
|
||||
this.goodName = goodName;
|
||||
}
|
||||
|
||||
public String getGoodNum() {
|
||||
return goodNum == null ? "" : goodNum;
|
||||
}
|
||||
|
||||
public void setGoodNum(String goodNum) {
|
||||
this.goodNum = goodNum;
|
||||
}
|
||||
|
||||
public String getGoodUnit() {
|
||||
return goodUnit == null ? "" : goodUnit;
|
||||
}
|
||||
|
||||
public void setGoodUnit(String goodUnit) {
|
||||
this.goodUnit = goodUnit;
|
||||
}
|
||||
|
||||
public String getGoodPrice() {
|
||||
return goodPrice == null ? "" : goodPrice;
|
||||
}
|
||||
|
||||
public void setGoodPrice(String goodPrice) {
|
||||
this.goodPrice = goodPrice;
|
||||
}
|
||||
|
||||
public String getPackName() {
|
||||
return packName == null ? "" : packName;
|
||||
}
|
||||
|
||||
public void setPackName(String packName) {
|
||||
this.packName = packName;
|
||||
}
|
||||
|
||||
public Object getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Object createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class PutInfoDTO {
|
||||
private long childNumber;
|
||||
private int pid;
|
||||
private String name;
|
||||
private String phone;
|
||||
private int province;
|
||||
private int city;
|
||||
private int area;
|
||||
private String provinceCityArea;
|
||||
private String address;
|
||||
private String deadline;
|
||||
private int type;
|
||||
private int status;
|
||||
private int displayOrder;
|
||||
private Object totalAmount;
|
||||
private String createTime;
|
||||
private String longitude;
|
||||
private String latitude;
|
||||
private String businessName;
|
||||
private String businessCode;
|
||||
private List<GoodsDTO> goods;
|
||||
|
||||
public long getChildNumber() {
|
||||
return childNumber;
|
||||
}
|
||||
|
||||
public void setChildNumber(long childNumber) {
|
||||
this.childNumber = childNumber;
|
||||
}
|
||||
|
||||
public int getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(int pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone == null ? "" : phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public int getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(int province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public int getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(int city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public int getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(int area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
public String getProvinceCityArea() {
|
||||
return provinceCityArea == null ? "" : provinceCityArea;
|
||||
}
|
||||
|
||||
public void setProvinceCityArea(String provinceCityArea) {
|
||||
this.provinceCityArea = provinceCityArea;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getDeadline() {
|
||||
return deadline == null ? "" : deadline;
|
||||
}
|
||||
|
||||
public void setDeadline(String deadline) {
|
||||
this.deadline = deadline;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public int getDisplayOrder() {
|
||||
return displayOrder;
|
||||
}
|
||||
|
||||
public void setDisplayOrder(int displayOrder) {
|
||||
this.displayOrder = displayOrder;
|
||||
}
|
||||
|
||||
public Object getTotalAmount() {
|
||||
return totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(Object totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime == null ? "" : createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude == null ? "" : longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude == null ? "" : latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getBusinessName() {
|
||||
return businessName == null ? "" : businessName;
|
||||
}
|
||||
|
||||
public void setBusinessName(String businessName) {
|
||||
this.businessName = businessName;
|
||||
}
|
||||
|
||||
public String getBusinessCode() {
|
||||
return businessCode == null ? "" : businessCode;
|
||||
}
|
||||
|
||||
public void setBusinessCode(String businessCode) {
|
||||
this.businessCode = businessCode;
|
||||
}
|
||||
|
||||
public List<GoodsDTO> getGoods() {
|
||||
if (goods == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return goods;
|
||||
}
|
||||
|
||||
public void setGoods(List<GoodsDTO> goods) {
|
||||
this.goods = goods;
|
||||
}
|
||||
|
||||
public static class GoodsDTO {
|
||||
private long id;
|
||||
private long childrenId;
|
||||
private String goodName;
|
||||
private String goodNum;
|
||||
private String goodUnit;
|
||||
private String goodPrice;
|
||||
private String packName;
|
||||
private Object createTime;
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public long getChildrenId() {
|
||||
return childrenId;
|
||||
}
|
||||
|
||||
public void setChildrenId(long childrenId) {
|
||||
this.childrenId = childrenId;
|
||||
}
|
||||
|
||||
public String getGoodName() {
|
||||
return goodName == null ? "" : goodName;
|
||||
}
|
||||
|
||||
public void setGoodName(String goodName) {
|
||||
this.goodName = goodName;
|
||||
}
|
||||
|
||||
public String getGoodNum() {
|
||||
return goodNum == null ? "" : goodNum;
|
||||
}
|
||||
|
||||
public void setGoodNum(String goodNum) {
|
||||
this.goodNum = goodNum;
|
||||
}
|
||||
|
||||
public String getGoodUnit() {
|
||||
return goodUnit == null ? "" : goodUnit;
|
||||
}
|
||||
|
||||
public void setGoodUnit(String goodUnit) {
|
||||
this.goodUnit = goodUnit;
|
||||
}
|
||||
|
||||
public String getGoodPrice() {
|
||||
return goodPrice == null ? "" : goodPrice;
|
||||
}
|
||||
|
||||
public void setGoodPrice(String goodPrice) {
|
||||
this.goodPrice = goodPrice;
|
||||
}
|
||||
|
||||
public String getPackName() {
|
||||
return packName == null ? "" : packName;
|
||||
}
|
||||
|
||||
public void setPackName(String packName) {
|
||||
this.packName = packName;
|
||||
}
|
||||
|
||||
public Object getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Object createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,272 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class HuoYuanListBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private List<RecordsDTO> records;
|
||||
private int total;
|
||||
private int size;
|
||||
private int current;
|
||||
private List<?> orders;
|
||||
private boolean searchCount;
|
||||
private int pages;
|
||||
|
||||
public List<RecordsDTO> getRecords() {
|
||||
if (records == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return records;
|
||||
}
|
||||
|
||||
public void setRecords(List<RecordsDTO> records) {
|
||||
this.records = records;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getCurrent() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public void setCurrent(int current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
public List<?> getOrders() {
|
||||
if (orders == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return orders;
|
||||
}
|
||||
|
||||
public void setOrders(List<?> orders) {
|
||||
this.orders = orders;
|
||||
}
|
||||
|
||||
public boolean isSearchCount() {
|
||||
return searchCount;
|
||||
}
|
||||
|
||||
public void setSearchCount(boolean searchCount) {
|
||||
this.searchCount = searchCount;
|
||||
}
|
||||
|
||||
public int getPages() {
|
||||
return pages;
|
||||
}
|
||||
|
||||
public void setPages(int pages) {
|
||||
this.pages = pages;
|
||||
}
|
||||
|
||||
public static class RecordsDTO {
|
||||
private int orderId;
|
||||
private String orderNum;
|
||||
private String goodsBigCate;
|
||||
private String totalFreight;
|
||||
private int dispatchType;
|
||||
private String effectiveTime;
|
||||
private String sendPutString;
|
||||
private String distance;
|
||||
private String loadingAddress;
|
||||
private String receiverAddress;
|
||||
private String vehicleType;
|
||||
private String vehicleLength;
|
||||
private String loadingCity;
|
||||
private String receiverCity;
|
||||
private String latitude;
|
||||
private String longitude;
|
||||
|
||||
public String getLoadingCity() {
|
||||
return loadingCity == null ? "" : loadingCity;
|
||||
}
|
||||
|
||||
public void setLoadingCity(String loadingCity) {
|
||||
this.loadingCity = loadingCity;
|
||||
}
|
||||
|
||||
public String getReceiverCity() {
|
||||
return receiverCity == null ? "" : receiverCity;
|
||||
}
|
||||
|
||||
public void setReceiverCity(String receiverCity) {
|
||||
this.receiverCity = receiverCity;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude == null ? "" : latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude == null ? "" : longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public int getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(int orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public String getOrderNum() {
|
||||
return orderNum == null ? "" : orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getGoodsBigCate() {
|
||||
return goodsBigCate == null ? "" : goodsBigCate;
|
||||
}
|
||||
|
||||
public void setGoodsBigCate(String goodsBigCate) {
|
||||
this.goodsBigCate = goodsBigCate;
|
||||
}
|
||||
|
||||
public String getTotalFreight() {
|
||||
return totalFreight == null ? "" : totalFreight;
|
||||
}
|
||||
|
||||
public void setTotalFreight(String totalFreight) {
|
||||
this.totalFreight = totalFreight;
|
||||
}
|
||||
|
||||
public int getDispatchType() {
|
||||
return dispatchType;
|
||||
}
|
||||
|
||||
public void setDispatchType(int dispatchType) {
|
||||
this.dispatchType = dispatchType;
|
||||
}
|
||||
|
||||
public String getEffectiveTime() {
|
||||
return effectiveTime == null ? "" : effectiveTime;
|
||||
}
|
||||
|
||||
public void setEffectiveTime(String effectiveTime) {
|
||||
this.effectiveTime = effectiveTime;
|
||||
}
|
||||
|
||||
public String getSendPutString() {
|
||||
return sendPutString == null ? "" : sendPutString;
|
||||
}
|
||||
|
||||
public void setSendPutString(String sendPutString) {
|
||||
this.sendPutString = sendPutString;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance == null ? "" : distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public String getLoadingAddress() {
|
||||
return loadingAddress == null ? "" : loadingAddress;
|
||||
}
|
||||
|
||||
public void setLoadingAddress(String loadingAddress) {
|
||||
this.loadingAddress = loadingAddress;
|
||||
}
|
||||
|
||||
public String getReceiverAddress() {
|
||||
return receiverAddress == null ? "" : receiverAddress;
|
||||
}
|
||||
|
||||
public void setReceiverAddress(String receiverAddress) {
|
||||
this.receiverAddress = receiverAddress;
|
||||
}
|
||||
|
||||
public String getVehicleType() {
|
||||
return vehicleType == null ? "" : vehicleType;
|
||||
}
|
||||
|
||||
public void setVehicleType(String vehicleType) {
|
||||
this.vehicleType = vehicleType;
|
||||
}
|
||||
|
||||
public String getVehicleLength() {
|
||||
return vehicleLength == null ? "" : vehicleLength;
|
||||
}
|
||||
|
||||
public void setVehicleLength(String vehicleLength) {
|
||||
this.vehicleLength = vehicleLength;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,418 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/23 17:40
|
||||
* @description:
|
||||
*/
|
||||
public class HuoYuanListDealBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private int res;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int current;
|
||||
private List<OrdersDTO> orders;
|
||||
private int pages;
|
||||
private List<RecordsDTO> records;
|
||||
private boolean searchCount;
|
||||
private int size;
|
||||
private int total;
|
||||
|
||||
public int getCurrent() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public void setCurrent(int current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
public List<OrdersDTO> getOrders() {
|
||||
return orders;
|
||||
}
|
||||
|
||||
public void setOrders(List<OrdersDTO> orders) {
|
||||
this.orders = orders;
|
||||
}
|
||||
|
||||
public int getPages() {
|
||||
return pages;
|
||||
}
|
||||
|
||||
public void setPages(int pages) {
|
||||
this.pages = pages;
|
||||
}
|
||||
|
||||
public List<RecordsDTO> getRecords() {
|
||||
return records;
|
||||
}
|
||||
|
||||
public void setRecords(List<RecordsDTO> records) {
|
||||
this.records = records;
|
||||
}
|
||||
|
||||
public boolean isSearchCount() {
|
||||
return searchCount;
|
||||
}
|
||||
|
||||
public void setSearchCount(boolean searchCount) {
|
||||
this.searchCount = searchCount;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public static class OrdersDTO {
|
||||
private boolean asc;
|
||||
private String column;
|
||||
|
||||
public boolean isAsc() {
|
||||
return asc;
|
||||
}
|
||||
|
||||
public void setAsc(boolean asc) {
|
||||
this.asc = asc;
|
||||
}
|
||||
|
||||
public String getColumn() {
|
||||
return column;
|
||||
}
|
||||
|
||||
public void setColumn(String column) {
|
||||
this.column = column;
|
||||
}
|
||||
}
|
||||
|
||||
public static class RecordsDTO {
|
||||
private String carNum;
|
||||
private int complaint;
|
||||
private String contactName;
|
||||
private String contactPhone;
|
||||
private int dispatchType;
|
||||
private String distance;
|
||||
private String driverName;
|
||||
private String driverPhone;
|
||||
private String effectiveTime;
|
||||
private String goodsBigCate;
|
||||
private int isShipperEvaluation;
|
||||
private String latitude;
|
||||
private String loadingAddress;
|
||||
private String loadingCity;
|
||||
private String longitude;
|
||||
private int makeStatus;
|
||||
private int multipleScore;
|
||||
private int orderId;
|
||||
private String orderNum;
|
||||
private String receiveCarNum;
|
||||
private String receiveTime;
|
||||
private String receiverAddress;
|
||||
private String receiverCity;
|
||||
private String sendPutString;
|
||||
private int status;
|
||||
private String statusOver;
|
||||
private String totalFreight;
|
||||
private String vehicleLength;
|
||||
private String vehicleType;
|
||||
private int waybillId;
|
||||
|
||||
public String getCarNum() {
|
||||
return carNum;
|
||||
}
|
||||
|
||||
public void setCarNum(String carNum) {
|
||||
this.carNum = carNum;
|
||||
}
|
||||
|
||||
public int getComplaint() {
|
||||
return complaint;
|
||||
}
|
||||
|
||||
public void setComplaint(int complaint) {
|
||||
this.complaint = complaint;
|
||||
}
|
||||
|
||||
public String getContactName() {
|
||||
return contactName;
|
||||
}
|
||||
|
||||
public void setContactName(String contactName) {
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public String getContactPhone() {
|
||||
return contactPhone;
|
||||
}
|
||||
|
||||
public void setContactPhone(String contactPhone) {
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public int getDispatchType() {
|
||||
return dispatchType;
|
||||
}
|
||||
|
||||
public void setDispatchType(int dispatchType) {
|
||||
this.dispatchType = dispatchType;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public String getDriverName() {
|
||||
return driverName;
|
||||
}
|
||||
|
||||
public void setDriverName(String driverName) {
|
||||
this.driverName = driverName;
|
||||
}
|
||||
|
||||
public String getDriverPhone() {
|
||||
return driverPhone;
|
||||
}
|
||||
|
||||
public void setDriverPhone(String driverPhone) {
|
||||
this.driverPhone = driverPhone;
|
||||
}
|
||||
|
||||
public String getEffectiveTime() {
|
||||
return effectiveTime;
|
||||
}
|
||||
|
||||
public void setEffectiveTime(String effectiveTime) {
|
||||
this.effectiveTime = effectiveTime;
|
||||
}
|
||||
|
||||
public String getGoodsBigCate() {
|
||||
return goodsBigCate;
|
||||
}
|
||||
|
||||
public void setGoodsBigCate(String goodsBigCate) {
|
||||
this.goodsBigCate = goodsBigCate;
|
||||
}
|
||||
|
||||
public int getIsShipperEvaluation() {
|
||||
return isShipperEvaluation;
|
||||
}
|
||||
|
||||
public void setIsShipperEvaluation(int isShipperEvaluation) {
|
||||
this.isShipperEvaluation = isShipperEvaluation;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLoadingAddress() {
|
||||
return loadingAddress;
|
||||
}
|
||||
|
||||
public void setLoadingAddress(String loadingAddress) {
|
||||
this.loadingAddress = loadingAddress;
|
||||
}
|
||||
|
||||
public String getLoadingCity() {
|
||||
return loadingCity;
|
||||
}
|
||||
|
||||
public void setLoadingCity(String loadingCity) {
|
||||
this.loadingCity = loadingCity;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public int getMakeStatus() {
|
||||
return makeStatus;
|
||||
}
|
||||
|
||||
public void setMakeStatus(int makeStatus) {
|
||||
this.makeStatus = makeStatus;
|
||||
}
|
||||
|
||||
public int getMultipleScore() {
|
||||
return multipleScore;
|
||||
}
|
||||
|
||||
public void setMultipleScore(int multipleScore) {
|
||||
this.multipleScore = multipleScore;
|
||||
}
|
||||
|
||||
public int getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(int orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public String getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getReceiveCarNum() {
|
||||
return receiveCarNum;
|
||||
}
|
||||
|
||||
public void setReceiveCarNum(String receiveCarNum) {
|
||||
this.receiveCarNum = receiveCarNum;
|
||||
}
|
||||
|
||||
public String getReceiveTime() {
|
||||
return receiveTime;
|
||||
}
|
||||
|
||||
public void setReceiveTime(String receiveTime) {
|
||||
this.receiveTime = receiveTime;
|
||||
}
|
||||
|
||||
public String getReceiverAddress() {
|
||||
return receiverAddress;
|
||||
}
|
||||
|
||||
public void setReceiverAddress(String receiverAddress) {
|
||||
this.receiverAddress = receiverAddress;
|
||||
}
|
||||
|
||||
public String getReceiverCity() {
|
||||
return receiverCity;
|
||||
}
|
||||
|
||||
public void setReceiverCity(String receiverCity) {
|
||||
this.receiverCity = receiverCity;
|
||||
}
|
||||
|
||||
public String getSendPutString() {
|
||||
return sendPutString;
|
||||
}
|
||||
|
||||
public void setSendPutString(String sendPutString) {
|
||||
this.sendPutString = sendPutString;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatusOver() {
|
||||
return statusOver;
|
||||
}
|
||||
|
||||
public void setStatusOver(String statusOver) {
|
||||
this.statusOver = statusOver;
|
||||
}
|
||||
|
||||
public String getTotalFreight() {
|
||||
return totalFreight;
|
||||
}
|
||||
|
||||
public void setTotalFreight(String totalFreight) {
|
||||
this.totalFreight = totalFreight;
|
||||
}
|
||||
|
||||
public String getVehicleLength() {
|
||||
return vehicleLength;
|
||||
}
|
||||
|
||||
public void setVehicleLength(String vehicleLength) {
|
||||
this.vehicleLength = vehicleLength;
|
||||
}
|
||||
|
||||
public String getVehicleType() {
|
||||
return vehicleType;
|
||||
}
|
||||
|
||||
public void setVehicleType(String vehicleType) {
|
||||
this.vehicleType = vehicleType;
|
||||
}
|
||||
|
||||
public int getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(int waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/1/12 17:52
|
||||
* @description:
|
||||
*/
|
||||
public class ImageConfig {
|
||||
|
||||
private int code;
|
||||
private List<DataDTO> data;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public List<DataDTO> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int countDownSecond;
|
||||
private int imageId;
|
||||
private int jumpType;
|
||||
private String jumpUrl;
|
||||
private String title;
|
||||
private String url;
|
||||
|
||||
public int getCountDownSecond() {
|
||||
return countDownSecond;
|
||||
}
|
||||
|
||||
public void setCountDownSecond(int countDownSecond) {
|
||||
this.countDownSecond = countDownSecond;
|
||||
}
|
||||
|
||||
public int getImageId() {
|
||||
return imageId;
|
||||
}
|
||||
|
||||
public void setImageId(int imageId) {
|
||||
this.imageId = imageId;
|
||||
}
|
||||
|
||||
public int getJumpType() {
|
||||
return jumpType;
|
||||
}
|
||||
|
||||
public void setJumpType(int jumpType) {
|
||||
this.jumpType = jumpType;
|
||||
}
|
||||
|
||||
public String getJumpUrl() {
|
||||
return jumpUrl;
|
||||
}
|
||||
|
||||
public void setJumpUrl(String jumpUrl) {
|
||||
this.jumpUrl = jumpUrl;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 15:26
|
||||
* @description:身份证认证信息
|
||||
*/
|
||||
public class IsAuthCardBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String idcard;
|
||||
private String idcardValidity;
|
||||
private int idcardPhoto;
|
||||
private String idcardPhotoUrl;
|
||||
private int idcardBackPhoto;
|
||||
private String idcardPhotoBackUrl;
|
||||
private String idcardAddress;
|
||||
private String idcardName;
|
||||
private int idcardSex;
|
||||
private int idCardStatus;
|
||||
private String idCardReason;
|
||||
private boolean edit;
|
||||
|
||||
public String getIdcard() {
|
||||
return idcard == null ? "" : idcard;
|
||||
}
|
||||
|
||||
public void setIdcard(String idcard) {
|
||||
this.idcard = idcard;
|
||||
}
|
||||
|
||||
public String getIdcardValidity() {
|
||||
return idcardValidity == null ? "" : idcardValidity;
|
||||
}
|
||||
|
||||
public void setIdcardValidity(String idcardValidity) {
|
||||
this.idcardValidity = idcardValidity;
|
||||
}
|
||||
|
||||
public int getIdcardPhoto() {
|
||||
return idcardPhoto;
|
||||
}
|
||||
|
||||
public void setIdcardPhoto(int idcardPhoto) {
|
||||
this.idcardPhoto = idcardPhoto;
|
||||
}
|
||||
|
||||
public String getIdcardPhotoUrl() {
|
||||
return idcardPhotoUrl == null ? "" : idcardPhotoUrl;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoUrl(String idcardPhotoUrl) {
|
||||
this.idcardPhotoUrl = idcardPhotoUrl;
|
||||
}
|
||||
|
||||
public int getIdcardBackPhoto() {
|
||||
return idcardBackPhoto;
|
||||
}
|
||||
|
||||
public void setIdcardBackPhoto(int idcardBackPhoto) {
|
||||
this.idcardBackPhoto = idcardBackPhoto;
|
||||
}
|
||||
|
||||
public String getIdcardPhotoBackUrl() {
|
||||
return idcardPhotoBackUrl == null ? "" : idcardPhotoBackUrl;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoBackUrl(String idcardPhotoBackUrl) {
|
||||
this.idcardPhotoBackUrl = idcardPhotoBackUrl;
|
||||
}
|
||||
|
||||
public String getIdcardAddress() {
|
||||
return idcardAddress == null ? "" : idcardAddress;
|
||||
}
|
||||
|
||||
public void setIdcardAddress(String idcardAddress) {
|
||||
this.idcardAddress = idcardAddress;
|
||||
}
|
||||
|
||||
public String getIdcardName() {
|
||||
return idcardName == null ? "" : idcardName;
|
||||
}
|
||||
|
||||
public void setIdcardName(String idcardName) {
|
||||
this.idcardName = idcardName;
|
||||
}
|
||||
|
||||
public int getIdcardSex() {
|
||||
return idcardSex;
|
||||
}
|
||||
|
||||
public void setIdcardSex(int idcardSex) {
|
||||
this.idcardSex = idcardSex;
|
||||
}
|
||||
|
||||
public int getIdCardStatus() {
|
||||
return idCardStatus;
|
||||
}
|
||||
|
||||
public void setIdCardStatus(int idCardStatus) {
|
||||
this.idCardStatus = idCardStatus;
|
||||
}
|
||||
|
||||
public String getIdCardReason() {
|
||||
return idCardReason == null ? "" : idCardReason;
|
||||
}
|
||||
|
||||
public void setIdCardReason(String idCardReason) {
|
||||
this.idCardReason = idCardReason;
|
||||
}
|
||||
|
||||
public boolean isEdit() {
|
||||
return edit;
|
||||
}
|
||||
|
||||
public void setEdit(boolean edit) {
|
||||
this.edit = edit;
|
||||
}
|
||||
}
|
||||
}
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 15:26
|
||||
* @description:驾驶证认证信息
|
||||
*/
|
||||
public class IsAuthDriverAuthLicenseBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String archivesName;
|
||||
private String driverLicense;
|
||||
private String driverLicenseName;
|
||||
private String allowType;
|
||||
private int driverLicensePhoto;
|
||||
private int driverLicenseBackPhoto;
|
||||
private String driverLicensePhotoUrl;
|
||||
private String driverLicenseBackPhotoUrl;
|
||||
private String driverLicenseFirstTime;
|
||||
private String driverLicenseValidity;
|
||||
private int driverLicenseStatus;
|
||||
private String driverLicenseReason;
|
||||
private boolean edit;
|
||||
|
||||
public String getArchivesName() {
|
||||
return archivesName == null ? "" : archivesName;
|
||||
}
|
||||
|
||||
public void setArchivesName(String archivesName) {
|
||||
this.archivesName = archivesName;
|
||||
}
|
||||
|
||||
public String getDriverLicense() {
|
||||
return driverLicense == null ? "" : driverLicense;
|
||||
}
|
||||
|
||||
public void setDriverLicense(String driverLicense) {
|
||||
this.driverLicense = driverLicense;
|
||||
}
|
||||
|
||||
public String getDriverLicenseName() {
|
||||
return driverLicenseName == null ? "" : driverLicenseName;
|
||||
}
|
||||
|
||||
public void setDriverLicenseName(String driverLicenseName) {
|
||||
this.driverLicenseName = driverLicenseName;
|
||||
}
|
||||
|
||||
public String getAllowType() {
|
||||
return allowType == null ? "" : allowType;
|
||||
}
|
||||
|
||||
public void setAllowType(String allowType) {
|
||||
this.allowType = allowType;
|
||||
}
|
||||
|
||||
public int getDriverLicensePhoto() {
|
||||
return driverLicensePhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhoto(int driverLicensePhoto) {
|
||||
this.driverLicensePhoto = driverLicensePhoto;
|
||||
}
|
||||
|
||||
public int getDriverLicenseBackPhoto() {
|
||||
return driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicenseBackPhoto(int driverLicenseBackPhoto) {
|
||||
this.driverLicenseBackPhoto = driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public String getDriverLicensePhotoUrl() {
|
||||
return driverLicensePhotoUrl == null ? "" : driverLicensePhotoUrl;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhotoUrl(String driverLicensePhotoUrl) {
|
||||
this.driverLicensePhotoUrl = driverLicensePhotoUrl;
|
||||
}
|
||||
|
||||
public String getDriverLicenseBackPhotoUrl() {
|
||||
return driverLicenseBackPhotoUrl == null ? "" : driverLicenseBackPhotoUrl;
|
||||
}
|
||||
|
||||
public void setDriverLicenseBackPhotoUrl(String driverLicenseBackPhotoUrl) {
|
||||
this.driverLicenseBackPhotoUrl = driverLicenseBackPhotoUrl;
|
||||
}
|
||||
|
||||
public String getDriverLicenseFirstTime() {
|
||||
return driverLicenseFirstTime == null ? "" : driverLicenseFirstTime;
|
||||
}
|
||||
|
||||
public void setDriverLicenseFirstTime(String driverLicenseFirstTime) {
|
||||
this.driverLicenseFirstTime = driverLicenseFirstTime;
|
||||
}
|
||||
|
||||
public String getDriverLicenseValidity() {
|
||||
return driverLicenseValidity == null ? "" : driverLicenseValidity;
|
||||
}
|
||||
|
||||
public void setDriverLicenseValidity(String driverLicenseValidity) {
|
||||
this.driverLicenseValidity = driverLicenseValidity;
|
||||
}
|
||||
|
||||
public int getDriverLicenseStatus() {
|
||||
return driverLicenseStatus;
|
||||
}
|
||||
|
||||
public void setDriverLicenseStatus(int driverLicenseStatus) {
|
||||
this.driverLicenseStatus = driverLicenseStatus;
|
||||
}
|
||||
|
||||
public String getDriverLicenseReason() {
|
||||
return driverLicenseReason == null ? "" : driverLicenseReason;
|
||||
}
|
||||
|
||||
public void setDriverLicenseReason(String driverLicenseReason) {
|
||||
this.driverLicenseReason = driverLicenseReason;
|
||||
}
|
||||
|
||||
public boolean isEdit() {
|
||||
return edit;
|
||||
}
|
||||
|
||||
public void setEdit(boolean edit) {
|
||||
this.edit = edit;
|
||||
}
|
||||
}
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/1 18:58
|
||||
* @description:
|
||||
*/
|
||||
public class IsAuthDriverAuthQualificationBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private int res;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private boolean edit;
|
||||
private String qualificationCertificate;
|
||||
private int qualificationCertificatePhoto;
|
||||
private String qualificationCertificatePhotoUrl;
|
||||
private String qualificationCertificateReason;
|
||||
private int qualificationCertificateStatus;
|
||||
private String qualificationCertificateValidity;
|
||||
|
||||
public boolean isEdit() {
|
||||
return edit;
|
||||
}
|
||||
|
||||
public void setEdit(boolean edit) {
|
||||
this.edit = edit;
|
||||
}
|
||||
|
||||
public String getQualificationCertificate() {
|
||||
return qualificationCertificate == null ? "" : qualificationCertificate;
|
||||
}
|
||||
|
||||
public void setQualificationCertificate(String qualificationCertificate) {
|
||||
this.qualificationCertificate = qualificationCertificate;
|
||||
}
|
||||
|
||||
public int getQualificationCertificatePhoto() {
|
||||
return qualificationCertificatePhoto;
|
||||
}
|
||||
|
||||
public void setQualificationCertificatePhoto(int qualificationCertificatePhoto) {
|
||||
this.qualificationCertificatePhoto = qualificationCertificatePhoto;
|
||||
}
|
||||
|
||||
public String getQualificationCertificatePhotoUrl() {
|
||||
return qualificationCertificatePhotoUrl == null ? "" : qualificationCertificatePhotoUrl;
|
||||
}
|
||||
|
||||
public void setQualificationCertificatePhotoUrl(String qualificationCertificatePhotoUrl) {
|
||||
this.qualificationCertificatePhotoUrl = qualificationCertificatePhotoUrl;
|
||||
}
|
||||
|
||||
public String getQualificationCertificateReason() {
|
||||
return qualificationCertificateReason == null ? "" : qualificationCertificateReason;
|
||||
}
|
||||
|
||||
public void setQualificationCertificateReason(String qualificationCertificateReason) {
|
||||
this.qualificationCertificateReason = qualificationCertificateReason;
|
||||
}
|
||||
|
||||
public int getQualificationCertificateStatus() {
|
||||
return qualificationCertificateStatus;
|
||||
}
|
||||
|
||||
public void setQualificationCertificateStatus(int qualificationCertificateStatus) {
|
||||
this.qualificationCertificateStatus = qualificationCertificateStatus;
|
||||
}
|
||||
|
||||
public String getQualificationCertificateValidity() {
|
||||
return qualificationCertificateValidity == null ? "" : qualificationCertificateValidity;
|
||||
}
|
||||
|
||||
public void setQualificationCertificateValidity(String qualificationCertificateValidity) {
|
||||
this.qualificationCertificateValidity = qualificationCertificateValidity;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/2/16 17:37
|
||||
* @description:
|
||||
*/
|
||||
public class JTT {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String createTime;
|
||||
private boolean delFlag;
|
||||
private int id;
|
||||
private String trafficCode;
|
||||
private String trafficId;
|
||||
private String trafficName;
|
||||
private String trafficNum;
|
||||
private String trafficSecret;
|
||||
private String trafficType;
|
||||
private String updateTime;
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public boolean isDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(boolean delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTrafficCode() {
|
||||
return trafficCode;
|
||||
}
|
||||
|
||||
public void setTrafficCode(String trafficCode) {
|
||||
this.trafficCode = trafficCode;
|
||||
}
|
||||
|
||||
public String getTrafficId() {
|
||||
return trafficId;
|
||||
}
|
||||
|
||||
public void setTrafficId(String trafficId) {
|
||||
this.trafficId = trafficId;
|
||||
}
|
||||
|
||||
public String getTrafficName() {
|
||||
return trafficName;
|
||||
}
|
||||
|
||||
public void setTrafficName(String trafficName) {
|
||||
this.trafficName = trafficName;
|
||||
}
|
||||
|
||||
public String getTrafficNum() {
|
||||
return trafficNum;
|
||||
}
|
||||
|
||||
public void setTrafficNum(String trafficNum) {
|
||||
this.trafficNum = trafficNum;
|
||||
}
|
||||
|
||||
public String getTrafficSecret() {
|
||||
return trafficSecret;
|
||||
}
|
||||
|
||||
public void setTrafficSecret(String trafficSecret) {
|
||||
this.trafficSecret = trafficSecret;
|
||||
}
|
||||
|
||||
public String getTrafficType() {
|
||||
return trafficType;
|
||||
}
|
||||
|
||||
public void setTrafficType(String trafficType) {
|
||||
this.trafficType = trafficType;
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/2 10:24
|
||||
* @description:
|
||||
*/
|
||||
public class LoginBean {
|
||||
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String token;
|
||||
private int id;
|
||||
private int roleId;
|
||||
private String uname;
|
||||
private String registerPhone;
|
||||
private String rname;
|
||||
private Object companyName;
|
||||
private Object account;
|
||||
private Object credit;
|
||||
private Object surplusCredit;
|
||||
private Object etcBalance;
|
||||
private Object oliBalance;
|
||||
private Object invoiceMoney;
|
||||
private String headportraitUrl;
|
||||
private String salt;
|
||||
private String jumpUrl;
|
||||
private Object auditStatus;
|
||||
private Object distance;
|
||||
private Object waybillNum;
|
||||
private Object idCardValidity;
|
||||
private Object driverValidity;
|
||||
private Object qualificationValidity;
|
||||
private Object isCar;
|
||||
private Object qrcodeUrl;
|
||||
|
||||
public String getToken() {
|
||||
return token == null ? "" : token;
|
||||
}
|
||||
|
||||
public void setToken(String token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(int roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname == null ? "" : uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getRegisterPhone() {
|
||||
return registerPhone == null ? "" : registerPhone;
|
||||
}
|
||||
|
||||
public void setRegisterPhone(String registerPhone) {
|
||||
this.registerPhone = registerPhone;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname == null ? "" : rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public Object getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(Object companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public Object getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(Object account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public Object getCredit() {
|
||||
return credit;
|
||||
}
|
||||
|
||||
public void setCredit(Object credit) {
|
||||
this.credit = credit;
|
||||
}
|
||||
|
||||
public Object getSurplusCredit() {
|
||||
return surplusCredit;
|
||||
}
|
||||
|
||||
public void setSurplusCredit(Object surplusCredit) {
|
||||
this.surplusCredit = surplusCredit;
|
||||
}
|
||||
|
||||
public Object getEtcBalance() {
|
||||
return etcBalance;
|
||||
}
|
||||
|
||||
public void setEtcBalance(Object etcBalance) {
|
||||
this.etcBalance = etcBalance;
|
||||
}
|
||||
|
||||
public Object getOliBalance() {
|
||||
return oliBalance;
|
||||
}
|
||||
|
||||
public void setOliBalance(Object oliBalance) {
|
||||
this.oliBalance = oliBalance;
|
||||
}
|
||||
|
||||
public Object getInvoiceMoney() {
|
||||
return invoiceMoney;
|
||||
}
|
||||
|
||||
public void setInvoiceMoney(Object invoiceMoney) {
|
||||
this.invoiceMoney = invoiceMoney;
|
||||
}
|
||||
|
||||
public String getHeadportraitUrl() {
|
||||
return headportraitUrl == null ? "" : headportraitUrl;
|
||||
}
|
||||
|
||||
public void setHeadportraitUrl(String headportraitUrl) {
|
||||
this.headportraitUrl = headportraitUrl;
|
||||
}
|
||||
|
||||
public String getSalt() {
|
||||
return salt == null ? "" : salt;
|
||||
}
|
||||
|
||||
public void setSalt(String salt) {
|
||||
this.salt = salt;
|
||||
}
|
||||
|
||||
public String getJumpUrl() {
|
||||
return jumpUrl == null ? "" : jumpUrl;
|
||||
}
|
||||
|
||||
public void setJumpUrl(String jumpUrl) {
|
||||
this.jumpUrl = jumpUrl;
|
||||
}
|
||||
|
||||
public Object getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(Object auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public Object getDistance() {
|
||||
return distance;
|
||||
}
|
||||
|
||||
public void setDistance(Object distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public Object getWaybillNum() {
|
||||
return waybillNum;
|
||||
}
|
||||
|
||||
public void setWaybillNum(Object waybillNum) {
|
||||
this.waybillNum = waybillNum;
|
||||
}
|
||||
|
||||
public Object getIdCardValidity() {
|
||||
return idCardValidity;
|
||||
}
|
||||
|
||||
public void setIdCardValidity(Object idCardValidity) {
|
||||
this.idCardValidity = idCardValidity;
|
||||
}
|
||||
|
||||
public Object getDriverValidity() {
|
||||
return driverValidity;
|
||||
}
|
||||
|
||||
public void setDriverValidity(Object driverValidity) {
|
||||
this.driverValidity = driverValidity;
|
||||
}
|
||||
|
||||
public Object getQualificationValidity() {
|
||||
return qualificationValidity;
|
||||
}
|
||||
|
||||
public void setQualificationValidity(Object qualificationValidity) {
|
||||
this.qualificationValidity = qualificationValidity;
|
||||
}
|
||||
|
||||
public Object getIsCar() {
|
||||
return isCar;
|
||||
}
|
||||
|
||||
public void setIsCar(Object isCar) {
|
||||
this.isCar = isCar;
|
||||
}
|
||||
|
||||
public Object getQrcodeUrl() {
|
||||
return qrcodeUrl;
|
||||
}
|
||||
|
||||
public void setQrcodeUrl(Object qrcodeUrl) {
|
||||
this.qrcodeUrl = qrcodeUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/6 14:28
|
||||
* @description:
|
||||
*/
|
||||
public class MsgBean {
|
||||
|
||||
|
||||
private int code;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
public class OCRBankBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private String url;
|
||||
private String bankCardNumber;
|
||||
private String validDate;
|
||||
private String bankCardType;
|
||||
private String bankName;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getBankCardNumber() {
|
||||
return bankCardNumber == null ? "" : bankCardNumber;
|
||||
}
|
||||
|
||||
public void setBankCardNumber(String bankCardNumber) {
|
||||
this.bankCardNumber = bankCardNumber;
|
||||
}
|
||||
|
||||
public String getValidDate() {
|
||||
return validDate == null ? "" : validDate;
|
||||
}
|
||||
|
||||
public void setValidDate(String validDate) {
|
||||
this.validDate = validDate;
|
||||
}
|
||||
|
||||
public String getBankCardType() {
|
||||
return bankCardType == null ? "" : bankCardType;
|
||||
}
|
||||
|
||||
public void setBankCardType(String bankCardType) {
|
||||
this.bankCardType = bankCardType;
|
||||
}
|
||||
|
||||
public String getBankName() {
|
||||
return bankName == null ? "" : bankName;
|
||||
}
|
||||
|
||||
public void setBankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 10:10
|
||||
* @description:身份证背面实体类
|
||||
*/
|
||||
public class OCRCardBackBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private String url;
|
||||
private String startTime;
|
||||
private String endTime;
|
||||
private String organizationName;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getStartTime() {
|
||||
return startTime == null ? "" : startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime == null ? "" : endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getOrganizationName() {
|
||||
return organizationName == null ? "" : organizationName;
|
||||
}
|
||||
|
||||
public void setOrganizationName(String organizationName) {
|
||||
this.organizationName = organizationName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 10:05
|
||||
* @description:身份证实体类
|
||||
*/
|
||||
public class OCRCardBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private String url;
|
||||
private String name;
|
||||
private String nation;
|
||||
private String address;
|
||||
private String cardId;
|
||||
private String birthday;
|
||||
private String sex;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNation() {
|
||||
return nation == null ? "" : nation;
|
||||
}
|
||||
|
||||
public void setNation(String nation) {
|
||||
this.nation = nation;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getCardId() {
|
||||
return cardId == null ? "" : cardId;
|
||||
}
|
||||
|
||||
public void setCardId(String cardId) {
|
||||
this.cardId = cardId;
|
||||
}
|
||||
|
||||
public String getBirthday() {
|
||||
return birthday == null ? "" : birthday;
|
||||
}
|
||||
|
||||
public void setBirthday(String birthday) {
|
||||
this.birthday = birthday;
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex == null ? "" : sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 10:21
|
||||
* @description:
|
||||
*/
|
||||
public class OCRDrivingLicenseBackBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private String url;
|
||||
private String archivesName;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getArchivesName() {
|
||||
return archivesName == null ? "" : archivesName;
|
||||
}
|
||||
|
||||
public void setArchivesName(String archivesName) {
|
||||
this.archivesName = archivesName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 10:21
|
||||
* @description:
|
||||
*/
|
||||
public class OCRDrivingLicenseBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private String url;
|
||||
private String name;
|
||||
private String endTime;
|
||||
private String number;
|
||||
private String birthday;
|
||||
private String address;
|
||||
private String organizationName;
|
||||
private String country;
|
||||
private String firstTime;
|
||||
private String allowType;
|
||||
private String sex;
|
||||
private String startTime;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime == null ? "" : endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getNumber() {
|
||||
return number == null ? "" : number;
|
||||
}
|
||||
|
||||
public void setNumber(String number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getBirthday() {
|
||||
return birthday == null ? "" : birthday;
|
||||
}
|
||||
|
||||
public void setBirthday(String birthday) {
|
||||
this.birthday = birthday;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getOrganizationName() {
|
||||
return organizationName == null ? "" : organizationName;
|
||||
}
|
||||
|
||||
public void setOrganizationName(String organizationName) {
|
||||
this.organizationName = organizationName;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country == null ? "" : country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public String getFirstTime() {
|
||||
return firstTime == null ? "" : firstTime;
|
||||
}
|
||||
|
||||
public void setFirstTime(String firstTime) {
|
||||
this.firstTime = firstTime;
|
||||
}
|
||||
|
||||
public String getAllowType() {
|
||||
return allowType == null ? "" : allowType;
|
||||
}
|
||||
|
||||
public void setAllowType(String allowType) {
|
||||
this.allowType = allowType;
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex == null ? "" : sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getStartTime() {
|
||||
return startTime == null ? "" : startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(String startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 10:35
|
||||
* @description:ocr行驶证副页实体类
|
||||
*/
|
||||
public class OCRVehicleBackLicenseBean {
|
||||
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private String url;
|
||||
private String checkRecord;
|
||||
private String approvedCapacity;
|
||||
private String allCapacity;
|
||||
private String size;
|
||||
private String personCapacity;
|
||||
private String allAuality;
|
||||
private String fuelType;
|
||||
private String towAuality;
|
||||
private String remark;
|
||||
private String fileNumber;
|
||||
private String carNumber;
|
||||
private int licenseId;
|
||||
|
||||
public int getLicenseId() {
|
||||
return licenseId;
|
||||
}
|
||||
|
||||
public void setLicenseId(int licenseId) {
|
||||
this.licenseId = licenseId;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getCheckRecord() {
|
||||
return checkRecord == null ? "" : checkRecord;
|
||||
}
|
||||
|
||||
public void setCheckRecord(String checkRecord) {
|
||||
this.checkRecord = checkRecord;
|
||||
}
|
||||
|
||||
public String getApprovedCapacity() {
|
||||
return approvedCapacity == null ? "" : approvedCapacity;
|
||||
}
|
||||
|
||||
public void setApprovedCapacity(String approvedCapacity) {
|
||||
this.approvedCapacity = approvedCapacity;
|
||||
}
|
||||
|
||||
public String getAllCapacity() {
|
||||
return allCapacity == null ? "" : allCapacity;
|
||||
}
|
||||
|
||||
public void setAllCapacity(String allCapacity) {
|
||||
this.allCapacity = allCapacity;
|
||||
}
|
||||
|
||||
public String getSize() {
|
||||
return size == null ? "" : size;
|
||||
}
|
||||
|
||||
public void setSize(String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public String getPersonCapacity() {
|
||||
return personCapacity == null ? "" : personCapacity;
|
||||
}
|
||||
|
||||
public void setPersonCapacity(String personCapacity) {
|
||||
this.personCapacity = personCapacity;
|
||||
}
|
||||
|
||||
public String getAllAuality() {
|
||||
return allAuality == null ? "" : allAuality;
|
||||
}
|
||||
|
||||
public void setAllAuality(String allAuality) {
|
||||
this.allAuality = allAuality;
|
||||
}
|
||||
|
||||
public String getFuelType() {
|
||||
return fuelType == null ? "" : fuelType;
|
||||
}
|
||||
|
||||
public void setFuelType(String fuelType) {
|
||||
this.fuelType = fuelType;
|
||||
}
|
||||
|
||||
public String getTowAuality() {
|
||||
return towAuality == null ? "" : towAuality;
|
||||
}
|
||||
|
||||
public void setTowAuality(String towAuality) {
|
||||
this.towAuality = towAuality;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark == null ? "" : remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getFileNumber() {
|
||||
return fileNumber == null ? "" : fileNumber;
|
||||
}
|
||||
|
||||
public void setFileNumber(String fileNumber) {
|
||||
this.fileNumber = fileNumber;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/18 9:36
|
||||
* @description:
|
||||
*/
|
||||
public class OCRVehicleLicenseBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String address;
|
||||
private int carId;
|
||||
private String carNumber;
|
||||
private String dateIssue;
|
||||
private String engineNumber;
|
||||
private int id;
|
||||
private String model;
|
||||
private String nature;
|
||||
private String organizationName;
|
||||
private String owner;
|
||||
private String reisterDate;
|
||||
private String type;
|
||||
private String url;
|
||||
private String vehicleNumber;
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public int getCarId() {
|
||||
return carId;
|
||||
}
|
||||
|
||||
public void setCarId(int carId) {
|
||||
this.carId = carId;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public String getDateIssue() {
|
||||
return dateIssue == null ? "" : dateIssue;
|
||||
}
|
||||
|
||||
public void setDateIssue(String dateIssue) {
|
||||
this.dateIssue = dateIssue;
|
||||
}
|
||||
|
||||
public String getEngineNumber() {
|
||||
return engineNumber == null ? "" : engineNumber;
|
||||
}
|
||||
|
||||
public void setEngineNumber(String engineNumber) {
|
||||
this.engineNumber = engineNumber;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model == null ? "" : model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getNature() {
|
||||
return nature == null ? "" : nature;
|
||||
}
|
||||
|
||||
public void setNature(String nature) {
|
||||
this.nature = nature;
|
||||
}
|
||||
|
||||
public String getOrganizationName() {
|
||||
return organizationName == null ? "" : organizationName;
|
||||
}
|
||||
|
||||
public void setOrganizationName(String organizationName) {
|
||||
this.organizationName = organizationName;
|
||||
}
|
||||
|
||||
public String getOwner() {
|
||||
return owner == null ? "" : owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public String getReisterDate() {
|
||||
return reisterDate == null ? "" : reisterDate;
|
||||
}
|
||||
|
||||
public void setReisterDate(String reisterDate) {
|
||||
this.reisterDate = reisterDate;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type == null ? "" : type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getVehicleNumber() {
|
||||
return vehicleNumber == null ? "" : vehicleNumber;
|
||||
}
|
||||
|
||||
public void setVehicleNumber(String vehicleNumber) {
|
||||
this.vehicleNumber = vehicleNumber;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
public class ORCIDBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private int res;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String address;
|
||||
private String birthday;
|
||||
private String cardId;
|
||||
private int id;
|
||||
private String name;
|
||||
private String nation;
|
||||
private String sex;
|
||||
private String url;
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getBirthday() {
|
||||
return birthday == null ? "" : birthday;
|
||||
}
|
||||
|
||||
public void setBirthday(String birthday) {
|
||||
this.birthday = birthday;
|
||||
}
|
||||
|
||||
public String getCardId() {
|
||||
return cardId == null ? "" : cardId;
|
||||
}
|
||||
|
||||
public void setCardId(String cardId) {
|
||||
this.cardId = cardId;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNation() {
|
||||
return nation == null ? "" : nation;
|
||||
}
|
||||
|
||||
public void setNation(String nation) {
|
||||
this.nation = nation;
|
||||
}
|
||||
|
||||
public String getSex() {
|
||||
return sex == null ? "" : sex;
|
||||
}
|
||||
|
||||
public void setSex(String sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/6 10:40
|
||||
* @description:运单列表实体类
|
||||
*/
|
||||
public class OrderListBean {
|
||||
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int num;
|
||||
private String totalFreight;
|
||||
private List<ListDTO> list;
|
||||
|
||||
public int getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setNum(int num) {
|
||||
this.num = num;
|
||||
}
|
||||
|
||||
public String getTotalFreight() {
|
||||
return totalFreight == null ? "" : totalFreight;
|
||||
}
|
||||
|
||||
public void setTotalFreight(String totalFreight) {
|
||||
this.totalFreight = totalFreight;
|
||||
}
|
||||
|
||||
public List<ListDTO> getList() {
|
||||
if (list == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<ListDTO> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
public static class ListDTO {
|
||||
private int orderId;
|
||||
private String orderNum;
|
||||
private String waybillNum;
|
||||
private String orderTime;
|
||||
private String totalFreight;
|
||||
private int dispatchType;
|
||||
private String effectiveTime;
|
||||
private String sendPutString;
|
||||
private String distance;
|
||||
private String loadingAddress;
|
||||
private String receiverAddress;
|
||||
private int waybillStatus;
|
||||
private int evaluation;
|
||||
private int complaint;
|
||||
private Object multipleScore;
|
||||
|
||||
public int getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(int orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public String getOrderNum() {
|
||||
return orderNum == null ? "" : orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getWaybillNum() {
|
||||
return waybillNum == null ? "" : waybillNum;
|
||||
}
|
||||
|
||||
public void setWaybillNum(String waybillNum) {
|
||||
this.waybillNum = waybillNum;
|
||||
}
|
||||
|
||||
public String getOrderTime() {
|
||||
return orderTime == null ? "" : orderTime;
|
||||
}
|
||||
|
||||
public void setOrderTime(String orderTime) {
|
||||
this.orderTime = orderTime;
|
||||
}
|
||||
|
||||
public String getTotalFreight() {
|
||||
return totalFreight == null ? "" : totalFreight;
|
||||
}
|
||||
|
||||
public void setTotalFreight(String totalFreight) {
|
||||
this.totalFreight = totalFreight;
|
||||
}
|
||||
|
||||
public int getDispatchType() {
|
||||
return dispatchType;
|
||||
}
|
||||
|
||||
public void setDispatchType(int dispatchType) {
|
||||
this.dispatchType = dispatchType;
|
||||
}
|
||||
|
||||
public String getEffectiveTime() {
|
||||
return effectiveTime == null ? "" : effectiveTime;
|
||||
}
|
||||
|
||||
public void setEffectiveTime(String effectiveTime) {
|
||||
this.effectiveTime = effectiveTime;
|
||||
}
|
||||
|
||||
public String getSendPutString() {
|
||||
return sendPutString == null ? "" : sendPutString;
|
||||
}
|
||||
|
||||
public void setSendPutString(String sendPutString) {
|
||||
this.sendPutString = sendPutString;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance == null ? "" : distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public String getLoadingAddress() {
|
||||
return loadingAddress == null ? "" : loadingAddress;
|
||||
}
|
||||
|
||||
public void setLoadingAddress(String loadingAddress) {
|
||||
this.loadingAddress = loadingAddress;
|
||||
}
|
||||
|
||||
public String getReceiverAddress() {
|
||||
return receiverAddress == null ? "" : receiverAddress;
|
||||
}
|
||||
|
||||
public void setReceiverAddress(String receiverAddress) {
|
||||
this.receiverAddress = receiverAddress;
|
||||
}
|
||||
|
||||
public int getWaybillStatus() {
|
||||
return waybillStatus;
|
||||
}
|
||||
|
||||
public void setWaybillStatus(int waybillStatus) {
|
||||
this.waybillStatus = waybillStatus;
|
||||
}
|
||||
|
||||
public int getEvaluation() {
|
||||
return evaluation;
|
||||
}
|
||||
|
||||
public void setEvaluation(int evaluation) {
|
||||
this.evaluation = evaluation;
|
||||
}
|
||||
|
||||
public int getComplaint() {
|
||||
return complaint;
|
||||
}
|
||||
|
||||
public void setComplaint(int complaint) {
|
||||
this.complaint = complaint;
|
||||
}
|
||||
|
||||
public Object getMultipleScore() {
|
||||
return multipleScore;
|
||||
}
|
||||
|
||||
public void setMultipleScore(Object multipleScore) {
|
||||
this.multipleScore = multipleScore;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import com.github.gzuliyujiang.wheelview.contract.TextProvider;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName SinglePickBean
|
||||
* @Author 用户
|
||||
* @Date 2022/4/22 17:00
|
||||
* @Description TODO
|
||||
*/
|
||||
public class SinglePickBean implements Serializable, TextProvider {
|
||||
|
||||
private String id;
|
||||
private String name;
|
||||
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String provideText() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,657 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/7 15:04
|
||||
* @description:执行中运单
|
||||
*/
|
||||
public class StartOrderBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String shippingNoteNumber;
|
||||
private String serialNumber;
|
||||
private String startCountrySubdivisionCode;
|
||||
private String endCountrySubdivisionCode;
|
||||
private String nfcId;
|
||||
private List<WayChildrenDTO> wayChildren;
|
||||
private int report;
|
||||
private int reportAlct;
|
||||
private String carType;
|
||||
private String carNumber;
|
||||
private Object driverName;
|
||||
private String acceptTime;
|
||||
private String waybillStatus;
|
||||
private String totalAmount;
|
||||
private String distance;
|
||||
private int avgScore;
|
||||
private int isEvaluation;
|
||||
private String contractUrl;
|
||||
private int waybillId;
|
||||
private int operation;
|
||||
|
||||
public int getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(int waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
|
||||
public String getShippingNoteNumber() {
|
||||
return shippingNoteNumber == null ? "" : shippingNoteNumber;
|
||||
}
|
||||
|
||||
public void setShippingNoteNumber(String shippingNoteNumber) {
|
||||
this.shippingNoteNumber = shippingNoteNumber;
|
||||
}
|
||||
|
||||
public String getSerialNumber() {
|
||||
return serialNumber == null ? "" : serialNumber;
|
||||
}
|
||||
|
||||
public void setSerialNumber(String serialNumber) {
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
public String getStartCountrySubdivisionCode() {
|
||||
return startCountrySubdivisionCode == null ? "" : startCountrySubdivisionCode;
|
||||
}
|
||||
|
||||
public void setStartCountrySubdivisionCode(String startCountrySubdivisionCode) {
|
||||
this.startCountrySubdivisionCode = startCountrySubdivisionCode;
|
||||
}
|
||||
|
||||
public String getEndCountrySubdivisionCode() {
|
||||
return endCountrySubdivisionCode == null ? "" : endCountrySubdivisionCode;
|
||||
}
|
||||
|
||||
public void setEndCountrySubdivisionCode(String endCountrySubdivisionCode) {
|
||||
this.endCountrySubdivisionCode = endCountrySubdivisionCode;
|
||||
}
|
||||
|
||||
public String getNfcId() {
|
||||
return nfcId == null ? "" : nfcId;
|
||||
}
|
||||
|
||||
public void setNfcId(String nfcId) {
|
||||
this.nfcId = nfcId;
|
||||
}
|
||||
|
||||
public List<WayChildrenDTO> getWayChildren() {
|
||||
if (wayChildren == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return wayChildren;
|
||||
}
|
||||
|
||||
public void setWayChildren(List<WayChildrenDTO> wayChildren) {
|
||||
this.wayChildren = wayChildren;
|
||||
}
|
||||
|
||||
public int getReport() {
|
||||
return report;
|
||||
}
|
||||
|
||||
public void setReport(int report) {
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
public int getReportAlct() {
|
||||
return reportAlct;
|
||||
}
|
||||
|
||||
public void setReportAlct(int reportAlct) {
|
||||
this.reportAlct = reportAlct;
|
||||
}
|
||||
|
||||
public String getCarType() {
|
||||
return carType == null ? "" : carType;
|
||||
}
|
||||
|
||||
public void setCarType(String carType) {
|
||||
this.carType = carType;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public Object getDriverName() {
|
||||
return driverName;
|
||||
}
|
||||
|
||||
public void setDriverName(Object driverName) {
|
||||
this.driverName = driverName;
|
||||
}
|
||||
|
||||
public String getAcceptTime() {
|
||||
return acceptTime == null ? "" : acceptTime;
|
||||
}
|
||||
|
||||
public void setAcceptTime(String acceptTime) {
|
||||
this.acceptTime = acceptTime;
|
||||
}
|
||||
|
||||
public String getWaybillStatus() {
|
||||
return waybillStatus == null ? "" : waybillStatus;
|
||||
}
|
||||
|
||||
public void setWaybillStatus(String waybillStatus) {
|
||||
this.waybillStatus = waybillStatus;
|
||||
}
|
||||
|
||||
public String getTotalAmount() {
|
||||
return totalAmount == null ? "" : totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(String totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance == null ? "" : distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public int getAvgScore() {
|
||||
return avgScore;
|
||||
}
|
||||
|
||||
public void setAvgScore(int avgScore) {
|
||||
this.avgScore = avgScore;
|
||||
}
|
||||
|
||||
public int getIsEvaluation() {
|
||||
return isEvaluation;
|
||||
}
|
||||
|
||||
public void setIsEvaluation(int isEvaluation) {
|
||||
this.isEvaluation = isEvaluation;
|
||||
}
|
||||
|
||||
public String getContractUrl() {
|
||||
return contractUrl == null ? "" : contractUrl;
|
||||
}
|
||||
|
||||
public void setContractUrl(String contractUrl) {
|
||||
this.contractUrl = contractUrl;
|
||||
}
|
||||
|
||||
public int getOperation() {
|
||||
return operation;
|
||||
}
|
||||
|
||||
public void setOperation(int operation) {
|
||||
this.operation = operation;
|
||||
}
|
||||
|
||||
public static class WayChildrenDTO {
|
||||
private long id;
|
||||
private int orderId;
|
||||
private String shippingNoteNumber;
|
||||
private Object name;
|
||||
private Object phone;
|
||||
private String address;
|
||||
private String displayOrder;
|
||||
private String deadline;
|
||||
private String deadlineDate;
|
||||
private int type;
|
||||
private String updateTime;
|
||||
private String realityTimeDate;
|
||||
private int status;
|
||||
private String longitude;
|
||||
private String latitude;
|
||||
private List<GoodsDTO> goods;
|
||||
private int report;
|
||||
private int reportAlct;
|
||||
private int delay;
|
||||
private List<String> receiptUrl;
|
||||
private String receiptTime;
|
||||
private String receiptLongitude;
|
||||
private String receiptLatitude;
|
||||
private String receiptLocationAddress;
|
||||
private List<String> sendPutImagesUrl;
|
||||
private String sendPutLongitude;
|
||||
private String sendPutLatitude;
|
||||
private String sendPutLocationAddress;
|
||||
private String carType;
|
||||
private String carNumber;
|
||||
private Object driverName;
|
||||
private String acceptTime;
|
||||
private String waybillStatus;
|
||||
private String totalAmount;
|
||||
private String distance;
|
||||
private int isEvaluation;
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getOrderId() {
|
||||
return orderId;
|
||||
}
|
||||
|
||||
public void setOrderId(int orderId) {
|
||||
this.orderId = orderId;
|
||||
}
|
||||
|
||||
public String getShippingNoteNumber() {
|
||||
return shippingNoteNumber == null ? "" : shippingNoteNumber;
|
||||
}
|
||||
|
||||
public void setShippingNoteNumber(String shippingNoteNumber) {
|
||||
this.shippingNoteNumber = shippingNoteNumber;
|
||||
}
|
||||
|
||||
public Object getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(Object name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Object getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(Object phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address == null ? "" : address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getDisplayOrder() {
|
||||
return displayOrder == null ? "" : displayOrder;
|
||||
}
|
||||
|
||||
public void setDisplayOrder(String displayOrder) {
|
||||
this.displayOrder = displayOrder;
|
||||
}
|
||||
|
||||
public String getDeadline() {
|
||||
return deadline == null ? "" : deadline;
|
||||
}
|
||||
|
||||
public void setDeadline(String deadline) {
|
||||
this.deadline = deadline;
|
||||
}
|
||||
|
||||
public String getDeadlineDate() {
|
||||
return deadlineDate == null ? "" : deadlineDate;
|
||||
}
|
||||
|
||||
public void setDeadlineDate(String deadlineDate) {
|
||||
this.deadlineDate = deadlineDate;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime == null ? "" : updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getRealityTimeDate() {
|
||||
return realityTimeDate == null ? "" : realityTimeDate;
|
||||
}
|
||||
|
||||
public void setRealityTimeDate(String realityTimeDate) {
|
||||
this.realityTimeDate = realityTimeDate;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude == null ? "" : longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude == null ? "" : latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public List<GoodsDTO> getGoods() {
|
||||
if (goods == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return goods;
|
||||
}
|
||||
|
||||
public void setGoods(List<GoodsDTO> goods) {
|
||||
this.goods = goods;
|
||||
}
|
||||
|
||||
public int getReport() {
|
||||
return report;
|
||||
}
|
||||
|
||||
public void setReport(int report) {
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
public int getReportAlct() {
|
||||
return reportAlct;
|
||||
}
|
||||
|
||||
public void setReportAlct(int reportAlct) {
|
||||
this.reportAlct = reportAlct;
|
||||
}
|
||||
|
||||
public int getDelay() {
|
||||
return delay;
|
||||
}
|
||||
|
||||
public void setDelay(int delay) {
|
||||
this.delay = delay;
|
||||
}
|
||||
|
||||
public List<String> getReceiptUrl() {
|
||||
if (receiptUrl == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return receiptUrl;
|
||||
}
|
||||
|
||||
public void setReceiptUrl(List<String> receiptUrl) {
|
||||
this.receiptUrl = receiptUrl;
|
||||
}
|
||||
|
||||
public String getReceiptTime() {
|
||||
return receiptTime == null ? "" : receiptTime;
|
||||
}
|
||||
|
||||
public void setReceiptTime(String receiptTime) {
|
||||
this.receiptTime = receiptTime;
|
||||
}
|
||||
|
||||
public String getReceiptLongitude() {
|
||||
return receiptLongitude == null ? "" : receiptLongitude;
|
||||
}
|
||||
|
||||
public void setReceiptLongitude(String receiptLongitude) {
|
||||
this.receiptLongitude = receiptLongitude;
|
||||
}
|
||||
|
||||
public String getReceiptLatitude() {
|
||||
return receiptLatitude == null ? "" : receiptLatitude;
|
||||
}
|
||||
|
||||
public void setReceiptLatitude(String receiptLatitude) {
|
||||
this.receiptLatitude = receiptLatitude;
|
||||
}
|
||||
|
||||
public String getReceiptLocationAddress() {
|
||||
return receiptLocationAddress == null ? "" : receiptLocationAddress;
|
||||
}
|
||||
|
||||
public void setReceiptLocationAddress(String receiptLocationAddress) {
|
||||
this.receiptLocationAddress = receiptLocationAddress;
|
||||
}
|
||||
|
||||
public List<String> getSendPutImagesUrl() {
|
||||
if (sendPutImagesUrl == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return sendPutImagesUrl;
|
||||
}
|
||||
|
||||
public void setSendPutImagesUrl(List<String> sendPutImagesUrl) {
|
||||
this.sendPutImagesUrl = sendPutImagesUrl;
|
||||
}
|
||||
|
||||
public String getSendPutLongitude() {
|
||||
return sendPutLongitude == null ? "" : sendPutLongitude;
|
||||
}
|
||||
|
||||
public void setSendPutLongitude(String sendPutLongitude) {
|
||||
this.sendPutLongitude = sendPutLongitude;
|
||||
}
|
||||
|
||||
public String getSendPutLatitude() {
|
||||
return sendPutLatitude == null ? "" : sendPutLatitude;
|
||||
}
|
||||
|
||||
public void setSendPutLatitude(String sendPutLatitude) {
|
||||
this.sendPutLatitude = sendPutLatitude;
|
||||
}
|
||||
|
||||
public String getSendPutLocationAddress() {
|
||||
return sendPutLocationAddress == null ? "" : sendPutLocationAddress;
|
||||
}
|
||||
|
||||
public void setSendPutLocationAddress(String sendPutLocationAddress) {
|
||||
this.sendPutLocationAddress = sendPutLocationAddress;
|
||||
}
|
||||
|
||||
public String getCarType() {
|
||||
return carType == null ? "" : carType;
|
||||
}
|
||||
|
||||
public void setCarType(String carType) {
|
||||
this.carType = carType;
|
||||
}
|
||||
|
||||
public String getCarNumber() {
|
||||
return carNumber == null ? "" : carNumber;
|
||||
}
|
||||
|
||||
public void setCarNumber(String carNumber) {
|
||||
this.carNumber = carNumber;
|
||||
}
|
||||
|
||||
public Object getDriverName() {
|
||||
return driverName;
|
||||
}
|
||||
|
||||
public void setDriverName(Object driverName) {
|
||||
this.driverName = driverName;
|
||||
}
|
||||
|
||||
public String getAcceptTime() {
|
||||
return acceptTime == null ? "" : acceptTime;
|
||||
}
|
||||
|
||||
public void setAcceptTime(String acceptTime) {
|
||||
this.acceptTime = acceptTime;
|
||||
}
|
||||
|
||||
public String getWaybillStatus() {
|
||||
return waybillStatus == null ? "" : waybillStatus;
|
||||
}
|
||||
|
||||
public void setWaybillStatus(String waybillStatus) {
|
||||
this.waybillStatus = waybillStatus;
|
||||
}
|
||||
|
||||
public String getTotalAmount() {
|
||||
return totalAmount == null ? "" : totalAmount;
|
||||
}
|
||||
|
||||
public void setTotalAmount(String totalAmount) {
|
||||
this.totalAmount = totalAmount;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance == null ? "" : distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public int getIsEvaluation() {
|
||||
return isEvaluation;
|
||||
}
|
||||
|
||||
public void setIsEvaluation(int isEvaluation) {
|
||||
this.isEvaluation = isEvaluation;
|
||||
}
|
||||
|
||||
public static class GoodsDTO {
|
||||
private int id;
|
||||
private Object childrenId;
|
||||
private String goodName;
|
||||
private String goodNum;
|
||||
private String goodUnit;
|
||||
private Object goodPrice;
|
||||
private String packName;
|
||||
private Object createTime;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Object getChildrenId() {
|
||||
return childrenId;
|
||||
}
|
||||
|
||||
public void setChildrenId(Object childrenId) {
|
||||
this.childrenId = childrenId;
|
||||
}
|
||||
|
||||
public String getGoodName() {
|
||||
return goodName == null ? "" : goodName;
|
||||
}
|
||||
|
||||
public void setGoodName(String goodName) {
|
||||
this.goodName = goodName;
|
||||
}
|
||||
|
||||
public String getGoodNum() {
|
||||
return goodNum == null ? "" : goodNum;
|
||||
}
|
||||
|
||||
public void setGoodNum(String goodNum) {
|
||||
this.goodNum = goodNum;
|
||||
}
|
||||
|
||||
public String getGoodUnit() {
|
||||
return goodUnit == null ? "" : goodUnit;
|
||||
}
|
||||
|
||||
public void setGoodUnit(String goodUnit) {
|
||||
this.goodUnit = goodUnit;
|
||||
}
|
||||
|
||||
public Object getGoodPrice() {
|
||||
return goodPrice;
|
||||
|
||||
}
|
||||
|
||||
public void setGoodPrice(Object goodPrice) {
|
||||
this.goodPrice = goodPrice;
|
||||
}
|
||||
|
||||
public String getPackName() {
|
||||
return packName == null ? "" : packName;
|
||||
}
|
||||
|
||||
public void setPackName(String packName) {
|
||||
this.packName = packName;
|
||||
}
|
||||
|
||||
public Object getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Object createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/1/4 10:03
|
||||
* @description:
|
||||
*/
|
||||
public class Subject {
|
||||
|
||||
/**
|
||||
* 问题
|
||||
*/
|
||||
private String problem;
|
||||
|
||||
|
||||
/**
|
||||
* 答案
|
||||
*/
|
||||
private List<Answer> list;
|
||||
|
||||
/**
|
||||
* 分值
|
||||
*/
|
||||
private int score;
|
||||
|
||||
public String getProblem() {
|
||||
return problem == null ? "" : problem;
|
||||
}
|
||||
|
||||
public void setProblem(String problem) {
|
||||
this.problem = problem;
|
||||
}
|
||||
|
||||
public List<Answer> getList() {
|
||||
if (list == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<Answer> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
public int getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(int score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
private class Answer{
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* 是否正确
|
||||
*/
|
||||
private int isCorrect;
|
||||
|
||||
public String getValue() {
|
||||
return value == null ? "" : value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int getIsCorrect() {
|
||||
return isCorrect;
|
||||
}
|
||||
|
||||
public void setIsCorrect(int isCorrect) {
|
||||
this.isCorrect = isCorrect;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
|
||||
public class Test {
|
||||
private String id;
|
||||
private String name;
|
||||
private String blog;
|
||||
|
||||
public Test(String id, String name, String blog) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.blog = blog;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id == null ? "" : id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getBlog() {
|
||||
return blog == null ? "" : blog;
|
||||
}
|
||||
|
||||
public void setBlog(String blog) {
|
||||
this.blog = blog;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 18:35
|
||||
* @description:
|
||||
*/
|
||||
public class UpAppBean {
|
||||
|
||||
private int code;
|
||||
private DataDTO data;
|
||||
private String msg;
|
||||
private int res;
|
||||
private boolean success;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String content;
|
||||
private String delete;
|
||||
private String downloadUrl;
|
||||
private String force;
|
||||
private String source;
|
||||
private String type;
|
||||
private String version;
|
||||
|
||||
public String getContent() {
|
||||
return content == null ? "" : content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getDelete() {
|
||||
return delete == null ? "" : delete;
|
||||
}
|
||||
|
||||
public void setDelete(String delete) {
|
||||
this.delete = delete;
|
||||
}
|
||||
|
||||
public String getDownloadUrl() {
|
||||
return downloadUrl == null ? "" : downloadUrl;
|
||||
}
|
||||
|
||||
public void setDownloadUrl(String downloadUrl) {
|
||||
this.downloadUrl = downloadUrl;
|
||||
}
|
||||
|
||||
public String getForce() {
|
||||
return force == null ? "" : force;
|
||||
}
|
||||
|
||||
public void setForce(String force) {
|
||||
this.force = force;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source == null ? "" : source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type == null ? "" : type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version == null ? "" : version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/16 18:06
|
||||
* @description:
|
||||
*/
|
||||
public class UploadBean{
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int id;
|
||||
private Object uuidName;
|
||||
private Object realName;
|
||||
private String sourcePath;
|
||||
private Object sourceSuffix;
|
||||
private Object sourceSize;
|
||||
private Object remark;
|
||||
private int createUser;
|
||||
private Object createTime;
|
||||
private Object folderid;
|
||||
private String name;
|
||||
private String url;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Object getUuidName() {
|
||||
return uuidName;
|
||||
}
|
||||
|
||||
public void setUuidName(Object uuidName) {
|
||||
this.uuidName = uuidName;
|
||||
}
|
||||
|
||||
public Object getRealName() {
|
||||
return realName;
|
||||
}
|
||||
|
||||
public void setRealName(Object realName) {
|
||||
this.realName = realName;
|
||||
}
|
||||
|
||||
public String getSourcePath() {
|
||||
return sourcePath == null ? "" : sourcePath;
|
||||
}
|
||||
|
||||
public void setSourcePath(String sourcePath) {
|
||||
this.sourcePath = sourcePath;
|
||||
}
|
||||
|
||||
public Object getSourceSuffix() {
|
||||
return sourceSuffix;
|
||||
}
|
||||
|
||||
public void setSourceSuffix(Object sourceSuffix) {
|
||||
this.sourceSuffix = sourceSuffix;
|
||||
}
|
||||
|
||||
public Object getSourceSize() {
|
||||
return sourceSize;
|
||||
}
|
||||
|
||||
public void setSourceSize(Object sourceSize) {
|
||||
this.sourceSize = sourceSize;
|
||||
}
|
||||
|
||||
public Object getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(Object remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public int getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(int createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public Object getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Object createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public Object getFolderid() {
|
||||
return folderid;
|
||||
}
|
||||
|
||||
public void setFolderid(Object folderid) {
|
||||
this.folderid = folderid;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name == null ? "" : name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url == null ? "" : url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,342 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
public class UserBean {
|
||||
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private String token;
|
||||
private int id;
|
||||
private int roleId;
|
||||
private String uname;
|
||||
private String registerPhone;
|
||||
private String rname;
|
||||
private String companyName;
|
||||
private String account;
|
||||
private String credit;
|
||||
private Object surplusCredit;
|
||||
private String etcBalance;
|
||||
private String oliBalance;
|
||||
private Object invoiceMoney;
|
||||
private String headportraitUrl;
|
||||
private Object salt;
|
||||
private Object jumpUrl;
|
||||
private int auditStatus;
|
||||
private String distance;
|
||||
private int waybillNum;
|
||||
private Object orderNum;
|
||||
private String idCardValidity;
|
||||
private String driverValidity;
|
||||
private String qualificationValidity;
|
||||
private int isCar;
|
||||
private String qrcodeUrl;
|
||||
private int partyMemberStatus;
|
||||
private String partyMemberTime;
|
||||
private String partyMemberUrl;
|
||||
private Object partyMemberReason;
|
||||
private String goodLuck;
|
||||
private String freight;
|
||||
private String realAuthentication;
|
||||
|
||||
public String getToken() {
|
||||
return token == null ? "" : token;
|
||||
}
|
||||
|
||||
public void setToken(String token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(int roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname == null ? "" : uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getRegisterPhone() {
|
||||
return registerPhone == null ? "" : registerPhone;
|
||||
}
|
||||
|
||||
public void setRegisterPhone(String registerPhone) {
|
||||
this.registerPhone = registerPhone;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname == null ? "" : rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName == null ? "" : companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account == null ? "" : account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getCredit() {
|
||||
return credit == null ? "" : credit;
|
||||
}
|
||||
|
||||
public void setCredit(String credit) {
|
||||
this.credit = credit;
|
||||
}
|
||||
|
||||
public Object getSurplusCredit() {
|
||||
return surplusCredit;
|
||||
}
|
||||
|
||||
public void setSurplusCredit(Object surplusCredit) {
|
||||
this.surplusCredit = surplusCredit;
|
||||
}
|
||||
|
||||
public String getEtcBalance() {
|
||||
return etcBalance == null ? "" : etcBalance;
|
||||
}
|
||||
|
||||
public void setEtcBalance(String etcBalance) {
|
||||
this.etcBalance = etcBalance;
|
||||
}
|
||||
|
||||
public String getOliBalance() {
|
||||
return oliBalance == null ? "" : oliBalance;
|
||||
}
|
||||
|
||||
public void setOliBalance(String oliBalance) {
|
||||
this.oliBalance = oliBalance;
|
||||
}
|
||||
|
||||
public Object getInvoiceMoney() {
|
||||
return invoiceMoney;
|
||||
}
|
||||
|
||||
public void setInvoiceMoney(Object invoiceMoney) {
|
||||
this.invoiceMoney = invoiceMoney;
|
||||
}
|
||||
|
||||
public String getHeadportraitUrl() {
|
||||
return headportraitUrl == null ? "" : headportraitUrl;
|
||||
}
|
||||
|
||||
public void setHeadportraitUrl(String headportraitUrl) {
|
||||
this.headportraitUrl = headportraitUrl;
|
||||
}
|
||||
|
||||
public Object getSalt() {
|
||||
return salt;
|
||||
}
|
||||
|
||||
public void setSalt(Object salt) {
|
||||
this.salt = salt;
|
||||
}
|
||||
|
||||
public Object getJumpUrl() {
|
||||
return jumpUrl;
|
||||
}
|
||||
|
||||
public void setJumpUrl(Object jumpUrl) {
|
||||
this.jumpUrl = jumpUrl;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance == null ? "" : distance;
|
||||
}
|
||||
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public int getWaybillNum() {
|
||||
return waybillNum;
|
||||
}
|
||||
|
||||
public void setWaybillNum(int waybillNum) {
|
||||
this.waybillNum = waybillNum;
|
||||
}
|
||||
|
||||
public Object getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(Object orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getIdCardValidity() {
|
||||
return idCardValidity == null ? "" : idCardValidity;
|
||||
}
|
||||
|
||||
public void setIdCardValidity(String idCardValidity) {
|
||||
this.idCardValidity = idCardValidity;
|
||||
}
|
||||
|
||||
public String getDriverValidity() {
|
||||
return driverValidity == null ? "" : driverValidity;
|
||||
}
|
||||
|
||||
public void setDriverValidity(String driverValidity) {
|
||||
this.driverValidity = driverValidity;
|
||||
}
|
||||
|
||||
public String getQualificationValidity() {
|
||||
return qualificationValidity == null ? "" : qualificationValidity;
|
||||
}
|
||||
|
||||
public void setQualificationValidity(String qualificationValidity) {
|
||||
this.qualificationValidity = qualificationValidity;
|
||||
}
|
||||
|
||||
public int getIsCar() {
|
||||
return isCar;
|
||||
}
|
||||
|
||||
public void setIsCar(int isCar) {
|
||||
this.isCar = isCar;
|
||||
}
|
||||
|
||||
public String getQrcodeUrl() {
|
||||
return qrcodeUrl == null ? "" : qrcodeUrl;
|
||||
}
|
||||
|
||||
public void setQrcodeUrl(String qrcodeUrl) {
|
||||
this.qrcodeUrl = qrcodeUrl;
|
||||
}
|
||||
|
||||
public int getPartyMemberStatus() {
|
||||
return partyMemberStatus;
|
||||
}
|
||||
|
||||
public void setPartyMemberStatus(int partyMemberStatus) {
|
||||
this.partyMemberStatus = partyMemberStatus;
|
||||
}
|
||||
|
||||
public String getPartyMemberTime() {
|
||||
return partyMemberTime == null ? "" : partyMemberTime;
|
||||
}
|
||||
|
||||
public void setPartyMemberTime(String partyMemberTime) {
|
||||
this.partyMemberTime = partyMemberTime;
|
||||
}
|
||||
|
||||
public String getPartyMemberUrl() {
|
||||
return partyMemberUrl == null ? "" : partyMemberUrl;
|
||||
}
|
||||
|
||||
public void setPartyMemberUrl(String partyMemberUrl) {
|
||||
this.partyMemberUrl = partyMemberUrl;
|
||||
}
|
||||
|
||||
public Object getPartyMemberReason() {
|
||||
return partyMemberReason;
|
||||
}
|
||||
|
||||
public void setPartyMemberReason(Object partyMemberReason) {
|
||||
this.partyMemberReason = partyMemberReason;
|
||||
}
|
||||
|
||||
public String getGoodLuck() {
|
||||
return goodLuck == null ? "" : goodLuck;
|
||||
}
|
||||
|
||||
public void setGoodLuck(String goodLuck) {
|
||||
this.goodLuck = goodLuck;
|
||||
}
|
||||
|
||||
public String getFreight() {
|
||||
return freight == null ? "" : freight;
|
||||
}
|
||||
|
||||
public void setFreight(String freight) {
|
||||
this.freight = freight;
|
||||
}
|
||||
|
||||
public String getRealAuthentication() {
|
||||
return realAuthentication == null ? "" : realAuthentication;
|
||||
}
|
||||
|
||||
public void setRealAuthentication(String realAuthentication) {
|
||||
this.realAuthentication = realAuthentication;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/28 18:51
|
||||
* @description:
|
||||
*/
|
||||
public class WNewsBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private List<DataDTO> data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<DataDTO> getData() {
|
||||
if (data == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int waybillId;
|
||||
private int attitudeScore;
|
||||
private int multipleScore;
|
||||
private String content;
|
||||
private String[] listImgUrl;
|
||||
private int appraiserId;
|
||||
private int type;
|
||||
private int folderId;
|
||||
private int status;
|
||||
|
||||
public int getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(int waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
|
||||
public int getAttitudeScore() {
|
||||
return attitudeScore;
|
||||
}
|
||||
|
||||
public void setAttitudeScore(int attitudeScore) {
|
||||
this.attitudeScore = attitudeScore;
|
||||
}
|
||||
|
||||
public int getMultipleScore() {
|
||||
return multipleScore;
|
||||
}
|
||||
|
||||
public void setMultipleScore(int multipleScore) {
|
||||
this.multipleScore = multipleScore;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content == null ? "" : content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String[] getListImgUrl() {
|
||||
return listImgUrl;
|
||||
}
|
||||
|
||||
public void setListImgUrl(String[] listImgUrl) {
|
||||
this.listImgUrl = listImgUrl;
|
||||
}
|
||||
|
||||
public int getAppraiserId() {
|
||||
return appraiserId;
|
||||
}
|
||||
|
||||
public void setAppraiserId(int appraiserId) {
|
||||
this.appraiserId = appraiserId;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getFolderId() {
|
||||
return folderId;
|
||||
}
|
||||
|
||||
public void setFolderId(int folderId) {
|
||||
this.folderId = folderId;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class XiaoXiBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private DataDTO data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public DataDTO getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(DataDTO data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private List<RecordsDTO> records;
|
||||
private int total;
|
||||
private int size;
|
||||
private int current;
|
||||
private List<?> orders;
|
||||
private boolean searchCount;
|
||||
private int pages;
|
||||
|
||||
public List<RecordsDTO> getRecords() {
|
||||
if (records == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return records;
|
||||
}
|
||||
|
||||
public void setRecords(List<RecordsDTO> records) {
|
||||
this.records = records;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return total;
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
}
|
||||
|
||||
public int getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(int size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getCurrent() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public void setCurrent(int current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
public List<?> getOrders() {
|
||||
if (orders == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return orders;
|
||||
}
|
||||
|
||||
public void setOrders(List<?> orders) {
|
||||
this.orders = orders;
|
||||
}
|
||||
|
||||
public boolean isSearchCount() {
|
||||
return searchCount;
|
||||
}
|
||||
|
||||
public void setSearchCount(boolean searchCount) {
|
||||
this.searchCount = searchCount;
|
||||
}
|
||||
|
||||
public int getPages() {
|
||||
return pages;
|
||||
}
|
||||
|
||||
public void setPages(int pages) {
|
||||
this.pages = pages;
|
||||
}
|
||||
|
||||
public static class RecordsDTO {
|
||||
private int id;
|
||||
private int cate;
|
||||
private String content;
|
||||
private int isRead;
|
||||
private int forwordType;
|
||||
private int forwordId;
|
||||
private int receiverId;
|
||||
private String receiverName;
|
||||
private int createUser;
|
||||
private String createUserName;
|
||||
private String createTime;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content == null ? "" : content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public int getIsRead() {
|
||||
return isRead;
|
||||
}
|
||||
|
||||
public void setIsRead(int isRead) {
|
||||
this.isRead = isRead;
|
||||
}
|
||||
|
||||
public int getForwordType() {
|
||||
return forwordType;
|
||||
}
|
||||
|
||||
public void setForwordType(int forwordType) {
|
||||
this.forwordType = forwordType;
|
||||
}
|
||||
|
||||
public int getForwordId() {
|
||||
return forwordId;
|
||||
}
|
||||
|
||||
public void setForwordId(int forwordId) {
|
||||
this.forwordId = forwordId;
|
||||
}
|
||||
|
||||
public int getReceiverId() {
|
||||
return receiverId;
|
||||
}
|
||||
|
||||
public void setReceiverId(int receiverId) {
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return receiverName == null ? "" : receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public int getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(int createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName == null ? "" : createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime == null ? "" : createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.bean;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/28 14:58
|
||||
* @description:
|
||||
*/
|
||||
public class XiaoXiListBean {
|
||||
|
||||
private int res;
|
||||
private int code;
|
||||
private boolean success;
|
||||
private String msg;
|
||||
private List<DataDTO> data;
|
||||
|
||||
public int getRes() {
|
||||
return res;
|
||||
}
|
||||
|
||||
public void setRes(int res) {
|
||||
this.res = res;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg == null ? "" : msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public List<DataDTO> getData() {
|
||||
if (data == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<DataDTO> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class DataDTO {
|
||||
private int count;
|
||||
private String messageTypeName;
|
||||
private int vcode;
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public String getMessageTypeName() {
|
||||
return messageTypeName == null ? "" : messageTypeName;
|
||||
}
|
||||
|
||||
public void setMessageTypeName(String messageTypeName) {
|
||||
this.messageTypeName = messageTypeName;
|
||||
}
|
||||
|
||||
public int getVcode() {
|
||||
return vcode;
|
||||
}
|
||||
|
||||
public void setVcode(int vcode) {
|
||||
this.vcode = vcode;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.constant;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/1/10 11:34
|
||||
* @description:交通厅参数
|
||||
*/
|
||||
public class JTTConstant {
|
||||
|
||||
public final static String JTT_DATA_NAME="jtt_data";
|
||||
|
||||
public final static String JTT_DATA_JTTORDER_KEY="JTT_order_key";
|
||||
|
||||
public final static String JTT_DATA_ORDER_KEY="order_key";
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.constant;
|
||||
|
||||
public enum LoginConstant {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
LOG_BG_IMG("bg"),
|
||||
NAV_TEXT("登录"),
|
||||
NAV_RETURN_IMG_PATH("bg"),
|
||||
LOG_BTN_TEXT("本机号码一键登录"),
|
||||
BTN_IMG_PATH("umcsdk_login_btn_bg"),
|
||||
TIAOKUAN_ONE("服务条款1"),TIAOKUAN_ONE_URL("www.baidu.com"),
|
||||
TIAOKUAN_TWO("服务条款2"),TIAOKUAN_TWO_URL("www.baidu.com");
|
||||
private String value;
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
LoginConstant(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.constant;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/29 10:16
|
||||
* @description:推送路径配置参数
|
||||
*/
|
||||
public class PushConstant {
|
||||
|
||||
public static final String BASE_URL = "/driver";
|
||||
|
||||
//主界面
|
||||
public static final String MAIN=BASE_URL+"/MainActivity";
|
||||
//主界面—货源大厅
|
||||
public static final String MAIN_ORDER=BASE_URL+"/Main_Order";
|
||||
//主界面-全部运单页
|
||||
public static final String ORDER_ALL=BASE_URL+"/OrderAllActivity";
|
||||
//主界面-货源详情页
|
||||
public static final String ORDER_DET=BASE_URL+"/OrderDetActivity";
|
||||
//
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.constant;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/1/26 10:00
|
||||
* @description:
|
||||
*/
|
||||
public class VersionUpLog {
|
||||
|
||||
/**
|
||||
* 3.0.8 升级内容平板电脑的ui适配
|
||||
*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.event;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/20 14:43
|
||||
* @description:
|
||||
*/
|
||||
public class HomeEvent {
|
||||
|
||||
private String message;
|
||||
|
||||
public HomeEvent(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.event;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/20 14:43
|
||||
* @description:
|
||||
*/
|
||||
public class PersonEvent {
|
||||
|
||||
private String message;
|
||||
|
||||
public PersonEvent(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.event;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/11/2 18:51
|
||||
* @description:
|
||||
*/
|
||||
public class VehicleEvent {
|
||||
private String message;
|
||||
|
||||
public VehicleEvent(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.parts;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.DriverAuthDataBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/9 15:39
|
||||
* @description:
|
||||
*/
|
||||
public class AuthParts {
|
||||
|
||||
private static Gson gson=new Gson();
|
||||
|
||||
public static DriverAuthDataBean getAuth(Context con){
|
||||
String authData=SPUtil.getSP(con,"data","authdata");
|
||||
Log.e("--data--",authData);
|
||||
if("".equals(authData)){
|
||||
return null;
|
||||
}else {
|
||||
return gson.fromJson(authData, DriverAuthDataBean.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void setAuth(Context con,DriverAuthDataBean auth){
|
||||
if(auth!=null){
|
||||
//组件修改
|
||||
|
||||
//数据修改
|
||||
SPUtil.insSP(con,"data","authdata",gson.toJson(auth));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.parts;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.ConfigBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/11 11:53
|
||||
* @description:配置
|
||||
*/
|
||||
public class ConfigParts {
|
||||
private static Gson gson=new Gson();
|
||||
|
||||
public static ConfigBean getConfigParts(Context con){
|
||||
String configBean= SPUtil.getSP(con,"data","configdata");
|
||||
if("".equals(configBean)){
|
||||
return null;
|
||||
}else {
|
||||
return gson.fromJson(configBean, ConfigBean.class);
|
||||
}
|
||||
}
|
||||
|
||||
public static void setParts(Context con,ConfigBean cb){
|
||||
if(cb!=null){
|
||||
//数据修改
|
||||
SPUtil.insSP(con,"data","configdata",gson.toJson(cb));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.parts;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.StartOrderBean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 9:05
|
||||
* @description:
|
||||
*/
|
||||
public class OrderParts {
|
||||
|
||||
private static Gson gson=new Gson();
|
||||
|
||||
public static StartOrderBean getOrder(String sob){
|
||||
return gson.fromJson(sob,StartOrderBean.class);
|
||||
}
|
||||
|
||||
public static void setOrder(Context con){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.parts;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.StartOrderBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/15 10:05
|
||||
* @description:执行中运单
|
||||
*/
|
||||
public class StartOrderParts {
|
||||
|
||||
private static Gson gson=new Gson();
|
||||
|
||||
public static StartOrderBean getStartOrder(Context con){
|
||||
String sob= SPUtil.getSP(con,"data","startOrder");
|
||||
if("".equals(sob)){
|
||||
return null;
|
||||
}else {
|
||||
return gson.fromJson(sob,StartOrderBean.class);
|
||||
}
|
||||
}
|
||||
public static void setStartOrder(Context con, StartOrderBean sob){
|
||||
if(sob!=null){
|
||||
SPUtil.insSP(con,"data","startOrder",gson.toJson(sob));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.parts;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.UserBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.wallet.WalletFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 8:32
|
||||
* @description:账户
|
||||
*/
|
||||
public class UserParts {
|
||||
|
||||
private static Gson gson=new Gson();
|
||||
//获取部件实例
|
||||
public static UserBean getUser(Context con){
|
||||
String userdata=SPUtil.getSP(con,"data","userdata");
|
||||
if("".equals(userdata)){
|
||||
return null;
|
||||
}else {
|
||||
return gson.fromJson(userdata,UserBean.class);
|
||||
}
|
||||
}
|
||||
public static void setUser(Context con,UserBean user){
|
||||
if(user!=null){
|
||||
//组件修改
|
||||
WalletFragment.account.setText(user.getData().getAccount());
|
||||
WalletFragment.userBean=user;
|
||||
//数据修改
|
||||
SPUtil.insSP(con,"data","userdata",gson.toJson(user));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.push;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.service.MakeUpService;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.HuoYunDelActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.StartYunDanActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.WelcomeActivity;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import cn.jpush.android.api.CmdMessage;
|
||||
import cn.jpush.android.api.CustomMessage;
|
||||
import cn.jpush.android.api.JPushInterface;
|
||||
import cn.jpush.android.api.JPushMessage;
|
||||
import cn.jpush.android.api.NotificationMessage;
|
||||
import cn.jpush.android.service.JPushMessageReceiver;
|
||||
|
||||
public class PushMessageReceiver extends JPushMessageReceiver {
|
||||
|
||||
private static final String TAG = "PushMessageReceiver";
|
||||
|
||||
@Override
|
||||
public void onMessage(Context context, CustomMessage customMessage) {
|
||||
Log.e(TAG, "[onMessage] " + customMessage);
|
||||
Intent intent = new Intent("com.jiguang.demo.message");
|
||||
intent.putExtra("msg", customMessage.message);
|
||||
context.sendBroadcast(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotifyMessageOpened(Context context, NotificationMessage message) {
|
||||
Log.e(TAG, "[onNotifyMessageOpened] " + message);
|
||||
try{
|
||||
//打开自定义的Activity
|
||||
JSONObject json=new JSONObject(message.notificationExtras);
|
||||
///driver/detail?id=810
|
||||
String url=json.getString("url");
|
||||
if(url.indexOf("driver/detail")!=-1){
|
||||
int id=Integer.parseInt(url.split("=")[1]);
|
||||
Log.e("-url-",url+"_"+id);
|
||||
Intent in=new Intent(context, HuoYunDelActivity.class);
|
||||
in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
in.putExtra("id",Integer.parseInt(url.split("=")[1]));
|
||||
context.startActivity(in);
|
||||
}else if(url.indexOf("driver/run/order")!=-1){
|
||||
Intent in=new Intent(context, StartYunDanActivity.class);
|
||||
in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
in.putExtra("id",0);
|
||||
context.startActivity(in);
|
||||
}
|
||||
|
||||
}catch (Throwable throwable){
|
||||
Log.e("123", "[onNotifyMessageOpened] " + message);
|
||||
Intent in=new Intent(context, WelcomeActivity.class);
|
||||
in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
context.startActivity(in);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMultiActionClicked(Context context, Intent intent) {
|
||||
Log.e(TAG, "[onMultiActionClicked] 用户点击了通知栏按钮");
|
||||
String nActionExtra = intent.getExtras().getString(JPushInterface.EXTRA_NOTIFICATION_ACTION_EXTRA);
|
||||
|
||||
//开发者根据不同 Action 携带的 extra 字段来分配不同的动作。
|
||||
if (nActionExtra == null) {
|
||||
Log.d(TAG, "ACTION_NOTIFICATION_CLICK_ACTION nActionExtra is null");
|
||||
return;
|
||||
}
|
||||
if (nActionExtra.equals("my_extra1")) {
|
||||
Log.e(TAG, "[onMultiActionClicked] 用户点击通知栏按钮一");
|
||||
} else if (nActionExtra.equals("my_extra2")) {
|
||||
Log.e(TAG, "[onMultiActionClicked] 用户点击通知栏按钮二");
|
||||
} else if (nActionExtra.equals("my_extra3")) {
|
||||
Log.e(TAG, "[onMultiActionClicked] 用户点击通知栏按钮三");
|
||||
} else {
|
||||
Log.e(TAG, "[onMultiActionClicked] 用户点击通知栏按钮未定义");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotifyMessageArrived(Context context,NotificationMessage message) {
|
||||
Log.e(TAG, "[onNotifyMessageArrived] " + message);
|
||||
JSONObject json= null;
|
||||
String str="";
|
||||
try {
|
||||
json = new JSONObject(message.notificationExtras);
|
||||
str=json.getString("soundType");
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
//soundType 声音类型 -1不播放 0新的派单 1新的抢单 2运单结算
|
||||
if(!"-1".equals(str)){
|
||||
Intent ins=new Intent(context,MakeUpService.class);
|
||||
//ins.putExtra("type",str);
|
||||
context.startService(ins);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotifyMessageDismiss(Context context, NotificationMessage message) {
|
||||
Log.e(TAG, "[onNotifyMessageDismiss] " + message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRegister(Context context, String registrationId) {
|
||||
Log.e(TAG, "[onRegister] " + registrationId);
|
||||
Intent intent = new Intent("com.jiguang.demo.register");
|
||||
context.sendBroadcast(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConnected(Context context, boolean isConnected) {
|
||||
Log.e(TAG, "[onConnected] " + isConnected);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCommandResult(Context context, CmdMessage cmdMessage) {
|
||||
Log.e(TAG, "[onCommandResult] " + cmdMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTagOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
TagAliasOperatorHelper.getInstance().onTagOperatorResult(context,jPushMessage);
|
||||
super.onTagOperatorResult(context, jPushMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCheckTagOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
TagAliasOperatorHelper.getInstance().onCheckTagOperatorResult(context,jPushMessage);
|
||||
super.onCheckTagOperatorResult(context, jPushMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAliasOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
TagAliasOperatorHelper.getInstance().onAliasOperatorResult(context,jPushMessage);
|
||||
super.onAliasOperatorResult(context, jPushMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMobileNumberOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
TagAliasOperatorHelper.getInstance().onMobileNumberOperatorResult(context,jPushMessage);
|
||||
super.onMobileNumberOperatorResult(context, jPushMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNotificationSettingsCheck(Context context, boolean isOn, int source) {
|
||||
super.onNotificationSettingsCheck(context, isOn, source);
|
||||
Log.e(TAG, "[onNotificationSettingsCheck] isOn:" + isOn + ",source:" + source);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.push;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import cn.jpush.android.api.JPushMessage;
|
||||
|
||||
/**
|
||||
* 处理tagalias相关的逻辑
|
||||
* */
|
||||
public class TagAliasOperatorHelper {
|
||||
private static final String TAG = "JIGUANG-TagAliasHelper";
|
||||
|
||||
private Context context;
|
||||
|
||||
private static TagAliasOperatorHelper mInstance;
|
||||
private TagAliasOperatorHelper(){
|
||||
}
|
||||
public static TagAliasOperatorHelper getInstance(){
|
||||
if(mInstance == null){
|
||||
synchronized (TagAliasOperatorHelper.class){
|
||||
if(mInstance == null){
|
||||
mInstance = new TagAliasOperatorHelper();
|
||||
}
|
||||
}
|
||||
}
|
||||
return mInstance;
|
||||
}
|
||||
public void init(Context context){
|
||||
if(context != null) {
|
||||
this.context = context.getApplicationContext();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void onTagOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
int sequence = jPushMessage.getSequence();
|
||||
Log.i(TAG,"action - onTagOperatorResult, sequence:"+sequence+",tags:"+jPushMessage.getTags());
|
||||
Log.i(TAG,"tags size:"+jPushMessage.getTags().size());
|
||||
init(context);
|
||||
|
||||
if(jPushMessage.getErrorCode() == 0){
|
||||
Log.i(TAG,"action - modify tag Success,sequence:"+sequence);
|
||||
//ToastHelper.showOk(context,"modify success");
|
||||
}else{
|
||||
String logs = "Failed to modify tags";
|
||||
if(jPushMessage.getErrorCode() == 6018){
|
||||
//tag数量超过限制,需要先清除一部分再add
|
||||
logs += ", tags is exceed limit need to clean";
|
||||
}
|
||||
logs += ", errorCode:" + jPushMessage.getErrorCode();
|
||||
Log.e(TAG, logs);
|
||||
//ToastHelper.showOther(context,logs);
|
||||
}
|
||||
}
|
||||
public void onCheckTagOperatorResult(Context context, JPushMessage jPushMessage){
|
||||
int sequence = jPushMessage.getSequence();
|
||||
Log.i(TAG,"action - onCheckTagOperatorResult, sequence:"+sequence+",checktag:"+jPushMessage.getCheckTag());
|
||||
init(context);
|
||||
if(jPushMessage.getErrorCode() == 0){
|
||||
String logs = "modify tag "+jPushMessage.getCheckTag() + " bind state success,state:"+jPushMessage.getTagCheckStateResult();
|
||||
Log.i(TAG,logs);
|
||||
//ToastHelper.showOk(context,"modify success");
|
||||
}else{
|
||||
String logs = "Failed to modify tags, errorCode:" + jPushMessage.getErrorCode();
|
||||
Log.e(TAG, logs);
|
||||
//ToastHelper.showOther(context,logs);
|
||||
}
|
||||
}
|
||||
public void onAliasOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
int sequence = jPushMessage.getSequence();
|
||||
Log.i(TAG,"action - onAliasOperatorResult, sequence:"+sequence+",alias:"+jPushMessage.getAlias());
|
||||
init(context);
|
||||
|
||||
if(jPushMessage.getErrorCode() == 0){
|
||||
Log.i(TAG,"action - modify alias Success,sequence:"+sequence);
|
||||
//ToastHelper.showOk(context,"modify success");
|
||||
}else{
|
||||
String logs = "Failed to modify alias, errorCode:" + jPushMessage.getErrorCode();
|
||||
Log.e(TAG, logs);
|
||||
//ToastHelper.showOther(context,logs);
|
||||
//MMKV.defaultMMKV().putString(AdvActivity.ALIAS_DATA, "");
|
||||
}
|
||||
}
|
||||
//设置手机号码回调
|
||||
public void onMobileNumberOperatorResult(Context context, JPushMessage jPushMessage) {
|
||||
int sequence = jPushMessage.getSequence();
|
||||
Log.i(TAG,"action - onMobileNumberOperatorResult, sequence:"+sequence+",mobileNumber:"+jPushMessage.getMobileNumber());
|
||||
init(context);
|
||||
if(jPushMessage.getErrorCode() == 0){
|
||||
Log.i(TAG,"action - set mobile number Success,sequence:"+sequence);
|
||||
//ToastHelper.showOk(context,"modify success");
|
||||
}else{
|
||||
String logs = "Failed to set mobile number, errorCode:" + jPushMessage.getErrorCode();
|
||||
Log.e(TAG, logs);
|
||||
//ToastHelper.showOther(context,logs);
|
||||
//MMKV.defaultMMKV().putString(AdvActivity.MN_DATA, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.push;
|
||||
|
||||
import cn.jpush.android.service.JCommonService;
|
||||
|
||||
public class XService extends JCommonService {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.push;
|
||||
|
||||
import cn.jpush.android.service.JPushMessageReceiver;
|
||||
|
||||
public class xRe extends JPushMessageReceiver {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.report;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.alct.mdp.MDPLocationCollectionManager;
|
||||
import com.alct.mdp.callback.OnDownloadResultListener;
|
||||
import com.alct.mdp.callback.OnResultListener;
|
||||
import com.alct.mdp.model.Identity;
|
||||
import com.arpa.hndahesudintocctmsdriver.parts.AuthParts;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.DriverAuthDataBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.FqBean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/16 10:35
|
||||
* @description:安联流程
|
||||
*/
|
||||
public class ALProcess {
|
||||
|
||||
//企业代码
|
||||
private static final String ENTERPRISE_CODE="E0019169";
|
||||
//企业app的身份码
|
||||
private static final String APP_IDENTITY="b4a472a025e443b383970cdd5465552e";
|
||||
//企业app验证码
|
||||
private static final String APP_KEY="b948efbb4c2a4ba0805c534f2fba0c89";
|
||||
|
||||
public static void verification(Context con){
|
||||
DriverAuthDataBean auth= AuthParts.getAuth(con);
|
||||
Identity idy=new Identity();
|
||||
//企业代码
|
||||
idy.setEnterpriseCode(ENTERPRISE_CODE);
|
||||
//企业app的身份码
|
||||
idy.setAppIdentity(APP_IDENTITY);
|
||||
//企业app验证码
|
||||
idy.setAppKey(APP_KEY);
|
||||
//司机身份证
|
||||
idy.setDriverIdentity(auth.getData().getIdcard());
|
||||
//idy.setDriverIdentity("410725198311042012");
|
||||
MDPLocationCollectionManager.register(con, idy, new OnResultListener() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
Log.e("--success--","验证成功");
|
||||
getFq(con);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(java.lang.String s, java.lang.String s1) {
|
||||
Log.e("--error--",s+s1+"");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static void getFq(Context con){
|
||||
MDPLocationCollectionManager.getInvoices(con, 100, 1, new OnDownloadResultListener() {
|
||||
@Override
|
||||
public void onSuccess(Object o) {
|
||||
Log.e("--获取发票列表成功--",new Gson().toJson(o));
|
||||
try{
|
||||
FqBean fb=new Gson().fromJson(new Gson().toJson(o),FqBean.class);
|
||||
applyFq(con,fb);
|
||||
}catch (Exception e){
|
||||
Log.e("--失败--","数据解析失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("--获取发票列表失败--",s+s1+"");
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public static void applyFq(Context con,FqBean fb){
|
||||
for (FqBean.Invoice driverInvoice : fb.getDriverInvoices()) {
|
||||
MDPLocationCollectionManager.confirmInvoice(con, ENTERPRISE_CODE, driverInvoice.getDriverInvoiceCode(), new OnResultListener() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
|
||||
Log.e("--成功--","申请发票成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("--失败--","申请发票失败"+s+s1);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void 检查NFC匹配结果(Context con, Handler hd,String shipmentCode, String nfcId){
|
||||
// @param context 上下文
|
||||
// @param shipmentCode 运单号
|
||||
// @param enterpriseCode 企业号
|
||||
// @param nfcId NFC id
|
||||
// @param listener 回调函数
|
||||
MDPLocationCollectionManager.checkNfc(con, shipmentCode,ENTERPRISE_CODE, nfcId, new OnResultListener() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.report;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import com.amap.api.location.AMapLocationClient;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.JTT;
|
||||
import com.arpa.hndahesudintocctmsdriver.constant.JTTConstant;
|
||||
import com.arpa.hndahesudintocctmsdriver.parts.UserParts;
|
||||
import com.arpa.hndahesudintocctmsdriver.service.JTTSendService;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.string.StringUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.hdgq.locationlib.LocationOpenApi;
|
||||
import com.hdgq.locationlib.entity.ShippingNoteInfo;
|
||||
import com.hdgq.locationlib.listener.OnResultListener;
|
||||
|
||||
import com.hdgq.locationlib.listener.OnSendResultListener;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.StartOrderBean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/12/10 9:38
|
||||
* @description:交通厅位置上传sdk
|
||||
*/
|
||||
public class JTTProcess {
|
||||
|
||||
private final static String APPID="com.arpa.hndahesudintocctmsdriver";
|
||||
private final static String APP_SECURITY="01e20fc6585a42738ac88a12321dc41bff473b4b20184aacbbcee7d7864359a6";
|
||||
private final static String CODE="41110447";
|
||||
private final static String ENVIRONMENT="release";
|
||||
|
||||
private static Gson gson=new Gson();
|
||||
|
||||
//初始化+获取授权
|
||||
public static void init(Application app){
|
||||
LocationOpenApi.init(app);
|
||||
//auth(app.getBaseContext());
|
||||
}
|
||||
|
||||
//获取授权
|
||||
public static void auth(Context con){
|
||||
String jttStr=SPUtil.getSP(con,"data","jtt");
|
||||
JTT jtt=gson.fromJson(jttStr,JTT.class);
|
||||
if(jtt.getData()==null){
|
||||
return;
|
||||
}
|
||||
LocationOpenApi.auth(con,APPID, StringUtil.isNull(jtt.getData().getTrafficCode(),APP_SECURITY),
|
||||
StringUtil.isNull(jtt.getData().getTrafficId(),CODE),
|
||||
ENVIRONMENT, new OnResultListener() {
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("交通厅-获取授权",s+s1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-获取授权",gson.toJson(list));
|
||||
if(list.size()>0){
|
||||
SPUtil.insSP(con,JTTConstant.JTT_DATA_NAME,JTTConstant.JTT_DATA_JTTORDER_KEY,gson.toJson(list.get(0)));
|
||||
Intent in=new Intent(con, JTTSendService.class);
|
||||
con.startService(in);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//开启定位-装货
|
||||
//shippingNoteInfos 为运单信息列表,考虑到一车多单的情况,本版SDK 一辆车运单数最大支持数为 10。
|
||||
public static void start(Context con,StartOrderBean sob,String remark){
|
||||
ShippingNoteInfo[] snis=new ShippingNoteInfo[1];
|
||||
ShippingNoteInfo sni=new ShippingNoteInfo();
|
||||
StartOrderBean.DataDTO.WayChildrenDTO startWay=sob.getData().getWayChildren().get(0);
|
||||
StartOrderBean.DataDTO.WayChildrenDTO endWay=sob.getData().getWayChildren().get(sob.getData().getWayChildren().size()-1);
|
||||
sni.setShippingNoteNumber(sob.getData().getShippingNoteNumber());
|
||||
sni.setSerialNumber("0000");
|
||||
sni.setStartLatitude(Double.parseDouble(startWay.getLatitude()));
|
||||
sni.setStartLongitude(Double.parseDouble(startWay.getLongitude()));
|
||||
sni.setStartLocationText(startWay.getAddress());
|
||||
sni.setStartCountrySubdivisionCode(sob.getData().getStartCountrySubdivisionCode());
|
||||
sni.setEndLatitude(Double.parseDouble(endWay.getLatitude()));
|
||||
sni.setEndLongitude(Double.parseDouble(endWay.getLongitude()));
|
||||
sni.setEndLocationText(endWay.getAddress());
|
||||
sni.setEndCountrySubdivisionCode(sob.getData().getEndCountrySubdivisionCode());
|
||||
snis[0]=sni;
|
||||
Log.e("起点代码",sob.getData().getStartCountrySubdivisionCode());
|
||||
Log.e("终点代码",sob.getData().getEndCountrySubdivisionCode());
|
||||
// AMapLocationClient.updatePrivacyShow(con,true,true);
|
||||
// AMapLocationClient.updatePrivacyAgree(con,true);
|
||||
LocationOpenApi.start(con, sob.getData().getCarNumber(), UserParts.getUser(con).getData().getRname(), remark,snis, new OnResultListener() {
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("交通厅-开启定位失败",s+s1+"");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-开启定位成功",gson.toJson(list));
|
||||
if(list.size()>0){
|
||||
SPUtil.insSP(con, JTTConstant.JTT_DATA_NAME,JTTConstant.JTT_DATA_JTTORDER_KEY,gson.toJson(list.get(0)));
|
||||
Intent in=new Intent(con, JTTSendService.class);
|
||||
con.startService(in);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//发送定位
|
||||
//参数 ShippingNoteInfo 和 start 接口中的参数 ShippingNoteInfo 相
|
||||
//同,这里 shippingNoteInfo 信息只需传入运单号和分单号即可
|
||||
public static void send(Context con,StartOrderBean sob,String remark){
|
||||
ShippingNoteInfo[] snis=new ShippingNoteInfo[1];
|
||||
ShippingNoteInfo sni=new ShippingNoteInfo();
|
||||
sni.setShippingNoteNumber(sob.getData().getShippingNoteNumber());
|
||||
sni.setSerialNumber("0000");
|
||||
sni.setStartCountrySubdivisionCode(sob.getData().getStartCountrySubdivisionCode());
|
||||
sni.setEndCountrySubdivisionCode(sob.getData().getEndCountrySubdivisionCode());
|
||||
snis[0]=sni;
|
||||
LocationOpenApi.send(con,sob.getData().getCarNumber(), UserParts.getUser(con).getData().getRname(), remark,snis, new OnSendResultListener() {
|
||||
@Override
|
||||
public void onFailure(String s, String s1, List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-发送定位失败",s+s1+"");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-发送定位成功",gson.toJson(list));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//暂停定位
|
||||
//运单运输过程中,如果出现换驾驶员、换车或换手机的情况,则需驾驶员在原手机上操作,对运送运单列表执行暂停操作,
|
||||
//调用本接口将运单列表中所有运单标记为暂停状态,并结束本手机的运单定位。
|
||||
public static void pause(Context con,StartOrderBean sob,String remark){
|
||||
ShippingNoteInfo[] snis=new ShippingNoteInfo[1];
|
||||
ShippingNoteInfo sni=new ShippingNoteInfo();
|
||||
StartOrderBean.DataDTO.WayChildrenDTO startWay=sob.getData().getWayChildren().get(0);
|
||||
StartOrderBean.DataDTO.WayChildrenDTO endWay=sob.getData().getWayChildren().get(sob.getData().getWayChildren().size()-1);
|
||||
sni.setShippingNoteNumber(sob.getData().getShippingNoteNumber());
|
||||
sni.setSerialNumber("0000");
|
||||
sni.setStartLatitude(Double.parseDouble(startWay.getLatitude()));
|
||||
sni.setStartLongitude(Double.parseDouble(startWay.getLongitude()));
|
||||
sni.setStartLocationText(startWay.getAddress());
|
||||
sni.setStartCountrySubdivisionCode(sob.getData().getStartCountrySubdivisionCode());
|
||||
sni.setEndLatitude(Double.parseDouble(endWay.getLatitude()));
|
||||
sni.setEndLongitude(Double.parseDouble(endWay.getLongitude()));
|
||||
sni.setEndLocationText(endWay.getAddress());
|
||||
sni.setEndCountrySubdivisionCode(sob.getData().getEndCountrySubdivisionCode());
|
||||
snis[0]=sni;
|
||||
LocationOpenApi.pause(con,sob.getData().getCarNumber(), UserParts.getUser(con).getData().getRname(), remark,snis, new OnResultListener() {
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("交通厅-暂停定位失败",s+s1+"");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-暂停定位成功",gson.toJson(list));
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
//重启定位
|
||||
//对应 pause 接口,本接口的作用是对已暂停的运单列表执行重启定位操作
|
||||
public static void restart(Context con,StartOrderBean sob,String remark){
|
||||
ShippingNoteInfo[] snis=new ShippingNoteInfo[1];
|
||||
ShippingNoteInfo sni=new ShippingNoteInfo();
|
||||
StartOrderBean.DataDTO.WayChildrenDTO startWay=sob.getData().getWayChildren().get(0);
|
||||
StartOrderBean.DataDTO.WayChildrenDTO endWay=sob.getData().getWayChildren().get(sob.getData().getWayChildren().size()-1);
|
||||
sni.setShippingNoteNumber(sob.getData().getShippingNoteNumber());
|
||||
sni.setSerialNumber("0000");
|
||||
sni.setStartLatitude(Double.parseDouble(startWay.getLatitude()));
|
||||
sni.setStartLongitude(Double.parseDouble(startWay.getLongitude()));
|
||||
sni.setStartLocationText(startWay.getAddress());
|
||||
sni.setStartCountrySubdivisionCode(sob.getData().getStartCountrySubdivisionCode());
|
||||
sni.setEndLatitude(Double.parseDouble(endWay.getLatitude()));
|
||||
sni.setEndLongitude(Double.parseDouble(endWay.getLongitude()));
|
||||
sni.setEndLocationText(endWay.getAddress());
|
||||
sni.setEndCountrySubdivisionCode(sob.getData().getEndCountrySubdivisionCode());
|
||||
snis[0]=sni;
|
||||
LocationOpenApi.restart(con, sob.getData().getCarNumber(), UserParts.getUser(con).getData().getRname(), remark,snis, new OnResultListener() {
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("交通厅-重启定位失败",s+s1+"");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-重启定位成功",gson.toJson(list));
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
//结束定位-卸货
|
||||
public static void stop(Context con,StartOrderBean sob,String remark){
|
||||
ShippingNoteInfo[] snis=new ShippingNoteInfo[1];
|
||||
ShippingNoteInfo sni=new ShippingNoteInfo();
|
||||
StartOrderBean.DataDTO.WayChildrenDTO startWay=sob.getData().getWayChildren().get(0);
|
||||
StartOrderBean.DataDTO.WayChildrenDTO endWay=sob.getData().getWayChildren().get(sob.getData().getWayChildren().size()-1);
|
||||
sni.setShippingNoteNumber(sob.getData().getShippingNoteNumber());
|
||||
sni.setSerialNumber("0000");
|
||||
sni.setStartLatitude(Double.parseDouble(startWay.getLatitude()));
|
||||
sni.setStartLongitude(Double.parseDouble(startWay.getLongitude()));
|
||||
sni.setStartLocationText(startWay.getAddress());
|
||||
sni.setStartCountrySubdivisionCode(sob.getData().getStartCountrySubdivisionCode());
|
||||
sni.setEndLatitude(Double.parseDouble(endWay.getLatitude()));
|
||||
sni.setEndLongitude(Double.parseDouble(endWay.getLongitude()));
|
||||
sni.setEndLocationText(endWay.getAddress());
|
||||
sni.setEndCountrySubdivisionCode(sob.getData().getEndCountrySubdivisionCode());
|
||||
snis[0]=sni;
|
||||
//remark="[00]车辆损坏货物无法送达";
|
||||
//sob.getData().setCarNumber("豫PK2861");
|
||||
LocationOpenApi.stop(con, sob.getData().getCarNumber(),UserParts.getUser(con).getData().getRname(), remark,snis, new OnResultListener() {
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("交通厅-结束定位失败",s+s1+"");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(List<ShippingNoteInfo> list) {
|
||||
Log.e("交通厅-结束定位成功",gson.toJson(list));
|
||||
Intent stopIntent = new Intent(con,JTTSendService.class);
|
||||
con.stopService(stopIntent);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.IDInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.LicenseInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 15:09
|
||||
* @description:认证信息接口
|
||||
*/
|
||||
public class AuthRequest {
|
||||
|
||||
private String token;
|
||||
private Gson gson = new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER, LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//获取身份证认证信息
|
||||
public void getCard(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getIsauthIdcard(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.ISAUTH, re, con, hd);
|
||||
}
|
||||
|
||||
//获取驾驶证认证信息
|
||||
public void getDriverAuthLicense(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getIsauthDriverauthLicense(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.ISAUTH, re, con, hd);
|
||||
}
|
||||
|
||||
//上传文件
|
||||
public void upload(Context con, Handler hd, File file) {
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getUPLOAD(), ""), getToken(con), file);
|
||||
RequestUtil.start(12, "upload", re, con, hd);
|
||||
}
|
||||
|
||||
//上传个人信息
|
||||
//身份证认证{{url}}/app/driver/auth/driverAuthIdCard
|
||||
public void driverAuthIdCard(Context con, Handler hd, IDInputBean ib) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDRIVERAUTHIDCARD(), gson.toJson(ib)), getToken(con), con);
|
||||
RequestUtil.start(1, "driverAuthIdCard", re, con, hd);
|
||||
}
|
||||
|
||||
//驾驶证认证
|
||||
public void driverAuthLicense(Context con, Handler hd, LicenseInputBean iib) {
|
||||
Log.e("--认证信息--", gson.toJson(iib));
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDRIVERAUTHLICENSE(), gson.toJson(iib)), getToken(con), con);
|
||||
RequestUtil.start(1, "driverAuthLicense", re, con, hd);
|
||||
}
|
||||
|
||||
//保存车辆信息-行驶证/app/carDriver/saveVehicleLicense
|
||||
public void saveVehicleLicense(Context con, Handler hd, String data) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getSAVEVEHICLELICENSE(), data), getToken(con), con);
|
||||
RequestUtil.start(1, "saveVehicleLicense", re, con, hd);
|
||||
}
|
||||
|
||||
//上传头像
|
||||
public void upHeadImg(Context con, Handler hd, String imgUrl) {
|
||||
String mt = "{\"headportrait\": \"" + imgUrl + "\"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUploadHead(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "upHeadImg", re, con, hd);
|
||||
}
|
||||
|
||||
//上传车辆照片
|
||||
public void saveCarImg(Context con, Handler hd, String carId, int imgId, int type) {
|
||||
String mt = "{\n" +
|
||||
"\t\"carId\": " + carId + ",\n" +
|
||||
"\t\"imgId\": " + imgId + ",\n" +
|
||||
"\t\"type\": " + type + "\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getSAVECARIMG(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "saveCarImg", re, con, hd);
|
||||
}
|
||||
|
||||
//从业资格证认证/app/driver/auth/driverAuthQualification
|
||||
public void driverAuthQualification(Context con, Handler hd, String id, int imgid, String date) {
|
||||
String mt = "{\n" +
|
||||
"\t\"qualificationCertificate\": \"" + id + "\",\n" +
|
||||
"\t\"qualificationCertificatePhoto\": " + imgid + ",\n" +
|
||||
"\t\"qualificationCertificateValidity\": \"" + date + "\"\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverAuthQualification(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "driverAuthQualification", re, con, hd);
|
||||
}
|
||||
|
||||
|
||||
//从业资格证认证/app/driver/auth/driverAuthQualification
|
||||
public void saveCarRegisterNo(Context con, Handler hd, String id, String registerNo) {
|
||||
String mt = "{\n" +
|
||||
"\t\"carId\": \"" + id + "\",\n" +
|
||||
"\t\"registerNo\": " + registerNo + ",\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverSaveCarRegisterNo(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "saveCarRegisterNo", re, con, hd);
|
||||
}
|
||||
|
||||
//道路运输许可证编号
|
||||
public void saveCarRoadLicenseNo(Context con, Handler hd, String id, String registerNo) {
|
||||
String mt = "{\n" +
|
||||
"\t\"carId\": \"" + id + "\",\n" +
|
||||
"\t\"roadLicense\": " + registerNo + ",\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverSaveCarRoadLicenseNo(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "saveCarRoadLicenseNo", re, con, hd);
|
||||
}
|
||||
|
||||
//获取资格证认证信息
|
||||
public void isDriverAuthQualification(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getIsAuthDriverAuthQualification(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "isAuthDriverAuthQualification", re, con, hd);
|
||||
}
|
||||
|
||||
//添加挂车/app/carDriver/saveDrawCar
|
||||
public void saveDrawCar(Context con, Handler hd, String map) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getSaveDrawCar(), map), getToken(con), con);
|
||||
RequestUtil.start(1, "saveDrawCar", re, con, hd);
|
||||
}
|
||||
|
||||
//获取实名认证的url
|
||||
public void getAuthUrl(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getAuthUrl(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "authUrl", re, con, hd);
|
||||
}
|
||||
//获取车牌颜色
|
||||
public void getCarColor(Context con, Handler hd) {
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getCarColor(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.CAR_COLOR, re, con, hd);
|
||||
}
|
||||
|
||||
//获取燃油类型
|
||||
public void getCarEnergyType(Context con, Handler hd) {
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getCarEnergyType(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.CAR_ENERGY_TYPE, re, con, hd);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.business.Md5Util;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 14:04
|
||||
* @description:
|
||||
*/
|
||||
public class BusinessRequest {
|
||||
|
||||
public void GetBusinessList(Context con, Handler hd,String longitude,String latitude,String name){
|
||||
String url="https://openapi.dianping.com/router/poiinfo/commonsearch";
|
||||
Log.e("url",url+ Md5Util.resUrl(longitude,latitude,name));
|
||||
Request re = OkHttpUtil.get(new OkDate(url+ Md5Util.resUrl(longitude,latitude,name), "post", ""));
|
||||
RequestUtil.start(12, "business_list",re,con,hd);
|
||||
}
|
||||
public void GetBusiness(Context con, Handler hd, String id){
|
||||
String url="https://openapi.dianping.com/router/poiinfo/detailinfo";
|
||||
Request re = OkHttpUtil.get(new OkDate(url+Md5Util.resDelUrl(id), "post", ""));
|
||||
RequestUtil.start(1, "business",re,con,hd);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.LUInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.TrackInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.UploadReceiptInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.HuoYuanFragmengt;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.HuoYunDelActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.StartYunDanActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.shangchuan.OrderComplaintActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.shangchuan.ShangChuangImgActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
public class HuoYuanRequset{
|
||||
|
||||
private Context con;
|
||||
private Handler hd;
|
||||
|
||||
public HuoYuanRequset(Context con, Handler hd) {
|
||||
this.con = con;
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
//引入gson
|
||||
private Gson gson=new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
//获取货源大厅列表数据
|
||||
public void getHuoYuan(int page,int limit){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("page",page);
|
||||
map.put("limit",limit);
|
||||
Request re;
|
||||
if (getToken(con).equals("")) {
|
||||
re = OkHttpUtil.post(new OkDate(RequestConstant.getGoodsHallUrl(), MapUtil.mapJson(map)),con);
|
||||
}else{
|
||||
re = OkHttpUtil.posts(new OkDate(RequestConstant.getGoodsHallUrl(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
}
|
||||
RequestUtil.start(1,"hl",re,con,hd);
|
||||
}
|
||||
|
||||
//获取货源详情数据
|
||||
public void getHuoYuanDel(int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("orderId",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGoodsDelUrl(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, HuoYunDelActivity.HUOYUANDEL,re,con,hd);
|
||||
}
|
||||
|
||||
//确认接单
|
||||
public void confirm(String cid,int wid){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("carId",cid);
|
||||
map.put("orderId",wid);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getAgreeOrder(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, HuoYunDelActivity.END,re,con,hd);
|
||||
}
|
||||
//获取执行中的运单
|
||||
public void startOrder(int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("waybillId",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetStartOrder(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, HuoYuanFragmengt.START_ORDER,re,con,hd);
|
||||
}
|
||||
//装货
|
||||
public void loading(LUInputBean lub){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getLOADING(), gson.toJson(lub)),getToken(con),con);
|
||||
RequestUtil.start(1, ShangChuangImgActivity.TYPE_NAME[0],re,con,hd);
|
||||
}
|
||||
//卸货
|
||||
public void dischargeCargo(LUInputBean lub){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUNLOADING(), gson.toJson(lub)),getToken(con),con);
|
||||
RequestUtil.start(1, ShangChuangImgActivity.TYPE_NAME[1],re,con,hd);
|
||||
}
|
||||
//回单
|
||||
public void receipt(UploadReceiptInputBean urib){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUploadReceipt(), gson.toJson(urib)),getToken(con),con);
|
||||
RequestUtil.start(1, ShangChuangImgActivity.TYPE_NAME[2],re,con,hd);
|
||||
}
|
||||
//轨迹跟踪
|
||||
public void trackTracking(TrackInputBean tib){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getTrackTracking(), gson.toJson(tib)),getToken(con),con);
|
||||
RequestUtil.start(1, "genzong",re,con,hd);
|
||||
}
|
||||
//上传文件
|
||||
public void uploadFile(File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getUPLOAD(), ""),getToken(con),file);
|
||||
RequestUtil.start(12, "upload",re,con,hd);
|
||||
}
|
||||
//获取评价信息
|
||||
public void getEvaluate(int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("waybillId",waybillId);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetEvaluate(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, StartYunDanActivity.GET_EVALUTE,re,con,hd);
|
||||
}
|
||||
//投诉
|
||||
public void Complaint(String content,int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("content",content);
|
||||
map.put("fileIds",new ArrayList<>());
|
||||
map.put("waybillId",waybillId);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getCOMPLAINT(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, OrderComplaintActivity.COMPLAINT,re,con,hd);
|
||||
}
|
||||
//获取投诉信息
|
||||
public void getComplaint(int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("waybillId",waybillId);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetComplaint(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, OrderComplaintActivity.GET_COMPLAINT,re,con,hd);
|
||||
}
|
||||
//保存评价信息
|
||||
public void keepEvaluate(int score,String content,int oid){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("attitudeScore",score);
|
||||
map.put("content",content);
|
||||
map.put("fileIds",new ArrayList<>());
|
||||
map.put("waybillId",oid);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getEvaluationV2(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, StartYunDanActivity.KEEP_EVALUTE,re,con,hd);
|
||||
}
|
||||
public final static String ASYMMETRYWAYBILL="waybill_getAsymmetryWaybill";
|
||||
|
||||
//获取装货失败信息
|
||||
public void getAsymmetryWaybill(){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetErrorOrder(),""),getToken(con),con);
|
||||
RequestUtil.start(1,ASYMMETRYWAYBILL,re,con,hd);
|
||||
}
|
||||
|
||||
public void getHuoYuanDealList(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("page",1);
|
||||
map.put("limit",100);
|
||||
Request re;
|
||||
if (getToken(con).equals("")) {
|
||||
re = OkHttpUtil.post(new OkDate(RequestConstant.getGetExampleList(), MapUtil.mapJson(map)),con);
|
||||
}else{
|
||||
re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetExampleList(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
}
|
||||
RequestUtil.start(1,"dealList",re,con,hd);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.news.NewsActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.news.NewsFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/7/31 17:34
|
||||
* @description:消息模块的请求
|
||||
*/
|
||||
public class NewsRequest {
|
||||
|
||||
String token;
|
||||
private Gson gson=new Gson();
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
public void getXiaoXiLists(Context con, Handler hd){
|
||||
token= SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
String mt="";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoXiListUrl(), mt),token,con);
|
||||
RequestUtil.start(1, NewsFragment.XIAOXILIST,re,con,hd);
|
||||
}
|
||||
public void getXiaoXiList(Context con, Handler hd,int type,int page){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("cate",type);
|
||||
map.put("content","");
|
||||
map.put("createTimeEnd","");
|
||||
map.put("createTimeStart","");
|
||||
map.put("createUserName","");
|
||||
map.put("limit",10);
|
||||
map.put("messageTypes","");
|
||||
map.put("page",page);
|
||||
map.put("receiverId",0);
|
||||
map.put("receiverName","");
|
||||
map.put("roleId",0);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoxiAll(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, NewsActivity.XIAOXILIST_TYPE,re,con,hd);
|
||||
}
|
||||
|
||||
public void DelNews(Context con, Handler hd,int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("id",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoxiDel(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, NewsActivity.NEWS_DEL,re,con,hd);
|
||||
}
|
||||
|
||||
public void delNewsAll(Context con, Handler hd,Model m){
|
||||
m.setId(0);
|
||||
token= SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
Log.e("-xm-",gson.toJson(m));
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoxiDelAll(),gson.toJson(m)),getToken(con),con);
|
||||
RequestUtil.start(1, NewsActivity.NEWS_DEL,re,con,hd);
|
||||
///app/message/setReadAll
|
||||
}
|
||||
|
||||
public static class Model{
|
||||
|
||||
private int id;
|
||||
private List<Integer> ids;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<?> getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(List<Integer> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
import java.io.File;
|
||||
import okhttp3.Request;
|
||||
|
||||
public class OCRRequest {
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//银行卡识别
|
||||
public void ORCBank(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getOrcBank()),getToken(con),file);
|
||||
RequestUtil.start(12, "OCR_BANK",re,con,hd);
|
||||
}
|
||||
//身份证正面识别
|
||||
public void OCRCard(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getIdCardFront()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME[0],re,con,hd);
|
||||
}
|
||||
//身份证背面识别
|
||||
public void OCRCardBack(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getIdCardBack()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME_BANK[0], re,con,hd);
|
||||
}
|
||||
//驾驶证正面识别
|
||||
public void OCRDrivingLicense(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getDrivingLicense()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME[1],re,con,hd);
|
||||
}
|
||||
//驾驶证背面识别
|
||||
public void OCRDrivingLicenseBack(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getDrivingLicenseBack()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME_BANK[1],re,con,hd);
|
||||
}
|
||||
//行驶证正面识别
|
||||
public void OCRVehicleLicense(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getVehicleLicense()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME[2],re,con,hd);
|
||||
}
|
||||
//行驶证背面识别
|
||||
public void OCRVehicleLicenseBack(Context con, Handler hd, File file,String carId,String carNum){
|
||||
Request re = OkHttpUtil.postFiles(new OkDate(RequestConstant.getVehicleLicenseBack()),file,getToken(con),carId,carNum);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME_BANK[2],re,con,hd);
|
||||
}
|
||||
|
||||
public void OCRPlateLicense(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getPlateLicense()),getToken(con),file);
|
||||
RequestUtil.start(12, "carName",re,con,hd);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,400 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
public class RequestConstant {
|
||||
|
||||
public static String TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MzA0MDE3OTIsInVzZXJJZCI6ODAsImlhdCI6MTYyNzcyMzM5Mn0.f9Q-UZVduW6nt1s0L-3vYsrOJJ8iuSCSlJ9uu8yIxBI";
|
||||
//域名地址http://request.one-clouds.com/api https://huoyun.mzxd56.com/api http://app.dahehuoyun.com/api
|
||||
public static String BASE_URL ="http://app.dahehuoyun.com/api";
|
||||
//版本更新/app/check/version
|
||||
public static String VERSION ="/app/check/version";
|
||||
//全部代码
|
||||
public static String CODE_DATA ="/common/dic/listdata";
|
||||
//短信验证码
|
||||
private static final String SEND_CODE = "/common/sendcode";
|
||||
//登录
|
||||
private static final String REG="/common/register";
|
||||
//注册
|
||||
private static final String LOGIN="/common/register";
|
||||
//上传文件
|
||||
private static final String UPLOAD="/common/resource/upload";
|
||||
//配置项信息
|
||||
private static final String CONFIG="/common/config/list";
|
||||
//获取开屏页图片和轮播图
|
||||
private static final String GET_IMAGE="/common/resource/image/config";
|
||||
//司机认证信息
|
||||
private static final String DRIVER_AUTH_INFO="/app/driver/auth/authInfo";
|
||||
//货源大厅
|
||||
private static final String GOODS_HALL="/app/driver/order/getHallList";
|
||||
//历史成交货源
|
||||
private static final String GET_EXAMPLE_LIST="/app/driver/order/getExampleList";
|
||||
//货源详情
|
||||
private static final String GOODS_DEL="/app/driver/order/findOrderInfoV2";
|
||||
//账户信息
|
||||
private static final String USER="/app/user/getUserInfo";
|
||||
//银行卡列表
|
||||
private static final String BANK_CARD_LIST="/app/bankCard/findPage";
|
||||
//绑定银行卡
|
||||
private static final String INS_BANKCARD="/app/bankCard/bandCard";
|
||||
// private static final String INS_BANKCARD="/app/bankCard/save";
|
||||
//删除银行卡
|
||||
// private static final String DELETE_BANKCARD="/app/bankCard/deleteCard";
|
||||
private static final String DELETE_BANKCARD="/app/bankCard/unBandCard";
|
||||
//生成电子账户
|
||||
private static final String ADD_CONTRACTS="/app/bank/addContracts";
|
||||
//获取电子账户
|
||||
private static final String GET_CONTRACTS="/app/bank/getContracts";
|
||||
//获取账户未读消息
|
||||
private static final String XIAOXI_LIST="/app/message/findCurrentUserNotReadCount";
|
||||
//获取账户消息
|
||||
private static final String XIAOXI_ALL="/app/message/findPage";
|
||||
//已读消息
|
||||
private static final String XIAOXI_DEL="/app/message/setReadById";
|
||||
//已读全部消息
|
||||
private static final String XIAOXI_DEL_ALL="/app/message/setReadAll";
|
||||
//运单列表
|
||||
private static final String ORDER_LIST="/app/driver/waybill/listV2";
|
||||
//抢单
|
||||
private static final String AGREE_ORDER="/app/driver/waybill/grabDriverOrdersContruct";
|
||||
//获取正在执行的运单/运单详情
|
||||
private static final String GET_START_ORDER="/app/driver/waybill/getExecuteWaybill";
|
||||
//查看承运合同
|
||||
private static final String GET_CARRY_CONTRACT="/common/appContract/findCarrierContract";
|
||||
//评价信息保存
|
||||
private static final String EVALUATIONV2="/app/driver/waybill/evaluationV2";
|
||||
//装货
|
||||
private static final String LOADING="/app/driver/waybill/loadingV2";
|
||||
//卸货
|
||||
private static final String UNLOADING="/app/driver/waybill/unloadV2";
|
||||
//上传回单
|
||||
private static final String UPLOAD_RECEIPT="/app/driver/waybill/uploadReceipt";
|
||||
//轨迹跟踪
|
||||
private static final String TRACK_TRACKING="/app/driver/waybill/addAppLocation";
|
||||
//获取评价信息
|
||||
private static final String GET_EVALUATE="/app/driver/waybill/listAppraises";
|
||||
//获取投诉信息
|
||||
private static final String GET_COMPLAINT="/app/driver/waybill/listComplaint";
|
||||
//保存投诉信息
|
||||
private static final String COMPLAINT="/app/driver/waybill/complaintV2";
|
||||
//保存评价信息
|
||||
private static final String EVALUATION_V2="/app/driver/waybill/evaluationV2";
|
||||
//车辆列表
|
||||
private static final String GET_CAR_LIST="/app/carDriver/getCarList";
|
||||
//车辆详情
|
||||
private static final String GET_CAR_DEL="/app/carDriver/getCarInfo";
|
||||
//删除车辆
|
||||
private static final String DEL_CAR="/app/carDriver/removeCar";
|
||||
//上传车辆照片
|
||||
private static final String SAVECARIMG="/app/carDriver/saveCarImg";
|
||||
//上传头像保存
|
||||
private static final String UPLOAD_HEAD="/app/user/uploadHeadportrait";
|
||||
//获取上传失败的订单
|
||||
private static final String GET_ERROR_ORDER="/app/driver/waybill/getAsymmetryWaybill";
|
||||
//提现
|
||||
private static final String TIXIAN="/app/account/cashApply/bank/charge";
|
||||
//--ORC识别--
|
||||
|
||||
//银行卡识别
|
||||
private static final String ORC_BANK="/common/ocr/bank";
|
||||
//身份证正面
|
||||
private static final String ID_CARD_FRONT="/common/ocr/idCardFront";
|
||||
//身份证识别反面
|
||||
private static final String ID_CARD_BACK="/common/ocr/idCardBack";
|
||||
//驾驶证正面
|
||||
private static final String DRIVING_LICENSE="/common/ocr/drivingLicense";
|
||||
//驾驶证副页
|
||||
private static final String DRIVING_LICENSE_BACK="/common/ocr/drivingLicenseBack";
|
||||
//行驶证正面
|
||||
private static final String VEHICLE_LICENSE="/common/ocr/vehicleLicense";
|
||||
//行驶证副页
|
||||
private static final String VEHICLE_LICENSE_BACK="/common/ocr/v2/vehicleBackLicenseV3";
|
||||
//身份证认证信息
|
||||
private static final String ISAUTH_IDCARD="/app/driver/auth/isAuthIdCard";
|
||||
//驾驶证认证信息
|
||||
private static final String ISAUTH_DRIVERAUTH_LICENSE="/app/driver/auth/isAuthDriverAuthLicense";
|
||||
//资格证认证信息
|
||||
private static final String IS_AUTH_DRIVER_AUTH_QUALIFICATION="/app/driver/auth/isAuthDriverAuthQualification";
|
||||
//行驶证认证信息
|
||||
//身份证认证
|
||||
private static final String DRIVERAUTHIDCARD="/app/driver/auth/driverAuthIdCard";
|
||||
//驾驶证认证
|
||||
private static final String DRIVERAUTHLICENSE="/app/driver/auth/driverAuthLicense";
|
||||
//行驶证认证
|
||||
private static final String SAVEVEHICLELICENSE="/app/carDriver/saveVehicleLicense";
|
||||
//从业资格证认证
|
||||
private static final String DRIVER_AUTH_QUALIFICATION="/app/driver/auth/driverAuthQualification";
|
||||
//车辆等级证书
|
||||
private static final String DRIVER_AUTH_SAVECARREGISTERNO="/app/carDriver/saveCarRegisterNo";
|
||||
//道路运输信息
|
||||
private static final String DRIVER_AUTH_SAVECARROADLICENSENO="/app/carDriver/saveCarRoadLicenseNo";
|
||||
//党员认证
|
||||
private static final String PARTY_MEMBER="/app/user/partyMember";
|
||||
//实名认证
|
||||
private static final String AUTH_URL="/app/driver/auth/getAuthUrl";
|
||||
//车牌号
|
||||
private static final String PLATE_LICENSE="/common/ocr/plateLicense";
|
||||
|
||||
//添加挂车
|
||||
private static final String SAVE_DRAW_CAR="/app/carDriver/saveDrawCar";
|
||||
//提现记录
|
||||
private static final String CHANGE_RECORD="/app/account/change/record";
|
||||
|
||||
//提现手续费
|
||||
private static final String WITHDRAWALS_CHARGE="/app/account/withdrawals/charge";
|
||||
|
||||
//提现配置信息
|
||||
private static final String WITHDRAWALS_CONFIG="/app/account/withdrawals/config";
|
||||
|
||||
//获取车辆颜色
|
||||
private static final String CAR_COLOR="/app/common/carColorTypeList";
|
||||
|
||||
//获取车辆颜色
|
||||
private static final String CAR_ENERGYTYPE="/app/common/carEnergyTypeList";
|
||||
|
||||
//车辆自动审核触发器
|
||||
private static final String CAR_AUDIT="/app/carDriver/carAutomaticAudit";
|
||||
|
||||
public static String getCarAudit(){
|
||||
return BASE_URL +CAR_AUDIT;
|
||||
}
|
||||
|
||||
public static String getCarColor(){
|
||||
return BASE_URL +CAR_COLOR;
|
||||
}
|
||||
|
||||
public static String getCarEnergyType(){
|
||||
return BASE_URL + CAR_ENERGYTYPE;
|
||||
}
|
||||
|
||||
//app/driver/auth/driverExpire
|
||||
public static final String GET_CERTIFICATE_EXPIRED="/app/driver/auth/driverExpire";
|
||||
|
||||
public static String getSendCodeUrl() {
|
||||
return BASE_URL +SEND_CODE;
|
||||
}
|
||||
|
||||
public static String getREGUrl() {
|
||||
return BASE_URL +REG;
|
||||
}
|
||||
|
||||
public static String getLoginUrl() {
|
||||
return BASE_URL +LOGIN;
|
||||
}
|
||||
|
||||
public static String getDriverAuthInfoUrl() {
|
||||
return BASE_URL +DRIVER_AUTH_INFO;
|
||||
}
|
||||
|
||||
public static String getGoodsHallUrl() {
|
||||
return BASE_URL +GOODS_HALL;
|
||||
}
|
||||
|
||||
public static String getGoodsDelUrl() {
|
||||
return BASE_URL +GOODS_DEL;
|
||||
}
|
||||
|
||||
public static String getUserUrl() {
|
||||
return BASE_URL + USER;
|
||||
}
|
||||
|
||||
public static String getDeleteBankcard() {
|
||||
return BASE_URL + DELETE_BANKCARD;
|
||||
}
|
||||
|
||||
public static String getBankCardListUrl() {
|
||||
return BASE_URL + BANK_CARD_LIST;
|
||||
}
|
||||
|
||||
public static String getXiaoXiListUrl() { return BASE_URL + XIAOXI_LIST; }
|
||||
|
||||
public static String getXiaoxiAll() { return BASE_URL +XIAOXI_ALL; }
|
||||
|
||||
public static String getOrderList() {
|
||||
return BASE_URL +ORDER_LIST;
|
||||
}
|
||||
|
||||
public static String getAgreeOrder() {
|
||||
return BASE_URL +AGREE_ORDER;
|
||||
}
|
||||
|
||||
public static String getGetStartOrder() {
|
||||
return BASE_URL +GET_START_ORDER;
|
||||
}
|
||||
|
||||
public static String getGetCarryContract() {
|
||||
return BASE_URL +GET_CARRY_CONTRACT;
|
||||
}
|
||||
|
||||
public static String getEVALUATIONV2() {
|
||||
return BASE_URL +EVALUATIONV2;
|
||||
}
|
||||
|
||||
public static String getLOADING() {
|
||||
return BASE_URL +LOADING;
|
||||
}
|
||||
|
||||
public static String getUNLOADING() {
|
||||
return BASE_URL +UNLOADING;
|
||||
}
|
||||
|
||||
public static String getGetEvaluate() {
|
||||
return BASE_URL +GET_EVALUATE;
|
||||
}
|
||||
|
||||
public static String getGetComplaint() {
|
||||
return BASE_URL +GET_COMPLAINT;
|
||||
}
|
||||
|
||||
public static String getOrcBank() {
|
||||
return BASE_URL +ORC_BANK;
|
||||
}
|
||||
|
||||
public static String getIdCardFront() {
|
||||
return BASE_URL +ID_CARD_FRONT;
|
||||
}
|
||||
|
||||
public static String getIdCardBack() {
|
||||
return BASE_URL +ID_CARD_BACK;
|
||||
}
|
||||
|
||||
public static String getDrivingLicense() {
|
||||
return BASE_URL +DRIVING_LICENSE;
|
||||
}
|
||||
|
||||
public static String getDrivingLicenseBack() {
|
||||
return BASE_URL +DRIVING_LICENSE_BACK;
|
||||
}
|
||||
|
||||
public static String getVehicleLicense() {
|
||||
return BASE_URL +VEHICLE_LICENSE;
|
||||
}
|
||||
|
||||
public static String getVehicleLicenseBack() {
|
||||
return BASE_URL +VEHICLE_LICENSE_BACK;
|
||||
}
|
||||
|
||||
public static String getGetCarList() {
|
||||
return BASE_URL +GET_CAR_LIST;
|
||||
}
|
||||
|
||||
public static String getGetCarDel() {
|
||||
return BASE_URL +GET_CAR_DEL;
|
||||
}
|
||||
|
||||
public static String getCodeData() {
|
||||
return BASE_URL +CODE_DATA;
|
||||
}
|
||||
|
||||
public static String getIsauthIdcard() {
|
||||
return BASE_URL +ISAUTH_IDCARD;
|
||||
}
|
||||
|
||||
public static String getIsauthDriverauthLicense() { return BASE_URL +ISAUTH_DRIVERAUTH_LICENSE; }
|
||||
|
||||
public static String getUploadReceipt() { return BASE_URL +UPLOAD_RECEIPT; }
|
||||
|
||||
public static String getUPLOAD() { return BASE_URL +UPLOAD; }
|
||||
|
||||
public static String getTrackTracking() {return BASE_URL +TRACK_TRACKING; }
|
||||
|
||||
public static String getEvaluationV2() { return BASE_URL +EVALUATION_V2; }
|
||||
|
||||
public static String getDRIVERAUTHIDCARD() {
|
||||
return BASE_URL +DRIVERAUTHIDCARD;
|
||||
}
|
||||
|
||||
public static String getDRIVERAUTHLICENSE() {
|
||||
return BASE_URL +DRIVERAUTHLICENSE;
|
||||
}
|
||||
|
||||
public static String getSAVEVEHICLELICENSE() {
|
||||
return BASE_URL +SAVEVEHICLELICENSE;
|
||||
}
|
||||
|
||||
public static String getSAVECARIMG() {
|
||||
return BASE_URL +SAVECARIMG;
|
||||
}
|
||||
|
||||
public static String getUploadHead() { return BASE_URL +UPLOAD_HEAD; }
|
||||
|
||||
public static String getInsBankcard() {
|
||||
return BASE_URL +INS_BANKCARD;
|
||||
}
|
||||
|
||||
public static String getDelCar() { return BASE_URL +DEL_CAR; }
|
||||
|
||||
public static String getXiaoxiDel() { return BASE_URL +XIAOXI_DEL; }
|
||||
|
||||
public static String getCOMPLAINT() { return BASE_URL+COMPLAINT; }
|
||||
|
||||
public static String getXiaoxiDelAll() { return BASE_URL+XIAOXI_DEL_ALL; }
|
||||
|
||||
public static String getDriverAuthQualification() { return BASE_URL+DRIVER_AUTH_QUALIFICATION; }
|
||||
|
||||
public static String getDriverSaveCarRegisterNo() { return BASE_URL+DRIVER_AUTH_SAVECARREGISTERNO; }
|
||||
|
||||
public static String getDriverSaveCarRoadLicenseNo() { return BASE_URL+DRIVER_AUTH_SAVECARROADLICENSENO; }
|
||||
|
||||
public static String getSaveDrawCar() { return BASE_URL+SAVE_DRAW_CAR; }
|
||||
|
||||
public static String getIsAuthDriverAuthQualification() {
|
||||
return BASE_URL+IS_AUTH_DRIVER_AUTH_QUALIFICATION;
|
||||
}
|
||||
|
||||
public static String getVERSION() {
|
||||
return BASE_URL+VERSION;
|
||||
}
|
||||
|
||||
public static String getAddContracts() {
|
||||
return BASE_URL+ADD_CONTRACTS;
|
||||
}
|
||||
|
||||
public static String getGetContracts() {
|
||||
return BASE_URL+GET_CONTRACTS;
|
||||
}
|
||||
|
||||
public static String getTIXIAN() {
|
||||
return BASE_URL+TIXIAN;
|
||||
}
|
||||
|
||||
public static String getPartyMember() {
|
||||
return BASE_URL+PARTY_MEMBER;
|
||||
}
|
||||
|
||||
public static String getCONFIG() {
|
||||
return BASE_URL+CONFIG;
|
||||
}
|
||||
|
||||
public static String getChangeRecord() {
|
||||
return BASE_URL+CHANGE_RECORD;
|
||||
}
|
||||
|
||||
public static String getChangeCharge() {
|
||||
return BASE_URL+WITHDRAWALS_CHARGE;
|
||||
}
|
||||
|
||||
public static String getChangeConfig() {
|
||||
return BASE_URL+WITHDRAWALS_CONFIG;
|
||||
}
|
||||
|
||||
public static String getGetErrorOrder() { return BASE_URL+GET_ERROR_ORDER; }
|
||||
|
||||
public static String getGetExampleList() {
|
||||
return BASE_URL+GET_EXAMPLE_LIST;
|
||||
}
|
||||
|
||||
public static String getAuthUrl() {
|
||||
return BASE_URL+AUTH_URL;
|
||||
}
|
||||
|
||||
public static String getPlateLicense() {
|
||||
return BASE_URL+PLATE_LICENSE;
|
||||
}
|
||||
|
||||
public static String getGetImage() {
|
||||
return BASE_URL+GET_IMAGE;
|
||||
}
|
||||
|
||||
public static String getGetCertificateExpired() {
|
||||
return BASE_URL+GET_CERTIFICATE_EXPIRED;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.provider.Settings;
|
||||
|
||||
import androidx.annotation.RequiresApi;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.event.VehicleEvent;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.business.Md5Util;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.LoginRegInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.OrderAllActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.VehicleAuthActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.my.WoDeFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
public class UserRequset {
|
||||
|
||||
private Context con;
|
||||
private Handler hd;
|
||||
|
||||
public UserRequset(Context con, Handler hd) {
|
||||
this.con = con;
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
private Gson gson = new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER, LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//获取全部代码表
|
||||
public void getCodeData() {
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getSendCodeUrl(), ""), con);
|
||||
RequestUtil.start(1, "未知", re, con, hd);
|
||||
}
|
||||
|
||||
//获取手机验证码
|
||||
public void getPhoneCode(String phone) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("phone", phone);
|
||||
map.put("sendType", 1);
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getSendCodeUrl(), MapUtil.mapJson(map)), con);
|
||||
RequestUtil.start(1, LoginActivity.CODE_RESULT, re, con, hd);
|
||||
}
|
||||
|
||||
//账户注册
|
||||
public void UserReg() {
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getREGUrl(), ""), con);
|
||||
RequestUtil.start(1, "", re, con, hd);
|
||||
}
|
||||
|
||||
//账户登录
|
||||
public void UserLogin(LoginRegInputBean lrib) {
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getLoginUrl(), gson.toJson(lrib)), con);
|
||||
RequestUtil.start(1, LoginActivity.LOGIN_RESULT, re, con, hd);
|
||||
}
|
||||
|
||||
//账户信息
|
||||
public void User() {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUserUrl(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "userdata", re, con, hd);
|
||||
}
|
||||
|
||||
//司机认证信息
|
||||
public void driverAuthData() {
|
||||
String mt = "{}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverAuthInfoUrl(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.AUTH_DATA, re, con, hd);
|
||||
}
|
||||
|
||||
//车辆列表
|
||||
public void vehicleList(String type) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("type", type);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCarList(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.VEHICLE_LIST, re, con, hd);
|
||||
}
|
||||
|
||||
//删除车辆
|
||||
public void delVehicle(String id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDelCar(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, VehicleAuthActivity.DEL_CAR, re, con, hd);
|
||||
}
|
||||
|
||||
//解绑车辆
|
||||
public void relieveVehicle(String id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCarDel(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.VEHICLE_DEL, re, con, hd);
|
||||
}
|
||||
|
||||
//车辆详情
|
||||
public void vehicleDel(String id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCarDel(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.VEHICLE_DEL, re, con, hd);
|
||||
}
|
||||
|
||||
//司机身份证认证
|
||||
public void driverIDAuth() {
|
||||
String url = RequestConstant.BASE_URL + "/app/driver/auth/authInfo";
|
||||
String mt = "";
|
||||
Request re = OkHttpUtil.posts(new OkDate(url, mt), getToken(con), con);
|
||||
RequestUtil.start(1, "", re, con, hd);
|
||||
}
|
||||
|
||||
//司机运单列表
|
||||
public void getListV2(int page, int limit) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("page", page);
|
||||
map.put("limit", limit);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getOrderList(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, OrderAllActivity.USER_ORDER_LIST, re, con, hd);
|
||||
}
|
||||
|
||||
//app更新
|
||||
public void upApp() {
|
||||
String vs = "1.0.0";
|
||||
try {
|
||||
// isOpenAppNoRe();
|
||||
vs = con.getPackageManager().getPackageInfo(con.getPackageName(), 0).versionName;
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("source", 0);
|
||||
map.put("version", vs);
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getVERSION(), MapUtil.mapJson(map)), con);
|
||||
RequestUtil.start(1, "up_app", re, con, hd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否开启未知应用安装权限
|
||||
*/
|
||||
private void isOpenAppNoRe(){
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
boolean b = con.getPackageManager().canRequestPackageInstalls();
|
||||
if (!b) {
|
||||
startInstallPermissionSettingActivity();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转到设置-允许安装未知来源-页面
|
||||
*/
|
||||
@RequiresApi(api = Build.VERSION_CODES.O)
|
||||
private void startInstallPermissionSettingActivity() {
|
||||
//注意这个是8.0新API
|
||||
Uri packageURI = Uri.parse("package:" +con.getPackageName());
|
||||
Intent intent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES,packageURI);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
con.startActivity(intent);
|
||||
}
|
||||
|
||||
//党员认证
|
||||
public void partyMember(String url) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("partyMemberUrl", url);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getPartyMember(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, "partyMember", re, con, hd);
|
||||
}
|
||||
|
||||
public void getImage(int type) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("type", type);
|
||||
Request re;
|
||||
if (getToken(con).equals("")) {
|
||||
re = OkHttpUtil.post(new OkDate(RequestConstant.getGetImage(), MapUtil.mapJson(map)), con);
|
||||
} else {
|
||||
re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetImage(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
}
|
||||
RequestUtil.start(1, "getImage", re, con, hd);
|
||||
}
|
||||
|
||||
//app/driver/auth/driverExpire
|
||||
public void getDriverExpire() {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCertificateExpired(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "driverExpire", re, con, hd);
|
||||
}
|
||||
|
||||
|
||||
public void getJtt(int id) {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("waybillId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate("http://app.dahehuoyun.com/api/traffic/getTrafficConfigByWaybillId", MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, "jttRes", re, con, hd);
|
||||
}
|
||||
|
||||
public void getJtts(String id) {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("waybillNum", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate("http://app.dahehuoyun.com/api/traffic/getTrafficConfigByWaybillNum", MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, "jttRes", re, con, hd);
|
||||
|
||||
}
|
||||
|
||||
//获取燃油类型
|
||||
public void carAudit(String carId) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", carId);
|
||||
Request re = OkHttpUtil.get(new OkDate(RequestConstant.getCarAudit(),"get", Md5Util.resNoUrl(map)),getToken(con));
|
||||
RequestUtil.start(1, VehicleAuthActivity.CAR_AUDIO, re, con, hd);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.InsBankInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.wallet.WalletFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
public class WalletRequest {
|
||||
private Context con;
|
||||
private Handler hd;
|
||||
|
||||
public WalletRequest(Context con, Handler hd) {
|
||||
this.con = con;
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
//引入gson
|
||||
private Gson gson=new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//提现
|
||||
public void takeMoney(String bid,String money){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("bankCardId",bid);
|
||||
map.put("tradeMoney",money);
|
||||
map.put("tradeTitle","");
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getTIXIAN(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, "tixian",re,con,hd);
|
||||
}
|
||||
//获取银行卡列表
|
||||
public void getBankCardList(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("cardType",1);
|
||||
map.put("createUser",SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_ID));
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getBankCardListUrl(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, WalletFragment.dataName2,re,con,hd);
|
||||
}
|
||||
//删除银行卡信息
|
||||
public void deleteBankCard(int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("id",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDeleteBankcard(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, "bankdelete",re,con,hd);
|
||||
}
|
||||
//绑定银行卡
|
||||
public void insBankCard(InsBankInputBean ibib){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getInsBankcard(),gson.toJson(ibib)),getToken(con),con);
|
||||
RequestUtil.start(1, "insBank",re,con,hd);
|
||||
}
|
||||
//创建电子账户
|
||||
public void addContracts(){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getAddContracts(),""),getToken(con),con);
|
||||
RequestUtil.start(1, "addContracts",re,con,hd);
|
||||
}
|
||||
//获取电子账户
|
||||
public void getContracts(){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetContracts(),""),getToken(con),con);
|
||||
RequestUtil.start(1, "getContracts",re,con,hd);
|
||||
}
|
||||
//提现记录/app/account/change/record
|
||||
public void changeRecord(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("pageNum",1);
|
||||
map.put("pageSize",30);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getChangeRecord(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, "change",re,con,hd);
|
||||
}
|
||||
|
||||
public void charge(String amount){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("amount",amount);
|
||||
Request re = OkHttpUtil.get(new OkDate(RequestConstant.getChangeCharge()+"?amount="+amount,"get",MapUtil.mapJson(map)),getToken(con));
|
||||
RequestUtil.start(1, "charge",re,con,hd);
|
||||
}
|
||||
|
||||
public void config(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
// map.put("amount",amount);
|
||||
Request re = OkHttpUtil.get(new OkDate(RequestConstant.getChangeConfig(),"get",MapUtil.mapJson(map)),getToken(con));
|
||||
RequestUtil.start(1, "config",re,con,hd);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,83 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/17 11:50
|
||||
* @description:
|
||||
*/
|
||||
public class IDInputBean {
|
||||
|
||||
private String idcarName;
|
||||
private String idcard;
|
||||
private String idcardAddress;
|
||||
private String idcardValidityStart;
|
||||
private int idcardPhoto;
|
||||
private int idcardPhotoBack;
|
||||
private int idcardSex;
|
||||
private String idcardValidity;
|
||||
|
||||
public String getIdcardValidityStart() {
|
||||
return idcardValidityStart;
|
||||
}
|
||||
|
||||
public void setIdcardValidityStart(String idcardValidityStart) {
|
||||
this.idcardValidityStart = idcardValidityStart;
|
||||
}
|
||||
|
||||
public String getIdcarName() {
|
||||
return idcarName;
|
||||
}
|
||||
|
||||
public void setIdcarName(String idcarName) {
|
||||
this.idcarName = idcarName;
|
||||
}
|
||||
|
||||
public String getIdcard() {
|
||||
return idcard;
|
||||
}
|
||||
|
||||
public void setIdcard(String idcard) {
|
||||
this.idcard = idcard;
|
||||
}
|
||||
|
||||
public String getIdcardAddress() {
|
||||
return idcardAddress;
|
||||
}
|
||||
|
||||
public void setIdcardAddress(String idcardAddress) {
|
||||
this.idcardAddress = idcardAddress;
|
||||
}
|
||||
|
||||
public int getIdcardPhoto() {
|
||||
return idcardPhoto;
|
||||
}
|
||||
|
||||
public void setIdcardPhoto(int idcardPhoto) {
|
||||
this.idcardPhoto = idcardPhoto;
|
||||
}
|
||||
|
||||
public int getIdcardPhotoBack() {
|
||||
return idcardPhotoBack;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoBack(int idcardPhotoBack) {
|
||||
this.idcardPhotoBack = idcardPhotoBack;
|
||||
}
|
||||
|
||||
public int getIdcardSex() {
|
||||
return idcardSex;
|
||||
}
|
||||
|
||||
public void setIdcardSex(int idcardSex) {
|
||||
this.idcardSex = idcardSex;
|
||||
}
|
||||
|
||||
public String getIdcardValidity() {
|
||||
return idcardValidity;
|
||||
}
|
||||
|
||||
public void setIdcardValidity(String idcardValidity) {
|
||||
this.idcardValidity = idcardValidity;
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/18 15:57
|
||||
* @description:
|
||||
*/
|
||||
public class InsBankInputBean {
|
||||
|
||||
private String address;
|
||||
private int auditStatus;
|
||||
private int bankId;
|
||||
private String bankName;
|
||||
private String cardNo;
|
||||
private int cardType;
|
||||
private int cardUserType;
|
||||
private String companyCode;
|
||||
private String companyName;
|
||||
private String createTime;
|
||||
private int id;
|
||||
private int isDeleted;
|
||||
private String openBank;
|
||||
private String phone;
|
||||
private int imageId;
|
||||
|
||||
public int getImageId() {
|
||||
return imageId;
|
||||
}
|
||||
|
||||
public void setImageId(int imageId) {
|
||||
this.imageId = imageId;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public int getBankId() {
|
||||
return bankId;
|
||||
}
|
||||
|
||||
public void setBankId(int bankId) {
|
||||
this.bankId = bankId;
|
||||
}
|
||||
|
||||
public String getBankName() {
|
||||
return bankName;
|
||||
}
|
||||
|
||||
public void setBankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public int getCardType() {
|
||||
return cardType;
|
||||
}
|
||||
|
||||
public void setCardType(int cardType) {
|
||||
this.cardType = cardType;
|
||||
}
|
||||
|
||||
public int getCardUserType() {
|
||||
return cardUserType;
|
||||
}
|
||||
|
||||
public void setCardUserType(int cardUserType) {
|
||||
this.cardUserType = cardUserType;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getIsDeleted() {
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
public void setIsDeleted(int isDeleted) {
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public String getOpenBank() {
|
||||
return openBank;
|
||||
}
|
||||
|
||||
public void setOpenBank(String openBank) {
|
||||
this.openBank = openBank;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 10:27
|
||||
* @description:装卸货输入参数实体
|
||||
*/
|
||||
public class LUInputBean {
|
||||
|
||||
private List<Integer> imageId;
|
||||
private String latitude;
|
||||
private String locationAddress;
|
||||
private String longitude;
|
||||
private String waybillId;
|
||||
|
||||
public List<Integer> getImageId() {
|
||||
return imageId;
|
||||
}
|
||||
|
||||
public void setImageId(List<Integer> imageId) {
|
||||
this.imageId = imageId;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLocationAddress() {
|
||||
return locationAddress;
|
||||
}
|
||||
|
||||
public void setLocationAddress(String locationAddress) {
|
||||
this.locationAddress = locationAddress;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(String waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/17 11:52
|
||||
* @description:
|
||||
*/
|
||||
public class LicenseInputBean {
|
||||
|
||||
private String allowType;
|
||||
private String archivesName;
|
||||
private String driverLicense;
|
||||
private int driverLicenseBackPhoto;
|
||||
private String driverLicenseName;
|
||||
private int driverLicensePhoto;
|
||||
private String endTime;
|
||||
private String firstTime;
|
||||
|
||||
|
||||
|
||||
public String getAllowType() {
|
||||
return allowType;
|
||||
}
|
||||
|
||||
public void setAllowType(String allowType) {
|
||||
this.allowType = allowType;
|
||||
}
|
||||
|
||||
public String getArchivesName() {
|
||||
return archivesName;
|
||||
}
|
||||
|
||||
public void setArchivesName(String archivesName) {
|
||||
this.archivesName = archivesName;
|
||||
}
|
||||
|
||||
public String getDriverLicense() {
|
||||
return driverLicense;
|
||||
}
|
||||
|
||||
public void setDriverLicense(String driverLicense) {
|
||||
this.driverLicense = driverLicense;
|
||||
}
|
||||
|
||||
public int getDriverLicenseBackPhoto() {
|
||||
return driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicenseBackPhoto(int driverLicenseBackPhoto) {
|
||||
this.driverLicenseBackPhoto = driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public String getDriverLicenseName() {
|
||||
return driverLicenseName;
|
||||
}
|
||||
|
||||
public void setDriverLicenseName(String driverLicenseName) {
|
||||
this.driverLicenseName = driverLicenseName;
|
||||
}
|
||||
|
||||
public int getDriverLicensePhoto() {
|
||||
return driverLicensePhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhoto(int driverLicensePhoto) {
|
||||
this.driverLicensePhoto = driverLicensePhoto;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getFirstTime() {
|
||||
return firstTime;
|
||||
}
|
||||
|
||||
public void setFirstTime(String firstTime) {
|
||||
this.firstTime = firstTime;
|
||||
}
|
||||
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/2 9:45
|
||||
* @description:登录和注册的入参实体
|
||||
*/
|
||||
public class LoginRegInputBean {
|
||||
|
||||
private String captcha;
|
||||
private String companyName;
|
||||
private int registerType;
|
||||
private String reupass;
|
||||
private String rname;
|
||||
private int roleId;
|
||||
private String smscode;
|
||||
private String uname;
|
||||
private String upass;
|
||||
|
||||
public String getCaptcha() {
|
||||
return captcha;
|
||||
}
|
||||
|
||||
public void setCaptcha(String captcha) {
|
||||
this.captcha = captcha;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public int getRegisterType() {
|
||||
return registerType;
|
||||
}
|
||||
|
||||
public void setRegisterType(int registerType) {
|
||||
this.registerType = registerType;
|
||||
}
|
||||
|
||||
public String getReupass() {
|
||||
return reupass;
|
||||
}
|
||||
|
||||
public void setReupass(String reupass) {
|
||||
this.reupass = reupass;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public int getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(int roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getSmscode() {
|
||||
return smscode;
|
||||
}
|
||||
|
||||
public void setSmscode(String smscode) {
|
||||
this.smscode = smscode;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getUpass() {
|
||||
return upass;
|
||||
}
|
||||
|
||||
public void setUpass(String upass) {
|
||||
this.upass = upass;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 18:47
|
||||
* @description:
|
||||
*/
|
||||
public class TrackInputBean {
|
||||
|
||||
private String latitude;
|
||||
private String longitude;
|
||||
private String shippingNoteNumber;
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getShippingNoteNumber() {
|
||||
return shippingNoteNumber;
|
||||
}
|
||||
|
||||
public void setShippingNoteNumber(String shippingNoteNumber) {
|
||||
this.shippingNoteNumber = shippingNoteNumber;
|
||||
}
|
||||
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 10:39
|
||||
* @description:上传回单输入参数实体
|
||||
*/
|
||||
public class UploadReceiptInputBean {
|
||||
|
||||
private String latitude;
|
||||
private String locationAddress;
|
||||
private String longitude;
|
||||
private List<Integer> receiptId;
|
||||
private int type;
|
||||
private String waybillId;
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLocationAddress() {
|
||||
return locationAddress;
|
||||
}
|
||||
|
||||
public void setLocationAddress(String locationAddress) {
|
||||
this.locationAddress = locationAddress;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public List<Integer> getReceiptId() {
|
||||
return receiptId;
|
||||
}
|
||||
|
||||
public void setReceiptId(List<Integer> receiptId) {
|
||||
this.receiptId = receiptId;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(String waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/3 17:51
|
||||
* @description:
|
||||
*/
|
||||
public class XiaoXiInputBean {
|
||||
|
||||
private int cate;
|
||||
private String content;
|
||||
private String createTimeEnd;
|
||||
private String createTimeStart;
|
||||
private String createUserName;
|
||||
private int forwordType;
|
||||
private int isRead;
|
||||
private int limit;
|
||||
private String messageTypes;
|
||||
private int page;
|
||||
private int receiverId;
|
||||
private String receiverName;
|
||||
private int roleId;
|
||||
|
||||
public int getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getCreateTimeEnd() {
|
||||
return createTimeEnd;
|
||||
}
|
||||
|
||||
public void setCreateTimeEnd(String createTimeEnd) {
|
||||
this.createTimeEnd = createTimeEnd;
|
||||
}
|
||||
|
||||
public String getCreateTimeStart() {
|
||||
return createTimeStart;
|
||||
}
|
||||
|
||||
public void setCreateTimeStart(String createTimeStart) {
|
||||
this.createTimeStart = createTimeStart;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public int getForwordType() {
|
||||
return forwordType;
|
||||
}
|
||||
|
||||
public void setForwordType(int forwordType) {
|
||||
this.forwordType = forwordType;
|
||||
}
|
||||
|
||||
public int getIsRead() {
|
||||
return isRead;
|
||||
}
|
||||
|
||||
public void setIsRead(int isRead) {
|
||||
this.isRead = isRead;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public String getMessageTypes() {
|
||||
return messageTypes;
|
||||
}
|
||||
|
||||
public void setMessageTypes(String messageTypes) {
|
||||
this.messageTypes = messageTypes;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getReceiverId() {
|
||||
return receiverId;
|
||||
}
|
||||
|
||||
public void setReceiverId(int receiverId) {
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public int getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(int roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.StartOrderBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.constant.JTTConstant;
|
||||
import com.arpa.hndahesudintocctmsdriver.report.JTTProcess;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.msg.MsgUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.hdgq.locationlib.entity.ShippingNoteInfo;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/12/24 14:16
|
||||
* @description:
|
||||
*/
|
||||
public class JTTSendService extends Service {
|
||||
|
||||
private Context con;
|
||||
private String snn="";
|
||||
private Gson gson=new Gson();
|
||||
private StartOrderBean sob=null;
|
||||
|
||||
private Handler hd=new Handler(msg -> {
|
||||
switch (msg.what){
|
||||
case 66:
|
||||
JTTProcess.send(con,sob,"");
|
||||
break;
|
||||
case 67:
|
||||
JTTProcess.pause(getBaseContext(),sob,"");
|
||||
sob.getData().setCarNumber("豫PK2861");
|
||||
new Timer().schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
MsgUtil.addHdMsgWat(hd,68);
|
||||
}
|
||||
},6000,100000000);
|
||||
break;
|
||||
case 68:
|
||||
JTTProcess.restart(getBaseContext(),sob,"[03]换车");
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {return null; }
|
||||
|
||||
private int sum=0;
|
||||
private ShippingNoteInfo sf;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
Log.e("交通厅","开启位置上传");
|
||||
con=this;
|
||||
String str= SPUtil.getSP(con, JTTConstant.JTT_DATA_NAME,JTTConstant.JTT_DATA_JTTORDER_KEY);
|
||||
String str2=SPUtil.getSP(con,JTTConstant.JTT_DATA_NAME,JTTConstant.JTT_DATA_ORDER_KEY);
|
||||
sf=gson.fromJson(str,ShippingNoteInfo.class);
|
||||
sob=gson.fromJson(str2,StartOrderBean.class);
|
||||
new Thread(){
|
||||
@Override
|
||||
public void run() {
|
||||
while (true){
|
||||
String str= SPUtil.getSP(con,JTTConstant.JTT_DATA_NAME,JTTConstant.JTT_DATA_JTTORDER_KEY);
|
||||
if ("".equals(str)) {
|
||||
break;
|
||||
}
|
||||
sf=gson.fromJson(str, ShippingNoteInfo.class);
|
||||
try {
|
||||
Thread.sleep(sf.getInterval()+1000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
MsgUtil.addHdMsgWat(hd,66);
|
||||
try {
|
||||
Thread.sleep(6000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// sum++;
|
||||
// if(sum==3){
|
||||
// MsgUtil.addHdMsgWat(hd,67);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
|
||||
//开始
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
Log.e("服务开启","-----");
|
||||
return START_STICKY;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.HuoYuanRequset;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.TrackInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.location.LocationGDUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/11/15 17:13
|
||||
* @description:
|
||||
*/
|
||||
public class LocationService extends Service {
|
||||
|
||||
private Context con;
|
||||
private TrackInputBean tib=new TrackInputBean();
|
||||
private LocationGDUtil l;
|
||||
private int timeSum=1000*5;
|
||||
private String snn="";
|
||||
private Gson gson=new Gson();
|
||||
private HuoYuanRequset hyr;
|
||||
private Handler hd=new Handler(msg -> {
|
||||
switch (msg.what){
|
||||
case RequsetCodeConstants.SUCCESS:
|
||||
|
||||
break;
|
||||
case LocationGDUtil.RES:
|
||||
genzong();
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {return null; }
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
con=this;
|
||||
hyr=new HuoYuanRequset(con,hd);
|
||||
Log.e("开始循环上传,等待100ms","-----");
|
||||
new Timer().schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
l = new LocationGDUtil(con, hd);
|
||||
l.onCreate();
|
||||
}
|
||||
},100,timeSum);
|
||||
}
|
||||
|
||||
//开始
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
Log.e("服务开启","-----");
|
||||
return START_STICKY;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
|
||||
int sum=0;
|
||||
public void genzong(){
|
||||
//经度
|
||||
tib.setLatitude(l.getLatitude()+"");
|
||||
//纬度
|
||||
tib.setLongitude(l.getLongitude()+"");
|
||||
Log.e("经度",l.getLatitude()+"");
|
||||
Log.e("维度",l.getLongitude()+"");
|
||||
sum+=3;
|
||||
Log.e("当前app后台服务存活时间(手机息屏状态)",sum+"秒");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.alct.mdp.MDPLocationCollectionManager;
|
||||
import com.alct.mdp.model.Image;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.msg.MsgUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/11/23 20:31
|
||||
* @description:
|
||||
*/
|
||||
public class MakeUpAlService extends Service {
|
||||
|
||||
//装货照片 卸货照片 回单照片
|
||||
|
||||
private Context con;
|
||||
private Gson gson=new Gson();
|
||||
private int cd=60*1;
|
||||
private Handler hd=new Handler(msg -> {
|
||||
switch (msg.what){
|
||||
case 15:
|
||||
up();
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
con=getBaseContext();
|
||||
new Handler().postDelayed(() -> {
|
||||
MsgUtil.addHdMsgWat(hd,15);
|
||||
},cd);
|
||||
}
|
||||
|
||||
//开始
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
Log.e("服务开启","-----");
|
||||
return START_STICKY;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
private void up(){
|
||||
String id_1=SPUtil.getSP(con,"make","装货");
|
||||
String id_2=SPUtil.getSP(con,"make","卸货");
|
||||
String id_3=SPUtil.getSP(con,"make","回单");
|
||||
if(!"".equals(id_1)){
|
||||
String image_1=SPUtil.getSP(con,"make","装货-"+id_1);
|
||||
up_image_z(id_1,gson.fromJson(image_1,Image.class));
|
||||
}
|
||||
if(!"".equals(id_2)){
|
||||
String image_2=SPUtil.getSP(con,"make","卸货-"+id_2);
|
||||
up_image_z(id_2,gson.fromJson(image_2,Image.class));
|
||||
}
|
||||
if(!"".equals(id_3)){
|
||||
String image_3=SPUtil.getSP(con,"make","回单-"+id_3);
|
||||
up_image_z(id_3,gson.fromJson(image_3,Image.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void up_image_z(String id,Image image){
|
||||
MDPLocationCollectionManager.uploadPickupImage(con,id,image, new com.alct.mdp.callback.OnResultListener() {
|
||||
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
Log.e("上报安联","装货照片上传成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("上报安联失败(装货照片):",s+s1);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public void up_image(String id,Image image){
|
||||
MDPLocationCollectionManager.uploadUnloadImage(con,id, image, new com.alct.mdp.callback.OnResultListener() {
|
||||
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
Log.e("上报安联","卸货照片上传成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("上报安联失败(卸货照片):",s+s1);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public void receipt_image(String id,Image image){
|
||||
MDPLocationCollectionManager.uploadPODImage(con,id, image, new com.alct.mdp.callback.OnResultListener() {
|
||||
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
Log.e("上报安联","回单照片上传成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
Log.e("上报安联失败(回单照片):",s+s1);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Intent;
|
||||
import android.content.res.AssetFileDescriptor;
|
||||
import android.media.MediaPlayer;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.request.HuoYuanRequset;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants;
|
||||
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/8 16:33
|
||||
* @description:上传失败后进行重新上传
|
||||
*/
|
||||
public class MakeUpService extends Service {
|
||||
|
||||
private MediaPlayer mediaPlayer = new MediaPlayer();
|
||||
public void palyMp3(){
|
||||
Log.e("开始播放","-----");
|
||||
try {
|
||||
AssetFileDescriptor fd =getAssets().openFd("kujp9scu.mp3");
|
||||
mediaPlayer.setDataSource(fd);
|
||||
mediaPlayer.setLooping(false);//设置为循环播放
|
||||
mediaPlayer.prepare();//初始化播放器MediaPlayer
|
||||
mediaPlayer.start();
|
||||
Log.e("播放成功","-----");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Log.e("播放失败","-----");
|
||||
}
|
||||
}
|
||||
private Handler hd=new Handler(msg -> {
|
||||
switch (msg.what){
|
||||
case RequsetCodeConstants.SUCCESS:
|
||||
if(CacheGroup.cacheList.get(HuoYuanRequset.ASYMMETRYWAYBILL)!=null){
|
||||
|
||||
CacheGroup.cacheList.remove(CacheGroup.cacheList.get(HuoYuanRequset.ASYMMETRYWAYBILL));
|
||||
}
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
palyMp3();
|
||||
}
|
||||
|
||||
//开始
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
Log.e("服务开启","-----");
|
||||
|
||||
return START_STICKY;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (mediaPlayer!=null) {
|
||||
mediaPlayer.stop();
|
||||
mediaPlayer.release();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Notification;
|
||||
import android.app.NotificationChannel;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.media.MediaPlayer;
|
||||
import android.os.Build;
|
||||
import android.os.IBinder;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/10 11:17
|
||||
* @description:
|
||||
*/
|
||||
public class PlayerMusicService extends Service {
|
||||
private MediaPlayer mMediaPlayer;
|
||||
private boolean normalExit;
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
Context con;
|
||||
NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
NotificationChannel mChannel = null;
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
||||
mChannel = new NotificationChannel("1", getString(R.string.app_name),
|
||||
NotificationManager.IMPORTANCE_LOW);
|
||||
notificationManager.createNotificationChannel(mChannel);
|
||||
Notification notification = new Notification.Builder(getApplicationContext(), "1").build();
|
||||
startForeground(1, notification);
|
||||
}
|
||||
normalExit = false;
|
||||
mMediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.silent);
|
||||
if (mMediaPlayer != null) {
|
||||
mMediaPlayer.setLooping(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
startPlayMusic();
|
||||
}
|
||||
}).start();
|
||||
return START_STICKY;
|
||||
}
|
||||
|
||||
|
||||
private void startPlayMusic() {
|
||||
if (mMediaPlayer == null) {
|
||||
mMediaPlayer = MediaPlayer.create(getApplicationContext(), R.raw.silent);
|
||||
|
||||
if (mMediaPlayer != null) {
|
||||
mMediaPlayer.setLooping(true);
|
||||
mMediaPlayer.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void stopPlayMusic() {
|
||||
if (mMediaPlayer != null && mMediaPlayer.isPlaying()) {
|
||||
mMediaPlayer.stop();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
stopPlayMusic();
|
||||
// 重启
|
||||
if (!normalExit) {
|
||||
Intent intent = new Intent(getApplicationContext(), PlayerMusicService.class);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
startForegroundService(intent);
|
||||
} else {
|
||||
startService(intent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.MainActivity;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/31 19:54
|
||||
* @description:
|
||||
*/
|
||||
public class RestartService extends Service {
|
||||
|
||||
private Context con;
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//Service被启动的时候回调onStartCommand方法
|
||||
public int onStartCommand(Intent intent, int flags, int startId){
|
||||
Log.e("---static---","启动");
|
||||
return START_STICKY;
|
||||
}
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
con=getApplication();
|
||||
Intent in=new Intent(con, MainActivity.class);
|
||||
startActivity(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Notification;
|
||||
import android.app.NotificationChannel;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.PendingIntent;
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.core.app.TaskStackBuilder;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.WelcomeActivity;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/10 19:00
|
||||
* @description:
|
||||
*/
|
||||
public class TestService extends Service {
|
||||
|
||||
private Context con;
|
||||
private Handler hd=new Handler(msg -> {
|
||||
switch (msg.what){
|
||||
case 1:
|
||||
|
||||
|
||||
case 2:
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
//DanWeiBroadcastReceiver db;
|
||||
@Nullable
|
||||
@Override
|
||||
//想要使用Service必须实现这个方法,该方法返回一个IBinder对象
|
||||
//应用程序使用这个对象与Service组件进行通信
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//Service被创建的时候回调onCreate方法
|
||||
public void onCreate(){
|
||||
super.onCreate();
|
||||
con=this;
|
||||
new Timer().schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
notification("消息","您有一条新的订单");
|
||||
Log.e("1234","1234");
|
||||
}
|
||||
},100,5000);
|
||||
}
|
||||
|
||||
|
||||
//Service被启动的时候回调onStartCommand方法
|
||||
public int onStartCommand(Intent intent, int flags, int startId){
|
||||
Log.e("---static---","启动");
|
||||
return START_STICKY;
|
||||
}
|
||||
|
||||
//Service被销毁的时候回调onDestroy方法
|
||||
public void onDestroy(){
|
||||
super.onDestroy();
|
||||
Log.e("---static---","关闭");
|
||||
Intent intentOne = new Intent(con,TestService.class);
|
||||
startService(intentOne);
|
||||
}
|
||||
|
||||
private void notification(String title,String value) {
|
||||
Intent intent = new Intent(this, WelcomeActivity.class);
|
||||
NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
|
||||
//8.0 以后需要加上channelId 才能正常显示
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){
|
||||
String channelId = "default";
|
||||
String channelName = "默认通知";
|
||||
manager.createNotificationChannel(new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH));
|
||||
}
|
||||
//设置TaskStackBuilder
|
||||
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
|
||||
stackBuilder.addParentStack(WelcomeActivity.class);
|
||||
stackBuilder.addNextIntent(intent);
|
||||
PendingIntent pendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
Notification notification = new NotificationCompat.Builder(this, "default")
|
||||
.setSmallIcon(R.mipmap.ic_launcher)
|
||||
.setContentTitle("您有一条新的订单")
|
||||
.setContentText(value)
|
||||
.setAutoCancel(true)
|
||||
.setDefaults(Notification.DEFAULT_ALL)
|
||||
.setWhen(System.currentTimeMillis())
|
||||
.setContentIntent(pendingIntent)
|
||||
.build();
|
||||
manager.notify(1, notification);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.service;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.BaseBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.HuoYuanRequset;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.TrackInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.location.LocationGDUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 18:52
|
||||
* @description:上传司机轨迹位置
|
||||
*/
|
||||
public class TrackService extends Service {
|
||||
|
||||
private Context con;
|
||||
private TrackInputBean tib=new TrackInputBean();
|
||||
private LocationGDUtil l;
|
||||
private int timeSum=1000*60*3;
|
||||
private String snn="";
|
||||
private Gson gson=new Gson();
|
||||
private HuoYuanRequset hyr;
|
||||
|
||||
private Handler hd=new Handler(msg -> {
|
||||
switch (msg.what){
|
||||
case RequsetCodeConstants.SUCCESS:
|
||||
if(CacheGroup.cacheList.get("genzong")!=null){
|
||||
BaseBean bb=gson.fromJson(CacheGroup.cacheList.get("genzong"),BaseBean.class);
|
||||
if(bb.getCode()==200){
|
||||
Log.e("--轨迹上传--","成功");
|
||||
}else{
|
||||
Log.e("--轨迹上传失败:--",bb.getMsg());
|
||||
}
|
||||
CacheGroup.cacheList.remove("genzong");
|
||||
}
|
||||
break;
|
||||
case LocationGDUtil.RES:
|
||||
genzong();
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {return null; }
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
con=this;
|
||||
hyr=new HuoYuanRequset(con,hd);
|
||||
Log.e("开始循环上传,等待100ms","-----");
|
||||
new Timer().schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
snn=SPUtil.getSP(con,"order","ShippingNoteNumber");
|
||||
if(!snn.equals("")) {
|
||||
l = new LocationGDUtil(con, hd);
|
||||
l.onCreate();
|
||||
}else{
|
||||
onDestroy();
|
||||
}
|
||||
}
|
||||
},100,timeSum);
|
||||
}
|
||||
|
||||
//开始
|
||||
@Override
|
||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||
Log.e("服务开启","-----");
|
||||
return START_STICKY;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
public void genzong(){
|
||||
//经度
|
||||
tib.setLatitude(l.getLatitude()+"");
|
||||
//纬度
|
||||
tib.setLongitude(l.getLongitude()+"");
|
||||
Log.e("经度",l.getLatitude()+"");
|
||||
Log.e("维度",l.getLongitude()+"");
|
||||
//单号
|
||||
tib.setShippingNoteNumber(snn);
|
||||
hyr.trackTracking(tib);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui
|
||||
|
||||
import android.Manifest
|
||||
import android.content.Intent
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Message
|
||||
import android.view.KeyEvent
|
||||
import android.widget.*
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.arpa.hndahesudintocctmsdriver.R
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.HomeFragment
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.my.MyFragment
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.news.NewsFragment
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.wallet.WalletFragment
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants
|
||||
import com.arpa.hndahesudintocctmsdriver.util.statusbar.StateStyleUtil
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.BaseAppCompatActivity
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.BottomTabUtil
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.PanDuanUtil
|
||||
import com.google.gson.Gson
|
||||
import com.luck.picture.lib.permissions.RxPermissions
|
||||
import io.reactivex.functions.Consumer
|
||||
|
||||
class MainActivity : BaseAppCompatActivity() {
|
||||
|
||||
private var ibs = arrayOf<ImageView>()
|
||||
private var title_view=arrayOf<TextView>()
|
||||
private var imgs0= intArrayOf(R.mipmap.tab1,R.mipmap.tab2,R.mipmap.xiaoxi0,R.mipmap.tab3)
|
||||
private var imgs1= intArrayOf(R.mipmap.tab1_s,R.mipmap.tab2_s,R.mipmap.xiaoxi1,R.mipmap.tab3_s)
|
||||
private val gson = Gson()
|
||||
|
||||
override fun msgMethod(m: Message?) {
|
||||
super.msgMethod(m)
|
||||
when(m!!.what){
|
||||
1->{
|
||||
isExit = false;
|
||||
}
|
||||
RequsetCodeConstants.SUCCESS->{ }
|
||||
}
|
||||
}
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
StateStyleUtil.stateTextColor(this)
|
||||
setContentView(R.layout.activity_main)
|
||||
con=this
|
||||
act=this
|
||||
//隐藏标题栏
|
||||
val actionBar = supportActionBar
|
||||
actionBar?.hide()
|
||||
var r1=findViewById<LinearLayout>(R.id.r1)
|
||||
var r2=findViewById<LinearLayout>(R.id.r2)
|
||||
var r3=findViewById<LinearLayout>(R.id.r3)
|
||||
var r4=findViewById<LinearLayout>(R.id.r4)
|
||||
var fs = arrayOfNulls<Fragment>(4)
|
||||
fs[0] = HomeFragment()
|
||||
fs[1] = WalletFragment()
|
||||
fs[2] = NewsFragment()
|
||||
fs[3] = MyFragment()
|
||||
ibs=arrayOf(
|
||||
findViewById(R.id.huoyuan),
|
||||
findViewById(R.id.qianbao),
|
||||
findViewById(R.id.xiaoxi),
|
||||
findViewById(R.id.wode))
|
||||
title_view=arrayOf(findViewById(R.id.title1),findViewById(R.id.title2),findViewById(R.id.title3),findViewById(R.id.title4))
|
||||
var bt = BottomTabUtil(this, R.id.body, fs)
|
||||
bt.selectItem(fs[0])
|
||||
r1.setOnClickListener { v ->
|
||||
selectImage(bt.index,0)
|
||||
bt.setDefaultFragment(fs[0])
|
||||
bt.index=0
|
||||
}
|
||||
r2.setOnClickListener { v ->
|
||||
if (!PanDuanUtil.isLogin(con)){
|
||||
jumpLogin()
|
||||
}else{
|
||||
selectImage(bt.index,1)
|
||||
if (!fs[1]!!.isAdded) {
|
||||
bt.hide(fs[bt.index])
|
||||
bt.selectItem(fs[1])
|
||||
} else {
|
||||
bt.setDefaultFragment(fs[1])
|
||||
}
|
||||
bt.index = 1
|
||||
}
|
||||
}
|
||||
r3.setOnClickListener { v ->
|
||||
if (!PanDuanUtil.isLogin(con)){
|
||||
jumpLogin()
|
||||
}else{
|
||||
selectImage(bt.index,2)
|
||||
if (!fs[2]!!.isAdded) {
|
||||
bt.hide(fs[bt.index])
|
||||
bt.selectItem(fs[2])
|
||||
} else {
|
||||
bt.setDefaultFragment(fs[2])
|
||||
}
|
||||
bt.index = 2
|
||||
}
|
||||
}
|
||||
r4.setOnClickListener { v ->
|
||||
if (!PanDuanUtil.isLogin(con)){
|
||||
jumpLogin()
|
||||
}else{
|
||||
selectImage(bt.index,3)
|
||||
if (!fs[3]!!.isAdded) {
|
||||
bt.hide(fs[bt.index])
|
||||
bt.selectItem(fs[3])
|
||||
} else {
|
||||
bt.setDefaultFragment(fs[3])
|
||||
}
|
||||
bt.index = 3
|
||||
}
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q){
|
||||
getPression()
|
||||
}
|
||||
}
|
||||
|
||||
fun getPression(){
|
||||
var gpsPermissions = RxPermissions(this)
|
||||
gpsPermissions.request(
|
||||
Manifest.permission.ACCESS_FINE_LOCATION,
|
||||
Manifest.permission.ACCESS_COARSE_LOCATION,
|
||||
Manifest.permission.ACCESS_BACKGROUND_LOCATION
|
||||
).subscribe(
|
||||
Consumer { b: Boolean ->
|
||||
if (b) {
|
||||
//判断GPS模块是否开启
|
||||
|
||||
} else {
|
||||
Toast.makeText(con,"开启权限失败,请在应用设置-权限-定位-始终允许",Toast.LENGTH_SHORT).show()
|
||||
//.show("开启权限失败,请在应用设置-权限-定位-始终允许")
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
fun selectImage(old:Int, new:Int){
|
||||
ibs[old].setImageResource(imgs0[old])
|
||||
ibs[new].setImageResource(imgs1[new])
|
||||
title_view[old].setTextColor(resources.getColor(R.color.tab_select_no,null))
|
||||
title_view[new].setTextColor(resources.getColor(R.color.tab_select,null))
|
||||
}
|
||||
|
||||
fun jumpLogin(){
|
||||
var inl=Intent(con,LoginActivity::class.java)
|
||||
startActivity(inl)
|
||||
}
|
||||
|
||||
|
||||
override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
|
||||
return if (keyCode == KeyEvent.KEYCODE_BACK) {
|
||||
exit()
|
||||
false
|
||||
} else {
|
||||
super.onKeyDown(keyCode, event)
|
||||
}
|
||||
}
|
||||
|
||||
private var isExit = false
|
||||
|
||||
fun exit() {
|
||||
if (!isExit) {
|
||||
isExit = true
|
||||
Toast.makeText(applicationContext, "再按一次退出程序", Toast.LENGTH_SHORT).show()
|
||||
hd.sendEmptyMessageDelayed(0, 2000)
|
||||
} else {
|
||||
val intent = Intent(Intent.ACTION_MAIN)
|
||||
intent.addCategory(Intent.CATEGORY_HOME)
|
||||
startActivity(intent)
|
||||
System.exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.alct.mdp.MDPLocationCollectionManager;
|
||||
import com.alct.mdp.callback.OnResultListener;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.NfcUtils;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.BaseAppCompatActivity;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/2/15 17:03
|
||||
* @description:
|
||||
*/
|
||||
public class NFCActivity extends BaseAppCompatActivity {
|
||||
|
||||
private TextView get;
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_nfc);
|
||||
con=this;
|
||||
get=findViewById(R.id.get);
|
||||
if (!NfcUtils.hasNfc(con)) {
|
||||
Toast.makeText(con,"请先开启nfc",Toast.LENGTH_LONG).show();
|
||||
}else{
|
||||
initData();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void initData() {
|
||||
//nfc初始化设置
|
||||
NfcUtils nfcUtils = new NfcUtils(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
//开启前台调度系统
|
||||
//NfcUtils.mNfcAdapter.enableForegroundDispatch(this, NfcUtils.mPendingIntent, NfcUtils.mIntentFilter, NfcUtils.mTechList);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
//关闭前台调度系统
|
||||
// NfcUtils.mNfcAdapter.disableForegroundDispatch(this);
|
||||
}
|
||||
|
||||
String str="";
|
||||
|
||||
@Override
|
||||
protected void onNewIntent(Intent intent) {
|
||||
super.onNewIntent(intent);
|
||||
//当该Activity接收到NFC标签时,运行该方法
|
||||
//调用工具方法,读取NFC数据
|
||||
try {
|
||||
str = NfcUtils.readNFCId(intent);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
get.setText("读取内容"+str);
|
||||
MDPLocationCollectionManager.checkNfc(getBaseContext(), "123456", str, new OnResultListener() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
get.setText("读取内容"+str+"成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(String s, String s1) {
|
||||
get.setText("读取内容"+str+"失败"+s+s1);
|
||||
|
||||
}
|
||||
});
|
||||
Log.e("nfc",str);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.ContentUris;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.database.Cursor;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.provider.DocumentsContract;
|
||||
import android.provider.MediaStore;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2022/2/9 10:31
|
||||
* @description:
|
||||
*/
|
||||
public class PhotoUtils {
|
||||
|
||||
private static final String TAG = "PhotoUtils";
|
||||
|
||||
/**
|
||||
* @param activity 当前activity
|
||||
* @param imageUri 拍照后照片存储路径
|
||||
* @param requestCode 调用系统相机请求码
|
||||
*/
|
||||
public static void takePicture(Activity activity, Uri imageUri, int requestCode) {
|
||||
//调用系统相机
|
||||
Intent intentCamera = new Intent();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
intentCamera.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); //添加这一句表示对目标应用临时授权该Uri所代表的文件
|
||||
}
|
||||
intentCamera.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
|
||||
//将拍照结果保存至photo_file的Uri中,不保留在相册中
|
||||
intentCamera.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
|
||||
if (activity!=null){
|
||||
activity.startActivityForResult(intentCamera, requestCode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param activity 当前activity
|
||||
* @param requestCode 打开相册的请求码
|
||||
*/
|
||||
public static void openPic(Activity activity, int requestCode) {
|
||||
Intent photoPickerIntent = new Intent(Intent.ACTION_GET_CONTENT);
|
||||
photoPickerIntent.setType("image/*");
|
||||
activity.startActivityForResult(photoPickerIntent, requestCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param activity 当前activity
|
||||
* @param orgUri 剪裁原图的Uri
|
||||
* @param desUri 剪裁后的图片的Uri
|
||||
* @param aspectX X方向的比例
|
||||
* @param aspectY Y方向的比例
|
||||
* @param width 剪裁图片的宽度
|
||||
* @param height 剪裁图片高度
|
||||
* @param requestCode 剪裁图片的请求码
|
||||
*/
|
||||
public static void cropImageUri(Activity activity, Uri orgUri, Uri desUri, int aspectX, int aspectY, int width, int height, int requestCode) {
|
||||
Intent intent = new Intent("com.android.camera.action.CROP");
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
}
|
||||
intent.setDataAndType(orgUri, "image/*");
|
||||
intent.putExtra("crop", "true");
|
||||
intent.putExtra("aspectX", aspectX);
|
||||
intent.putExtra("aspectY", aspectY);
|
||||
intent.putExtra("outputX", width);
|
||||
intent.putExtra("outputY", height);
|
||||
intent.putExtra("scale", true);
|
||||
//将剪切的图片保存到目标Uri中
|
||||
intent.putExtra(MediaStore.EXTRA_OUTPUT, desUri);
|
||||
intent.putExtra("return-data", false);
|
||||
intent.putExtra("outputFormat", Bitmap.CompressFormat.JPEG.toString());
|
||||
intent.putExtra("noFaceDetection", true);
|
||||
activity.startActivityForResult(intent, requestCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取uri所在的图片
|
||||
*
|
||||
* @param uri 图片对应的Uri
|
||||
* @param mContext 上下文对象
|
||||
* @return 获取图像的Bitmap
|
||||
*/
|
||||
public static Bitmap getBitmapFromUri(Uri uri, Context mContext) {
|
||||
try {
|
||||
// Bitmap bitmap = MediaStore.Images.Media.getBitmap(mContext.getContentResolver(), uri);
|
||||
Bitmap bitmapFormUri = getBitmapFormUri(mContext, uri);
|
||||
return bitmapFormUri;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 通过uri获取图片并进行压缩
|
||||
*
|
||||
* @param uri
|
||||
*/
|
||||
public static Bitmap getBitmapFormUri(Context ac, Uri uri) throws FileNotFoundException, IOException {
|
||||
InputStream input = ac.getContentResolver().openInputStream(uri);
|
||||
BitmapFactory.Options onlyBoundsOptions = new BitmapFactory.Options();
|
||||
onlyBoundsOptions.inJustDecodeBounds = true;
|
||||
onlyBoundsOptions.inDither = true;//optional
|
||||
onlyBoundsOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional
|
||||
BitmapFactory.decodeStream(input, null, onlyBoundsOptions);
|
||||
input.close();
|
||||
int originalWidth = onlyBoundsOptions.outWidth;
|
||||
int originalHeight = onlyBoundsOptions.outHeight;
|
||||
if ((originalWidth == -1) || (originalHeight == -1)){
|
||||
return null;
|
||||
}
|
||||
//图片分辨率以480x800为标准
|
||||
float hh = 800f;//这里设置高度为800f
|
||||
float ww = 480f;//这里设置宽度为480f
|
||||
//缩放比。由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可
|
||||
int be = 1;//be=1表示不缩放
|
||||
if (originalWidth > originalHeight && originalWidth > ww) {//如果宽度大的话根据宽度固定大小缩放
|
||||
be = (int) (originalWidth / ww);
|
||||
} else if (originalWidth < originalHeight && originalHeight > hh) {//如果高度高的话根据宽度固定大小缩放
|
||||
be = (int) (originalHeight / hh);
|
||||
}
|
||||
if (be <= 0){
|
||||
be = 1;
|
||||
}
|
||||
//比例压缩
|
||||
BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();
|
||||
bitmapOptions.inSampleSize = be;//设置缩放比例
|
||||
bitmapOptions.inDither = true;//optional
|
||||
bitmapOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional
|
||||
input = ac.getContentResolver().openInputStream(uri);
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions);
|
||||
input.close();
|
||||
return compressImage(bitmap);//再进行质量压缩
|
||||
}
|
||||
|
||||
/**
|
||||
* 质量压缩方法
|
||||
*
|
||||
* @param image
|
||||
* @return
|
||||
*/
|
||||
public static Bitmap compressImage(Bitmap image) {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
image.compress(Bitmap.CompressFormat.JPEG, 100, baos);//质量压缩方法,这里100表示不压缩,把压缩后的数据存放到baos中
|
||||
int options = 100;
|
||||
while (baos.toByteArray().length / 1024 > 100) { //循环判断如果压缩后图片是否大于100kb,大于继续压缩
|
||||
baos.reset();//重置baos即清空baos
|
||||
//第一个参数 :图片格式 ,第二个参数: 图片质量,100为最高,0为最差 ,第三个参数:保存压缩后的数据的流
|
||||
image.compress(Bitmap.CompressFormat.JPEG, options, baos);//这里压缩options%,把压缩后的数据存放到baos中
|
||||
options -= 10;//每次都减少10
|
||||
}
|
||||
ByteArrayInputStream isBm = new ByteArrayInputStream(baos.toByteArray());//把压缩后的数据baos存放到ByteArrayInputStream中
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(isBm, null, null);//把ByteArrayInputStream数据生成图片
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param context 上下文对象
|
||||
* @param uri 当前相册照片的Uri
|
||||
* @return 解析后的Uri对应的String
|
||||
*/
|
||||
@SuppressLint("NewApi")
|
||||
public static String getPath(final Context context, final Uri uri) {
|
||||
|
||||
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
|
||||
String pathHead = "file:///";
|
||||
// DocumentProvider
|
||||
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
|
||||
// ExternalStorageProvider
|
||||
if (isExternalStorageDocument(uri)) {
|
||||
final String docId = DocumentsContract.getDocumentId(uri);
|
||||
final String[] split = docId.split(":");
|
||||
final String type = split[0];
|
||||
if ("primary".equalsIgnoreCase(type)) {
|
||||
return pathHead + Environment.getExternalStorageDirectory() + "/" + split[1];
|
||||
}
|
||||
}
|
||||
// DownloadsProvider
|
||||
else if (isDownloadsDocument(uri)) {
|
||||
|
||||
final String id = DocumentsContract.getDocumentId(uri);
|
||||
|
||||
final Uri contentUri = ContentUris.withAppendedId(Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));
|
||||
|
||||
return pathHead + getDataColumn(context, contentUri, null, null);
|
||||
}
|
||||
// MediaProvider
|
||||
else if (isMediaDocument(uri)) {
|
||||
final String docId = DocumentsContract.getDocumentId(uri);
|
||||
final String[] split = docId.split(":");
|
||||
final String type = split[0];
|
||||
|
||||
Uri contentUri = null;
|
||||
if ("image".equals(type)) {
|
||||
contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
|
||||
} else if ("video".equals(type)) {
|
||||
contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
|
||||
} else if ("audio".equals(type)) {
|
||||
contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
|
||||
}
|
||||
|
||||
final String selection = "_id=?";
|
||||
final String[] selectionArgs = new String[]{split[1]};
|
||||
|
||||
return pathHead + getDataColumn(context, contentUri, selection, selectionArgs);
|
||||
}
|
||||
}
|
||||
// MediaStore (and general)
|
||||
else if ("content".equalsIgnoreCase(uri.getScheme())) {
|
||||
return pathHead + getDataColumn(context, uri, null, null);
|
||||
}
|
||||
// File
|
||||
else if ("file".equalsIgnoreCase(uri.getScheme())) {
|
||||
return pathHead + uri.getPath();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of the data column for this Uri. This is useful for
|
||||
* MediaStore Uris, and other file-based ContentProviders.
|
||||
*
|
||||
* @param context The context.
|
||||
* @param uri The Uri to query.
|
||||
* @param selection (Optional) Filter used in the query.
|
||||
* @param selectionArgs (Optional) Selection arguments used in the query.
|
||||
* @return The value of the _data column, which is typically a file path.
|
||||
*/
|
||||
private static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {
|
||||
|
||||
Cursor cursor = null;
|
||||
final String column = "_data";
|
||||
final String[] projection = {column};
|
||||
try {
|
||||
cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
final int column_index = cursor.getColumnIndexOrThrow(column);
|
||||
return cursor.getString(column_index);
|
||||
}
|
||||
} finally {
|
||||
if (cursor != null){
|
||||
cursor.close();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri The Uri to check.
|
||||
* @return Whether the Uri authority is ExternalStorageProvider.
|
||||
*/
|
||||
private static boolean isExternalStorageDocument(Uri uri) {
|
||||
return "com.android.externalstorage.documents".equals(uri.getAuthority());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri The Uri to check.
|
||||
* @return Whether the Uri authority is DownloadsProvider.
|
||||
*/
|
||||
private static boolean isDownloadsDocument(Uri uri) {
|
||||
return "com.android.providers.downloads.documents".equals(uri.getAuthority());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param uri The Uri to check.
|
||||
* @return Whether the Uri authority is MediaProvider.
|
||||
*/
|
||||
private static boolean isMediaDocument(Uri uri) {
|
||||
return "com.android.providers.media.documents".equals(uri.getAuthority());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.event.HomeEvent;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import cn.jpush.android.api.JPushInterface;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/18 8:45
|
||||
* @description:ui界面的辅助类
|
||||
*/
|
||||
public class UiAuxiliary {
|
||||
|
||||
public static String getState(int stateCode){
|
||||
String state="";
|
||||
switch (stateCode){
|
||||
case 100001: state="待认证";break;
|
||||
case 100002: state="审核中";break;
|
||||
case 100003: state="审核通过";break;
|
||||
case 100004: state="审核不通过";break;
|
||||
default:state="未认证";break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
public static boolean isLogin(Context con){
|
||||
if (SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN).equals("")){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void delLogin(Context con){
|
||||
JPushInterface.deleteAlias(con,0);
|
||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_TOKEN,"");
|
||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_UNAME,"");
|
||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_RNAME,"");
|
||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_ID,"");
|
||||
SPUtil.insSP(con,"user","userdata","");
|
||||
}
|
||||
|
||||
public static void homeRequest(String msg){
|
||||
HomeEvent he=new HomeEvent(msg);
|
||||
EventBus.getDefault().post(he);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.alert;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Handler;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.TextPaint;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.text.style.ClickableSpan;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.lxj.xpopup.core.CenterPopupView;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.web.WebActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.msg.MsgUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/13 10:30
|
||||
* @description:
|
||||
*/
|
||||
public class AgreementAlert extends CenterPopupView {
|
||||
|
||||
private String url;
|
||||
private String url2;
|
||||
private Handler hd;
|
||||
private Context con;
|
||||
|
||||
public AgreementAlert(@NonNull @NotNull Context context,String url,String url2,Handler hd) {
|
||||
super(context);
|
||||
this.url=url;
|
||||
this.url2=url2;
|
||||
this.hd=hd;
|
||||
this.con=context;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.alert_ok_cancel;
|
||||
}
|
||||
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
TextView tv_title=findViewById(R.id.tv_title);
|
||||
TextView tv_content=findViewById(R.id.tv_content);
|
||||
Button tv_cancel=findViewById(R.id.tv_cancel);
|
||||
Button tv_confirm=findViewById(R.id.tv_confirm);
|
||||
tv_content.setGravity(Gravity.LEFT);
|
||||
tv_confirm.setText("同意");
|
||||
tv_title.setText("用户服务协议和隐私政策");
|
||||
String str = "请你务必审慎阅读、充分理解此内容中的“用户服务协议和隐私政策”各条款、包括但不限于:为了向你提供身份认证、接单、运单查询、消息推送等服务我们需要收集你的设备信息、操作日志等个人信息。" +
|
||||
"\n你可阅读《用户服务协议》和《隐私政策》了解详细信息。如果你同意,请点击“同意”开始接受我们的服务。";
|
||||
SpannableStringBuilder ssb = new SpannableStringBuilder();
|
||||
ssb.append(str);
|
||||
//第一个出现的位置
|
||||
final int start = str.indexOf("《");
|
||||
ssb.setSpan(new ClickableSpan() {
|
||||
@Override
|
||||
public void onClick(View widget) {
|
||||
//用户服务协议点击事件
|
||||
Intent in=new Intent(getContext(), WebActivity.class);
|
||||
in.putExtra("url",url2);
|
||||
in.putExtra("title","用户服务协议");
|
||||
getContext().startActivity(in);
|
||||
}
|
||||
@Override
|
||||
public void updateDrawState(TextPaint ds) {
|
||||
super.updateDrawState(ds);
|
||||
//设置文件颜色
|
||||
ds.setColor(getResources().getColor(R.color.theme_color,null));
|
||||
// 去掉下划线
|
||||
ds.setUnderlineText(false);
|
||||
}
|
||||
}, start, start + 8, 0);
|
||||
final int end = str.lastIndexOf("《");
|
||||
ssb.setSpan(new ClickableSpan() {
|
||||
@Override
|
||||
public void onClick(View widget) {
|
||||
//用户服务协议点击事件
|
||||
Intent in=new Intent(getContext(), WebActivity.class);
|
||||
in.putExtra("url",url);
|
||||
in.putExtra("title","隐私政策");
|
||||
getContext().startActivity(in);
|
||||
}
|
||||
@Override
|
||||
public void updateDrawState(TextPaint ds) {
|
||||
super.updateDrawState(ds);
|
||||
//设置文件颜色
|
||||
ds.setColor(getResources().getColor(R.color.theme_color,null));
|
||||
// 去掉下划线
|
||||
ds.setUnderlineText(false);
|
||||
}
|
||||
}, end, end + 6, 0);
|
||||
tv_content.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
tv_content.setText(ssb, TextView.BufferType.SPANNABLE);
|
||||
tv_cancel.setOnClickListener(v -> {
|
||||
System.exit(1);
|
||||
});
|
||||
tv_confirm.setOnClickListener(v -> {
|
||||
SPUtil.insSP(con,"data","firstKey","1");
|
||||
dismiss();
|
||||
MsgUtil.addHdMsgWat(hd,13);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.alert;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.os.Handler;
|
||||
import android.widget.Button;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.cardview.widget.CardView;
|
||||
|
||||
import com.lxj.xpopup.core.CenterPopupView;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.CarListBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.msg.MsgUtil;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/10/8 15:20
|
||||
* @description:
|
||||
*/
|
||||
public class ChoiceVehicleAlert extends CenterPopupView{
|
||||
|
||||
private CardView box,box2,box3,choice,choice2,choice3;
|
||||
private TextView name,name2,name3;
|
||||
private Button tv_cancel,tv_confirm;
|
||||
private Context con;
|
||||
private CarListBean clb;
|
||||
private Handler hd;
|
||||
private int index=-1;
|
||||
public ChoiceVehicleAlert(@NonNull @NotNull Context context,CarListBean clb, Handler hd) {
|
||||
super(context);
|
||||
this.con=context;
|
||||
this.clb=clb;
|
||||
this.hd=hd;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.alert_choice_vehicle;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
box=findViewById(R.id.box);
|
||||
box2=findViewById(R.id.box2);
|
||||
box3=findViewById(R.id.box3);
|
||||
choice=findViewById(R.id.choice);
|
||||
choice2=findViewById(R.id.choice2);
|
||||
choice3=findViewById(R.id.choice3);
|
||||
name=findViewById(R.id.name);
|
||||
name2=findViewById(R.id.name2);
|
||||
name3=findViewById(R.id.name3);
|
||||
tv_cancel=findViewById(R.id.tv_cancel);
|
||||
tv_confirm=findViewById(R.id.tv_confirm);
|
||||
switch (clb.getData().size()){
|
||||
case 3:
|
||||
box3.setVisibility(VISIBLE);
|
||||
name3.setText(clb.getData().get(2).getCarNumber());
|
||||
case 2:
|
||||
box2.setVisibility(VISIBLE);
|
||||
name2.setText(clb.getData().get(1).getCarNumber());
|
||||
case 1:
|
||||
box.setVisibility(VISIBLE);
|
||||
name.setText(clb.getData().get(0).getCarNumber());
|
||||
break;
|
||||
}
|
||||
box.setOnClickListener(v -> {
|
||||
initItem();
|
||||
selectItem(name,choice);
|
||||
index=0;
|
||||
});
|
||||
box2.setOnClickListener(v -> {
|
||||
initItem();
|
||||
selectItem(name2,choice2);
|
||||
index=1;
|
||||
});
|
||||
box3.setOnClickListener(v -> {
|
||||
initItem();
|
||||
selectItem(name3,choice3);
|
||||
index=2;
|
||||
});
|
||||
tv_confirm.setOnClickListener(v -> {
|
||||
if(index!=-1){
|
||||
MsgUtil.addHdMsgWatBody(hd,13,index+"");
|
||||
destroy();
|
||||
}else{
|
||||
Toast.makeText(con,"请先选择车辆",Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
tv_cancel.setOnClickListener(v -> {
|
||||
destroy();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void initItem(){
|
||||
name.setTextColor(Color.rgb(51,51,51));
|
||||
name2.setTextColor(Color.rgb(51,51,51));
|
||||
name3.setTextColor(Color.rgb(51,51,51));
|
||||
choice.setCardBackgroundColor(Color.rgb(51,51,51));
|
||||
choice2.setCardBackgroundColor(Color.rgb(51,51,51));
|
||||
choice3.setCardBackgroundColor(Color.rgb(51,51,51));
|
||||
}
|
||||
|
||||
public void selectItem(TextView v1,CardView v2){
|
||||
v1.setTextColor(getResources().getColor(R.color.theme_color));
|
||||
v2.setCardBackgroundColor(getResources().getColor(R.color.theme_color));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.alert;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.lxj.xpopup.core.AttachPopupView;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.CarListBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.msg.MsgUtil;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/3 14:30
|
||||
* @description:
|
||||
*/
|
||||
public class CustomAttachPopup extends AttachPopupView {
|
||||
|
||||
private CarListBean clb;
|
||||
private Handler hd;
|
||||
public CustomAttachPopup(@NonNull @NotNull Context context, CarListBean clb, Handler hd) {
|
||||
super(context);
|
||||
this.clb=clb;
|
||||
this.hd=hd;
|
||||
}
|
||||
|
||||
public CustomAttachPopup(@NonNull @NotNull Context context, Handler hd) {
|
||||
super(context);
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.activity_vc;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
if(clb!=null){
|
||||
TextView tv1 = findViewById(R.id.che_1);
|
||||
TextView tv2 = findViewById(R.id.che_2);
|
||||
TextView tv3 = findViewById(R.id.che_3);
|
||||
switch (clb.getData().size()){
|
||||
case 3:
|
||||
tv3.setVisibility(VISIBLE);
|
||||
tv3.setText(clb.getData().get(2).getCarNumber());
|
||||
case 2:
|
||||
tv2.setVisibility(VISIBLE);
|
||||
tv2.setText(clb.getData().get(1).getCarNumber());
|
||||
case 1:
|
||||
tv1.setVisibility(VISIBLE);
|
||||
tv1.setText(clb.getData().get(0).getCarNumber());
|
||||
break;
|
||||
}
|
||||
tv1.setOnClickListener(v -> {
|
||||
MsgUtil.addHdMsgWatBody(hd,13,"0");
|
||||
});
|
||||
tv2.setOnClickListener(v -> {
|
||||
MsgUtil.addHdMsgWatBody(hd,13,"1");
|
||||
});
|
||||
tv3.setOnClickListener(v -> {
|
||||
MsgUtil.addHdMsgWatBody(hd,13,"2");
|
||||
});
|
||||
}else{
|
||||
TextView t1 = findViewById(R.id.type1);
|
||||
TextView t2 = findViewById(R.id.type2);
|
||||
t1.setVisibility(VISIBLE);t2.setVisibility(VISIBLE);
|
||||
t1.setOnClickListener(v -> {
|
||||
MsgUtil.addHdMsgWatBody(hd,13,"1");
|
||||
});
|
||||
t2.setOnClickListener(v -> {
|
||||
MsgUtil.addHdMsgWatBody(hd,13,"2");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.alert;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.king.app.updater.AppUpdater;
|
||||
import com.king.app.updater.callback.AppUpdateCallback;
|
||||
import com.lxj.xpopup.core.CenterPopupView;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 17:23
|
||||
* @description:
|
||||
*/
|
||||
public class UpAppAlert extends CenterPopupView {
|
||||
|
||||
private TextView content,vs;
|
||||
private Button tv_cancel,tv_confirm;
|
||||
private LinearLayout up_div;
|
||||
private String url="";
|
||||
private String body="";
|
||||
private Context con;
|
||||
private ProgressBar progress_view;
|
||||
private String version;
|
||||
private String force;
|
||||
private LinearLayout force_box;
|
||||
private ImageButton force_btn;
|
||||
|
||||
public UpAppAlert(@NonNull @NotNull Context context, String url, String body,String version,String force) {
|
||||
super(context);
|
||||
con=context;
|
||||
this.url=url;
|
||||
this.body=body;
|
||||
this.version=version;
|
||||
this.force=force;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.alert_up_app;
|
||||
}
|
||||
public UpAppAlert(@NonNull @NotNull Context context) {
|
||||
super(context);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
content=findViewById(R.id.tv_content);
|
||||
tv_cancel=findViewById(R.id.tv_cancel);
|
||||
tv_confirm=findViewById(R.id.tv_confirm);
|
||||
up_div=findViewById(R.id.up_div);
|
||||
progress_view=findViewById(R.id.progress);
|
||||
content=findViewById(R.id.tv_content);
|
||||
force_box=findViewById(R.id.force_box);
|
||||
force_btn=findViewById(R.id.force_btn);
|
||||
if(force.equals("1")){
|
||||
force_box.setVisibility(GONE);
|
||||
}
|
||||
force_btn.setOnClickListener(v -> {
|
||||
setVisibility(GONE);
|
||||
dismiss();
|
||||
//detachFromHost();
|
||||
});
|
||||
vs=findViewById(R.id.vs);
|
||||
content.setText(body);
|
||||
vs.setText(version);
|
||||
tv_cancel.setOnClickListener(v -> {
|
||||
System.exit(1);
|
||||
});
|
||||
tv_confirm.setOnClickListener(v -> {
|
||||
new AppUpdater.Builder()
|
||||
.setUrl(url)
|
||||
.build(con)
|
||||
.setUpdateCallback(new AppUpdateCallback() {
|
||||
@Override
|
||||
public void onStart(String url) {
|
||||
super.onStart(url);
|
||||
tv_confirm.setVisibility(GONE);
|
||||
up_div.setVisibility(VISIBLE);
|
||||
}
|
||||
@Override
|
||||
public void onProgress(long progress, long total, boolean isChange) {
|
||||
// Log.e("progress",progress+"");
|
||||
// Log.e("total",total+"");
|
||||
// Log.e("isChange",isChange+"");
|
||||
float sum=progress;
|
||||
float max=total;
|
||||
if(progress>0){
|
||||
float b=sum/max;
|
||||
Log.e("百分比",(100*b)+"");
|
||||
progress_view.setProgress((int) (100*b));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish(File file) {
|
||||
|
||||
}
|
||||
})
|
||||
.start();
|
||||
});
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.alert;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.BaseActivity;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/3 11:52
|
||||
* @description:
|
||||
*/
|
||||
public class VehicleChoiceActivity extends BaseActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_vc);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.auth;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.CountDownTimer;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.statusbar.StateStyleUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.BaseAppCompatActivity;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import rx.Observable;
|
||||
import rx.schedulers.Schedulers;
|
||||
|
||||
/**
|
||||
* @ClassName AddCarSuccActivity
|
||||
* @Author 用户
|
||||
* @Date 2022/4/13 11:37
|
||||
* @Description TODO
|
||||
*/
|
||||
public class AddCarSuccActivity extends BaseAppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
StateStyleUtil.stateTextColor(this);
|
||||
setContentView(R.layout.activity_add_car_result);
|
||||
con = this;
|
||||
TextView tvTips = findViewById(R.id.tvTips);
|
||||
|
||||
new CountDownTimer(4*1000,1000){
|
||||
@Override
|
||||
public void onTick(long millisUntilFinished) {
|
||||
|
||||
tvTips.setText(millisUntilFinished / 1000+"秒后自动关闭");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFinish() {
|
||||
finish();
|
||||
}
|
||||
}.start();
|
||||
|
||||
initView(null);
|
||||
|
||||
}
|
||||
}
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.ui.auth;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.parts.UserParts;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.string.StringUtil;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.esign.esignsdk.EsignSdk;
|
||||
import com.github.gzuliyujiang.wheelpicker.DatePicker;
|
||||
import com.github.gzuliyujiang.wheelpicker.annotation.DateMode;
|
||||
import com.google.gson.Gson;
|
||||
import com.luck.picture.lib.PictureSelector;
|
||||
import com.luck.picture.lib.config.PictureConfig;
|
||||
import com.luck.picture.lib.entity.LocalMedia;
|
||||
import com.lxj.xpopup.XPopup;
|
||||
import com.arpa.hndahesudintocctmsdriver.R;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.BaseBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.IsAuthDriverAuthQualificationBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.UploadBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.bean.UserBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.AuthRequest;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.UserRequset;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.img.GetImageAlert;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.img.ImageUriUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.cache.CacheGroup;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.file.ImageFileCompressUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequsetCodeConstants;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.statusbar.StateStyleUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.view.BaseAppCompatActivity;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/1 16:24
|
||||
* @description:
|
||||
*/
|
||||
public class AuthQualificationActivity extends BaseAppCompatActivity {
|
||||
|
||||
private IsAuthDriverAuthQualificationBean ib;
|
||||
private RelativeLayout up_img, cow1;
|
||||
private LinearLayout data_view;
|
||||
private ImageView img;
|
||||
private TextView zjimg_name, upload_img, name2, title1, title2, tvSkip,tvTips;
|
||||
private View vs;
|
||||
private EditText value1;
|
||||
private Button submit;
|
||||
private TextView value2;
|
||||
private UploadBean ub;
|
||||
private String url = "";
|
||||
private UserRequset ur;
|
||||
private Gson gson = new Gson();
|
||||
|
||||
@Override
|
||||
public void msgMethod(Message m) {
|
||||
super.msgMethod(m);
|
||||
switch (m.what) {
|
||||
case RequsetCodeConstants.SUCCESS:
|
||||
if (CacheGroup.cacheList.get("upload") != null) {
|
||||
ub = gson.fromJson(CacheGroup.cacheList.get("upload"), UploadBean.class);
|
||||
if (ub.getCode() == 200) {
|
||||
url = ub.getData().getUrl();
|
||||
Glide.with(con).load(url).into(img);
|
||||
up_img.setVisibility(View.GONE);
|
||||
img.setVisibility(View.VISIBLE);
|
||||
}
|
||||
CacheGroup.cacheList.remove("upload");
|
||||
}
|
||||
if (CacheGroup.cacheList.get("isAuthDriverAuthQualification") != null) {
|
||||
Log.e("is", CacheGroup.cacheList.get("isAuthDriverAuthQualification"));
|
||||
ib = gson.fromJson(CacheGroup.cacheList.get("isAuthDriverAuthQualification"), IsAuthDriverAuthQualificationBean.class);
|
||||
if (ib.getCode() == 200) {
|
||||
if (ib.getData() != null) {
|
||||
initAuth();
|
||||
}
|
||||
} else {
|
||||
Toast.makeText(con, ib.getMsg(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
CacheGroup.cacheList.remove("isAuthDriverAuthQualification");
|
||||
}
|
||||
if (CacheGroup.cacheList.get("driverAuthQualification") != null) {
|
||||
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get("driverAuthQualification"), BaseBean.class);
|
||||
if (bb.getCode() == 200) {
|
||||
// initAuth();
|
||||
//从业资格证->实名认证
|
||||
// finish();
|
||||
if (key) {
|
||||
key = false;
|
||||
new AuthRequest().getAuthUrl(con, hd);
|
||||
new Handler().postDelayed(() -> {
|
||||
key = true;
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
Toast.makeText(con, "资格证上传成功", Toast.LENGTH_SHORT).show();
|
||||
} else {
|
||||
Toast.makeText(con, bb.getMsg(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
CacheGroup.cacheList.remove("driverAuthQualification");
|
||||
}
|
||||
if (CacheGroup.cacheList.get("partyMember") != null) {
|
||||
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get("partyMember"), BaseBean.class);
|
||||
if (bb.getCode() == 200) {
|
||||
Toast.makeText(con, "党员信息上传成功", Toast.LENGTH_SHORT).show();
|
||||
// WoDeFragment.dang.setVisibility(View.VISIBLE);
|
||||
// UserBean user=UserParts.getUser(con);
|
||||
// user.getData().setPartyMemberUrl(url);
|
||||
// user.getData().setPartyMemberStatus(1);
|
||||
// UserParts.setUser(con,user);
|
||||
} else {
|
||||
Toast.makeText(con, bb.getMsg(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
CacheGroup.cacheList.remove("partyMember");
|
||||
}
|
||||
|
||||
if (CacheGroup.cacheList.get("authUrl") != null) {
|
||||
Log.e("url", CacheGroup.cacheList.get("authUrl"));
|
||||
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get("authUrl"), BaseBean.class);
|
||||
if (bb.getCode() == 200) {
|
||||
finish();
|
||||
EsignSdk.getInstance().startH5Activity(act, StringUtil.isNull(String.valueOf(bb.getData()), ""));
|
||||
} else {
|
||||
Toast.makeText(con, bb.getMsg(), Toast.LENGTH_LONG).show();
|
||||
}//Log.e("url",CacheGroup.cacheList.get("authUrl"));
|
||||
CacheGroup.cacheList.remove("authUrl");
|
||||
}
|
||||
break;
|
||||
case ImageFileCompressUtil.COMPRESS_SUCCESS:
|
||||
path = (String) m.obj;
|
||||
new AuthRequest().upload(con, hd, new File(path));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private String type = "0";
|
||||
private UserBean userBean;
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
StateStyleUtil.stateTextColor(this);
|
||||
setContentView(R.layout.activity_auth_qualification);
|
||||
con = this;
|
||||
act=this;
|
||||
img = findViewById(R.id.img);
|
||||
zjimg_name = findViewById(R.id.zjimg_name);
|
||||
upload_img = findViewById(R.id.upload_img);
|
||||
value1 = findViewById(R.id.value1);
|
||||
value2 = findViewById(R.id.value2);
|
||||
submit = findViewById(R.id.submit);
|
||||
up_img = findViewById(R.id.up_img);
|
||||
name2 = findViewById(R.id.name2);
|
||||
title1 = findViewById(R.id.title1);
|
||||
title2 = findViewById(R.id.title2);
|
||||
tvSkip = findViewById(R.id.tvSkip);
|
||||
tvTips = findViewById(R.id.tvTips);
|
||||
cow1 = findViewById(R.id.cow1);
|
||||
vs = findViewById(R.id.vs);
|
||||
data_view = findViewById(R.id.data_view);
|
||||
type = getIntent().getExtras().getString("type");
|
||||
ur = new UserRequset(con, hd);
|
||||
initView(null);
|
||||
if ("0".equals(type)) {
|
||||
new AuthRequest().isDriverAuthQualification(con, hd);
|
||||
} else {
|
||||
userBean = UserParts.getUser(con);
|
||||
if (userBean.getData().getPartyMemberStatus() == 2) {
|
||||
initAuth();
|
||||
}
|
||||
//new RZRequest().isDriverAuthQualification(con,hd);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean key = true;
|
||||
boolean isAuth = false;
|
||||
private GetImageAlert gia = new GetImageAlert();
|
||||
|
||||
@Override
|
||||
public void initView(Object obj) {
|
||||
super.initView(obj);
|
||||
upload_img.setOnClickListener(v -> {
|
||||
if (!isAuth) {
|
||||
gia.showPopueWindow(this);
|
||||
}
|
||||
});
|
||||
img.setOnClickListener(v -> {
|
||||
if (!"".equals(url)) {
|
||||
new XPopup.Builder(con)
|
||||
.asImageViewer(img, url, true, -1, -1, 50, false, new CertificatesActivity.ImageLoader())
|
||||
.show();
|
||||
}
|
||||
});
|
||||
value2.setOnClickListener(v -> {
|
||||
DatePicker picker = new DatePicker(this);
|
||||
picker.setBodyWidth(300);
|
||||
picker.setOnDatePickedListener((year, month, day) -> value2.setText(year + "-" + month + "-" + day));
|
||||
picker.getWheelLayout().setDateMode(DateMode.YEAR_MONTH_DAY);
|
||||
picker.getWheelLayout().setDateLabel("年", "月", "日");
|
||||
picker.show();
|
||||
});
|
||||
submit.setOnClickListener(v -> {
|
||||
if (!isAuth) {
|
||||
String id = value1.getText() + "";
|
||||
String date = value2.getText() + "";
|
||||
if ("0".equals(type)) {
|
||||
if (!"".equals(id) && !"".equals(date) && !"".equals(url)) {
|
||||
new AuthRequest().driverAuthQualification(con, hd, id, ub.getData().getId(), date);
|
||||
} else {
|
||||
Toast.makeText(con, "提交信息不完整", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
} else {
|
||||
if (!"".equals(url)) {
|
||||
ur.partyMember(url);
|
||||
} else {
|
||||
Toast.makeText(con, "请先上传党员证照片", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ("0".equals(type)) {
|
||||
if (key) {
|
||||
key = false;
|
||||
new AuthRequest().getAuthUrl(con, hd);
|
||||
new Handler().postDelayed(() -> {
|
||||
key = true;
|
||||
}, 3000);
|
||||
}
|
||||
} else {
|
||||
if (key) {
|
||||
key = false;
|
||||
new AuthRequest().getAuthUrl(con, hd);
|
||||
new Handler().postDelayed(() -> {
|
||||
key = true;
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tvSkip.setOnClickListener(v -> {
|
||||
if (type.equals("0")) {
|
||||
// finish();
|
||||
if (key) {
|
||||
key = false;
|
||||
new AuthRequest().getAuthUrl(con, hd);
|
||||
new Handler().postDelayed(() -> {
|
||||
key = true;
|
||||
}, 3000);
|
||||
}
|
||||
} else if (type.equals("1")) {
|
||||
//跳过党员信息 -> 实名认证
|
||||
if (key) {
|
||||
key = false;
|
||||
new AuthRequest().getAuthUrl(con, hd);
|
||||
new Handler().postDelayed(() -> {
|
||||
key = true;
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (type.equals("1")) {
|
||||
tvTips.setVisibility(View.GONE);
|
||||
submit.setText("保存");
|
||||
tvSkip.setVisibility(View.GONE);
|
||||
title1.setText("党员信息");
|
||||
title2.setText("党员信息");
|
||||
cow1.setVisibility(View.GONE);
|
||||
vs.setVisibility(View.GONE);
|
||||
name2.setText("入党时间");
|
||||
zjimg_name.setText("党员证照片");
|
||||
data_view.setVisibility(View.GONE);
|
||||
title2.setVisibility(View.GONE);
|
||||
}else{
|
||||
tvTips.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
public void initAuth() {
|
||||
if ("0".equals(type)) {
|
||||
submit.setBackgroundResource(R.drawable.bg_btn_grey);
|
||||
isAuth = true;
|
||||
url = ib.getData().getQualificationCertificatePhotoUrl();
|
||||
value1.setText(ib.getData().getQualificationCertificate());
|
||||
value2.setText(ib.getData().getQualificationCertificateValidity());
|
||||
up_img.setVisibility(View.GONE);
|
||||
img.setVisibility(View.VISIBLE);
|
||||
Glide.with(con).load(url).into(img);
|
||||
upload_img.setText("已上传");
|
||||
} else {
|
||||
submit.setBackgroundResource(R.drawable.bg_btn_grey);
|
||||
isAuth = true;
|
||||
url = userBean.getData().getPartyMemberUrl();
|
||||
Glide.with(con).load(url).into(img);
|
||||
up_img.setVisibility(View.GONE);
|
||||
img.setVisibility(View.VISIBLE);
|
||||
upload_img.setText("已上传");
|
||||
}
|
||||
}
|
||||
|
||||
private String path;
|
||||
|
||||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
if (requestCode == 12 && resultCode == RESULT_OK) {
|
||||
path = gia.getFile().getPath();
|
||||
Log.e("图片地址:", path);
|
||||
gia.dis();
|
||||
ImageFileCompressUtil.imageFileCompress(con, new File(path), hd);
|
||||
} else if (requestCode == PictureConfig.CHOOSE_REQUEST && resultCode == RESULT_OK) {
|
||||
List<LocalMedia> imgs = PictureSelector.obtainMultipleResult(data);
|
||||
if (imgs != null && imgs.size() > 0) {
|
||||
LocalMedia image = imgs.get(0);
|
||||
|
||||
String paths = image.getAndroidQToPath();
|
||||
if (TextUtils.isEmpty(paths)) {
|
||||
paths = image.getPath();
|
||||
}
|
||||
path = paths;
|
||||
Log.e("图片地址:", path);
|
||||
gia.dis();
|
||||
ImageFileCompressUtil.imageFileCompress(con, new File(path), hd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user