Commit b8c195a0 authored by hywang's avatar hywang

1.不再保存图片base64,增加图片路径

parent e38e23f3
...@@ -9,8 +9,8 @@ android { ...@@ -9,8 +9,8 @@ android {
applicationId "com.phlx.anchorcollect" applicationId "com.phlx.anchorcollect"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode 11 versionCode 12
versionName "2.0.5" versionName "2.0.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
...@@ -48,7 +48,7 @@ android { ...@@ -48,7 +48,7 @@ android {
} }
greendao { greendao {
schemaVersion 5 //数据库版本号 schemaVersion 6 //数据库版本号
daoPackage 'com.phlx.anchorcollect.db.gen' daoPackage 'com.phlx.anchorcollect.db.gen'
targetGenDir 'src/main/java' targetGenDir 'src/main/java'
} }
......
...@@ -14,10 +14,10 @@ import org.greenrobot.greendao.identityscope.IdentityScopeType; ...@@ -14,10 +14,10 @@ import org.greenrobot.greendao.identityscope.IdentityScopeType;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/** /**
* Master of DAO (schema version 5): knows all DAOs. * Master of DAO (schema version 6): knows all DAOs.
*/ */
public class DaoMaster extends AbstractDaoMaster { public class DaoMaster extends AbstractDaoMaster {
public static final int SCHEMA_VERSION = 5; public static final int SCHEMA_VERSION = 6;
/** Creates underlying database table using DAOs. */ /** Creates underlying database table using DAOs. */
public static void createAllTables(Database db, boolean ifNotExists) { public static void createAllTables(Database db, boolean ifNotExists) {
......
...@@ -81,6 +81,9 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -81,6 +81,9 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
/** 照片路径;(可以多图片“,”分割) */ /** 照片路径;(可以多图片“,”分割) */
private String photo; private String photo;
/** 照片路径, 手持机用*/
private String photoPath;
/** 状态(育种,育成,成年;淘汰,出售) */ /** 状态(育种,育成,成年;淘汰,出售) */
private String status; private String status;
...@@ -162,6 +165,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -162,6 +165,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
junHeavy = in.readString(); junHeavy = in.readString();
decAppScore = in.readString(); decAppScore = in.readString();
photo = in.readString(); photo = in.readString();
photoPath = in.readString();
status = in.readString(); status = in.readString();
if (in.readByte() == 0) { if (in.readByte() == 0) {
isOut = null; isOut = null;
...@@ -194,14 +198,14 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -194,14 +198,14 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
remark = in.readString(); remark = in.readString();
} }
@Generated(hash = 1106807371) @Generated(hash = 1557063295)
public CattleResumeEntity(Long unid, String registrationNo, String individualNo, String circleNo, public CattleResumeEntity(Long unid, String registrationNo, String individualNo, String circleNo,
String raiseType, String raiseVarieties, String birthdate, Double birthHeavy, String sex, String raiseType, String raiseVarieties, String birthdate, Double birthHeavy, String sex,
String birthDifficulty, String isTwins, String childTime, String grade, String fatherReg, String birthDifficulty, String isTwins, String childTime, String grade, String fatherReg,
String motherReg, Double fromMilkHeavy, String health, String junHeavy, String decAppScore, String motherReg, Double fromMilkHeavy, String health, String junHeavy, String decAppScore,
String photo, String status, Long isOut, Integer age, String colour, String inputTime, String photo, String photoPath, String status, Long isOut, Integer age, String colour,
Long deptId, Long deptName, String uploadStatus, String uploadTime, String createBy, String inputTime, Long deptId, Long deptName, String uploadStatus, String uploadTime,
String createTime, String updateBy, String updateTime, String remark) { String createBy, String createTime, String updateBy, String updateTime, String remark) {
this.unid = unid; this.unid = unid;
this.registrationNo = registrationNo; this.registrationNo = registrationNo;
this.individualNo = individualNo; this.individualNo = individualNo;
...@@ -222,6 +226,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -222,6 +226,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
this.junHeavy = junHeavy; this.junHeavy = junHeavy;
this.decAppScore = decAppScore; this.decAppScore = decAppScore;
this.photo = photo; this.photo = photo;
this.photoPath = photoPath;
this.status = status; this.status = status;
this.isOut = isOut; this.isOut = isOut;
this.age = age; this.age = age;
...@@ -275,6 +280,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -275,6 +280,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
dest.writeString(junHeavy); dest.writeString(junHeavy);
dest.writeString(decAppScore); dest.writeString(decAppScore);
dest.writeString(photo); dest.writeString(photo);
dest.writeString(photoPath);
dest.writeString(status); dest.writeString(status);
if (isOut == null) { if (isOut == null) {
dest.writeByte((byte) 0); dest.writeByte((byte) 0);
...@@ -328,10 +334,6 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -328,10 +334,6 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
} }
}; };
public static long getSerialVersionUID() {
return serialVersionUID;
}
public Long getUnid() { public Long getUnid() {
return unid; return unid;
} }
...@@ -492,6 +494,14 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -492,6 +494,14 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
this.photo = photo; this.photo = photo;
} }
public String getPhotoPath() {
return photoPath;
}
public void setPhotoPath(String photoPath) {
this.photoPath = photoPath;
}
public String getStatus() { public String getStatus() {
return status; return status;
} }
...@@ -627,6 +637,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable { ...@@ -627,6 +637,7 @@ public class CattleResumeEntity extends BaseObservable implements Parcelable {
", junHeavy='" + junHeavy + '\'' + ", junHeavy='" + junHeavy + '\'' +
", decAppScore='" + decAppScore + '\'' + ", decAppScore='" + decAppScore + '\'' +
", photo='" + photo + '\'' + ", photo='" + photo + '\'' +
", photoPath='" + photoPath + '\'' +
", status='" + status + '\'' + ", status='" + status + '\'' +
", isOut=" + isOut + ", isOut=" + isOut +
", age=" + age + ", age=" + age +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment