ソースを参照

Merge branch 'fix/empower' into 'project/chinamobile-重庆移动'

应为使用1.6的增强器,必须使用类型

See merge request o2oa/o2oa!2930

(cherry picked from commit d3723dcbc0e4ee511ffa166da4a1fcc35e8eeb99)

af73c3cf 应为使用1.6的增强器,必须使用类型
o2null 5 年 前
コミット
6ee3e19025

+ 5 - 0
o2server/x_base_core_project/src/main/java/com/x/base/core/entity/JsonProperties.java

@@ -6,6 +6,11 @@ import com.x.base.core.project.gson.GsonPropertyObject;
 
 
 public abstract class JsonProperties extends GsonPropertyObject {
 public abstract class JsonProperties extends GsonPropertyObject {
 
 
+	private static final long serialVersionUID = -5074100033957236455L;
+
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
 	public boolean equals(Object o) {
 	public boolean equals(Object o) {
 		if (null == o) {
 		if (null == o) {
 			return false;
 			return false;

+ 3 - 3
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/RecordProperties.java

@@ -11,10 +11,10 @@ import com.x.processplatform.core.entity.element.ActivityType;
 public class RecordProperties extends JsonProperties {
 public class RecordProperties extends JsonProperties {
 
 
 	@FieldDescribe("后续人工环节")
 	@FieldDescribe("后续人工环节")
-	private List<NextManual> nextManualList = new ArrayList<>();
+	private List<NextManual> nextManualList = new ArrayList<NextManual>();
 
 
 	@FieldDescribe("后续人工环节处理人")
 	@FieldDescribe("后续人工环节处理人")
-	private List<String> nextManualTaskIdentityList = new ArrayList<>();
+	private List<String> nextManualTaskIdentityList = new ArrayList<String>();
 
 
 	@FieldDescribe("授权给处理人")
 	@FieldDescribe("授权给处理人")
 	private String empowerToPerson;
 	private String empowerToPerson;
@@ -80,7 +80,7 @@ public class RecordProperties extends JsonProperties {
 		@FieldDescribe("活动活动令牌")
 		@FieldDescribe("活动活动令牌")
 		private String activityToken;
 		private String activityToken;
 		@FieldDescribe("待办处理人")
 		@FieldDescribe("待办处理人")
-		private List<String> taskIdentityList = new ArrayList<>();
+		private List<String> taskIdentityList = new ArrayList<String>();
 
 
 		public List<String> getTaskIdentityList() {
 		public List<String> getTaskIdentityList() {
 			if (null == this.taskIdentityList) {
 			if (null == this.taskIdentityList) {

+ 21 - 21
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/SnapProperties.java

@@ -20,37 +20,37 @@ public class SnapProperties extends JsonProperties {
 	private String job;
 	private String job;
 
 
 	@FieldDescribe("工作")
 	@FieldDescribe("工作")
-	private List<Work> workList = new ArrayList<>();
+	private List<Work> workList = new ArrayList<Work>();
 
 
 	@FieldDescribe("已完成工作")
 	@FieldDescribe("已完成工作")
 	private WorkCompleted workCompleted;
 	private WorkCompleted workCompleted;
 
 
 	@FieldDescribe("待办")
 	@FieldDescribe("待办")
-	private List<Task> taskList = new ArrayList<>();
+	private List<Task> taskList = new ArrayList<Task>();
 
 
 	@FieldDescribe("已办")
 	@FieldDescribe("已办")
-	private List<TaskCompleted> taskCompletedList = new ArrayList<>();
+	private List<TaskCompleted> taskCompletedList = new ArrayList<TaskCompleted>();
 
 
 	@FieldDescribe("待阅")
 	@FieldDescribe("待阅")
-	private List<Read> readList = new ArrayList<>();
+	private List<Read> readList = new ArrayList<Read>();
 
 
 	@FieldDescribe("已阅")
 	@FieldDescribe("已阅")
-	private List<ReadCompleted> readCompletedList = new ArrayList<>();
+	private List<ReadCompleted> readCompletedList = new ArrayList<ReadCompleted>();
 
 
 	@FieldDescribe("参阅")
 	@FieldDescribe("参阅")
-	private List<Review> reviewList = new ArrayList<>();
+	private List<Review> reviewList = new ArrayList<Review>();
 
 
 	@FieldDescribe("附件")
 	@FieldDescribe("附件")
-	private List<Attachment> attachmentList = new ArrayList<>();
+	private List<Attachment> attachmentList = new ArrayList<Attachment>();
 
 
 	@FieldDescribe("记录")
 	@FieldDescribe("记录")
-	private List<Record> recordList = new ArrayList<>();
+	private List<Record> recordList = new ArrayList<Record>();
 
 
 	@FieldDescribe("工作日志")
 	@FieldDescribe("工作日志")
-	private List<WorkLog> workLogList = new ArrayList<>();
+	private List<WorkLog> workLogList = new ArrayList<WorkLog>();
 
 
 	@FieldDescribe("版式文件版本")
 	@FieldDescribe("版式文件版本")
-	private List<DocumentVersion> documentVersionList = new ArrayList<>();
+	private List<DocumentVersion> documentVersionList = new ArrayList<DocumentVersion>();
 
 
 	public Data getData() {
 	public Data getData() {
 		return data;
 		return data;
@@ -74,70 +74,70 @@ public class SnapProperties extends JsonProperties {
 
 
 	public List<Work> getWorkList() {
 	public List<Work> getWorkList() {
 		if (null == this.workList) {
 		if (null == this.workList) {
-			this.workList = new ArrayList<>();
+			this.workList = new ArrayList<Work>();
 		}
 		}
 		return workList;
 		return workList;
 	}
 	}
 
 
 	public List<Task> getTaskList() {
 	public List<Task> getTaskList() {
 		if (null == this.taskList) {
 		if (null == this.taskList) {
-			this.taskList = new ArrayList<>();
+			this.taskList = new ArrayList<Task>();
 		}
 		}
 		return taskList;
 		return taskList;
 	}
 	}
 
 
 	public List<TaskCompleted> getTaskCompletedList() {
 	public List<TaskCompleted> getTaskCompletedList() {
 		if (null == this.taskCompletedList) {
 		if (null == this.taskCompletedList) {
-			this.taskCompletedList = new ArrayList<>();
+			this.taskCompletedList = new ArrayList<TaskCompleted>();
 		}
 		}
 		return taskCompletedList;
 		return taskCompletedList;
 	}
 	}
 
 
 	public List<Read> getReadList() {
 	public List<Read> getReadList() {
 		if (null == this.readList) {
 		if (null == this.readList) {
-			this.readList = new ArrayList<>();
+			this.readList = new ArrayList<Read>();
 		}
 		}
 		return readList;
 		return readList;
 	}
 	}
 
 
 	public List<ReadCompleted> getReadCompletedList() {
 	public List<ReadCompleted> getReadCompletedList() {
 		if (null == this.readCompletedList) {
 		if (null == this.readCompletedList) {
-			this.readCompletedList = new ArrayList<>();
+			this.readCompletedList = new ArrayList<ReadCompleted>();
 		}
 		}
 		return readCompletedList;
 		return readCompletedList;
 	}
 	}
 
 
 	public List<Review> getReviewList() {
 	public List<Review> getReviewList() {
 		if (null == this.reviewList) {
 		if (null == this.reviewList) {
-			this.reviewList = new ArrayList<>();
+			this.reviewList = new ArrayList<Review>();
 		}
 		}
 		return reviewList;
 		return reviewList;
 	}
 	}
 
 
 	public List<Attachment> getAttachmentList() {
 	public List<Attachment> getAttachmentList() {
 		if (null == this.attachmentList) {
 		if (null == this.attachmentList) {
-			this.attachmentList = new ArrayList<>();
+			this.attachmentList = new ArrayList<Attachment>();
 		}
 		}
 		return attachmentList;
 		return attachmentList;
 	}
 	}
 
 
 	public List<Record> getRecordList() {
 	public List<Record> getRecordList() {
 		if (null == this.recordList) {
 		if (null == this.recordList) {
-			this.recordList = new ArrayList<>();
+			this.recordList = new ArrayList<Record>();
 		}
 		}
 		return recordList;
 		return recordList;
 	}
 	}
 
 
 	public List<WorkLog> getWorkLogList() {
 	public List<WorkLog> getWorkLogList() {
 		if (null == this.workLogList) {
 		if (null == this.workLogList) {
-			this.workLogList = new ArrayList<>();
+			this.workLogList = new ArrayList<WorkLog>();
 		}
 		}
 		return workLogList;
 		return workLogList;
 	}
 	}
 
 
 	public List<DocumentVersion> getDocumentVersionList() {
 	public List<DocumentVersion> getDocumentVersionList() {
 		if (null == this.documentVersionList) {
 		if (null == this.documentVersionList) {
-			this.documentVersionList = new ArrayList<>();
+			this.documentVersionList = new ArrayList<DocumentVersion>();
 		}
 		}
 		return documentVersionList;
 		return documentVersionList;
 	}
 	}
@@ -183,7 +183,7 @@ public class SnapProperties extends JsonProperties {
 	}
 	}
 
 
 	public void setDocumentVersionList(List<DocumentVersion> documentVersionList) {
 	public void setDocumentVersionList(List<DocumentVersion> documentVersionList) {
-		documentVersionList = documentVersionList;
+		this.documentVersionList = documentVersionList;
 	}
 	}
 
 
 	public WorkCompleted getWorkCompleted() {
 	public WorkCompleted getWorkCompleted() {

+ 4 - 4
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/TaskCompletedProperties.java

@@ -14,7 +14,7 @@ public class TaskCompletedProperties extends JsonProperties {
 	private List<String> prevTaskIdentityList;
 	private List<String> prevTaskIdentityList;
 
 
 	@FieldDescribe("后续处理人")
 	@FieldDescribe("后续处理人")
-	private List<String> nextTaskIdentityList = new ArrayList<>();
+	private List<String> nextTaskIdentityList = new ArrayList<String>();
 
 
 	@FieldDescribe("上一人工环节待办对象列表")
 	@FieldDescribe("上一人工环节待办对象列表")
 	private List<PrevTask> prevTaskList;
 	private List<PrevTask> prevTaskList;
@@ -30,7 +30,7 @@ public class TaskCompletedProperties extends JsonProperties {
 
 
 	public List<PrevTask> getPrevTaskList() {
 	public List<PrevTask> getPrevTaskList() {
 		if (null == this.prevTaskList) {
 		if (null == this.prevTaskList) {
-			this.prevTaskList = new ArrayList<>();
+			this.prevTaskList = new ArrayList<PrevTask>();
 		}
 		}
 		return prevTaskList;
 		return prevTaskList;
 	}
 	}
@@ -45,14 +45,14 @@ public class TaskCompletedProperties extends JsonProperties {
 
 
 	public List<String> getPrevTaskIdentityList() {
 	public List<String> getPrevTaskIdentityList() {
 		if (null == this.prevTaskIdentityList) {
 		if (null == this.prevTaskIdentityList) {
-			this.prevTaskIdentityList = new ArrayList<>();
+			this.prevTaskIdentityList = new ArrayList<String>();
 		}
 		}
 		return prevTaskIdentityList;
 		return prevTaskIdentityList;
 	}
 	}
 
 
 	public List<String> getNextTaskIdentityList() {
 	public List<String> getNextTaskIdentityList() {
 		if (null == this.nextTaskIdentityList) {
 		if (null == this.nextTaskIdentityList) {
-			this.nextTaskIdentityList = new ArrayList<>();
+			this.nextTaskIdentityList = new ArrayList<String>();
 		}
 		}
 		return nextTaskIdentityList;
 		return nextTaskIdentityList;
 	}
 	}

+ 2 - 2
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/TaskProperties.java

@@ -41,14 +41,14 @@ public class TaskProperties extends JsonProperties {
 
 
 	public List<String> getPrevTaskIdentityList() {
 	public List<String> getPrevTaskIdentityList() {
 		if (null == prevTaskIdentityList) {
 		if (null == prevTaskIdentityList) {
-			this.prevTaskIdentityList = new ArrayList<>();
+			this.prevTaskIdentityList = new ArrayList<String>();
 		}
 		}
 		return prevTaskIdentityList;
 		return prevTaskIdentityList;
 	}
 	}
 
 
 	public List<PrevTask> getPrevTaskList() {
 	public List<PrevTask> getPrevTaskList() {
 		if (null == prevTaskList) {
 		if (null == prevTaskList) {
-			this.prevTaskList = new ArrayList<>();
+			this.prevTaskList = new ArrayList<PrevTask>();
 		}
 		}
 		return prevTaskList;
 		return prevTaskList;
 	}
 	}

+ 5 - 5
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/WorkCompletedProperties.java

@@ -14,22 +14,22 @@ import com.x.processplatform.core.entity.element.Script;
 public class WorkCompletedProperties extends JsonProperties {
 public class WorkCompletedProperties extends JsonProperties {
 
 
 	@FieldDescribe("合并已办对象")
 	@FieldDescribe("合并已办对象")
-	private List<TaskCompleted> taskCompletedList = new ArrayList<>();
+	private List<TaskCompleted> taskCompletedList = new ArrayList<TaskCompleted>();
 
 
 	@FieldDescribe("合并已阅对象")
 	@FieldDescribe("合并已阅对象")
-	private List<ReadCompleted> readCompletedList = new ArrayList<>();
+	private List<ReadCompleted> readCompletedList = new ArrayList<ReadCompleted>();
 
 
 	@FieldDescribe("合并参阅对象")
 	@FieldDescribe("合并参阅对象")
-	private List<Review> reviewList = new ArrayList<>();
+	private List<Review> reviewList = new ArrayList<Review>();
 
 
 	@FieldDescribe("合并记录对象")
 	@FieldDescribe("合并记录对象")
-	private List<Record> recordList = new ArrayList<>();
+	private List<Record> recordList = new ArrayList<Record>();
 
 
 	@FieldDescribe("合并数据对象")
 	@FieldDescribe("合并数据对象")
 	private Data data;
 	private Data data;
 
 
 	@FieldDescribe("合并工作日志对象")
 	@FieldDescribe("合并工作日志对象")
-	private List<WorkLog> workLogList = new ArrayList<>();
+	private List<WorkLog> workLogList = new ArrayList<WorkLog>();
 
 
 	@FieldDescribe("合并工作Form")
 	@FieldDescribe("合并工作Form")
 	private StoreForm storeForm;
 	private StoreForm storeForm;

+ 2 - 2
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/WorkLogProperties.java

@@ -11,7 +11,7 @@ public class WorkLogProperties extends JsonProperties {
 
 
 	private List<String> splitTokenList;
 	private List<String> splitTokenList;
 
 
-	private List<String> splitValueList = new ArrayList<>();
+	private List<String> splitValueList = new ArrayList<String>();
 
 
 	private String splitToken;
 	private String splitToken;
 
 
@@ -26,7 +26,7 @@ public class WorkLogProperties extends JsonProperties {
 
 
 	public List<String> getSplitValueList() {
 	public List<String> getSplitValueList() {
 		if (null == splitValueList) {
 		if (null == splitValueList) {
-			this.splitValueList = new ArrayList<>();
+			this.splitValueList = new ArrayList<String>();
 		}
 		}
 		return splitValueList;
 		return splitValueList;
 	}
 	}

+ 13 - 7
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/content/WorkProperties.java

@@ -13,23 +13,29 @@ public class WorkProperties extends JsonProperties {
 	private static final long serialVersionUID = -62236689373222398L;
 	private static final long serialVersionUID = -62236689373222398L;
 
 
 	@FieldDescribe("强制待办处理人")
 	@FieldDescribe("强制待办处理人")
-	private List<String> manualForceTaskIdentityList = new ArrayList<>();
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	private List<String> manualForceTaskIdentityList = new ArrayList<String>();
 
 
 	@FieldDescribe("授权对象")
 	@FieldDescribe("授权对象")
-	private Map<String, String> manualEmpowerMap = new LinkedHashMap<>();
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	// properties的泛型在前后都必须申明类型!!!!LinkedHashMap<String, String>()这样的写法是对的.
+	private Map<String, String> manualEmpowerMap = new LinkedHashMap<String, String>();
 
 
 	@FieldDescribe("服务回调值")
 	@FieldDescribe("服务回调值")
-	private Map<String, Object> serviceValue = new LinkedHashMap<>();
+	private Map<String, Object> serviceValue = new LinkedHashMap<String, Object>();
 
 
 	@FieldDescribe("标题")
 	@FieldDescribe("标题")
 	private String title;
 	private String title;
 
 
 	@FieldDescribe("拆分值列表")
 	@FieldDescribe("拆分值列表")
-	private List<String> splitValueList = new ArrayList<>();
+	private List<String> splitValueList = new ArrayList<String>();
 
 
 	public List<String> getManualForceTaskIdentityList() {
 	public List<String> getManualForceTaskIdentityList() {
 		if (this.manualForceTaskIdentityList == null) {
 		if (this.manualForceTaskIdentityList == null) {
-			this.manualForceTaskIdentityList = new ArrayList<>();
+			this.manualForceTaskIdentityList = new ArrayList<String>();
 		}
 		}
 		return this.manualForceTaskIdentityList;
 		return this.manualForceTaskIdentityList;
 	}
 	}
@@ -40,7 +46,7 @@ public class WorkProperties extends JsonProperties {
 
 
 	public Map<String, String> getManualEmpowerMap() {
 	public Map<String, String> getManualEmpowerMap() {
 		if (this.manualEmpowerMap == null) {
 		if (this.manualEmpowerMap == null) {
-			this.manualEmpowerMap = new LinkedHashMap<>();
+			this.manualEmpowerMap = new LinkedHashMap<String, String>();
 		}
 		}
 		return this.manualEmpowerMap;
 		return this.manualEmpowerMap;
 	}
 	}
@@ -51,7 +57,7 @@ public class WorkProperties extends JsonProperties {
 
 
 	public Map<String, Object> getServiceValue() {
 	public Map<String, Object> getServiceValue() {
 		if (this.serviceValue == null) {
 		if (this.serviceValue == null) {
-			this.serviceValue = new LinkedHashMap<>();
+			this.serviceValue = new LinkedHashMap<String, Object>();
 		}
 		}
 		return this.serviceValue;
 		return this.serviceValue;
 	}
 	}

+ 8 - 8
o2server/x_processplatform_core_entity/src/main/java/com/x/processplatform/core/entity/element/FormProperties.java

@@ -11,31 +11,31 @@ import com.x.base.core.project.annotation.FieldDescribe;
 public class FormProperties extends JsonProperties {
 public class FormProperties extends JsonProperties {
 
 
 	@FieldDescribe("关联表单.")
 	@FieldDescribe("关联表单.")
-	private List<String> relatedFormList = new ArrayList<>();
+	private List<String> relatedFormList = new ArrayList<String>();
 
 
 	@FieldDescribe("移动端关联表单.")
 	@FieldDescribe("移动端关联表单.")
-	private List<String> mobileRelatedFormList = new ArrayList<>();
+	private List<String> mobileRelatedFormList = new ArrayList<String>();
 
 
 	@FieldDescribe("关联脚本.")
 	@FieldDescribe("关联脚本.")
-	private Map<String, String> relatedScriptMap = new LinkedHashMap<>();
+	private Map<String, String> relatedScriptMap = new LinkedHashMap<String, String>();
 
 
 	@FieldDescribe("移动端关联脚本.")
 	@FieldDescribe("移动端关联脚本.")
-	private Map<String, String> mobileRelatedScriptMap = new LinkedHashMap<>();
+	private Map<String, String> mobileRelatedScriptMap = new LinkedHashMap<String, String>();
 
 
 	public List<String> getRelatedFormList() {
 	public List<String> getRelatedFormList() {
-		return this.relatedFormList == null ? new ArrayList<>() : this.relatedFormList;
+		return this.relatedFormList == null ? new ArrayList<String>() : this.relatedFormList;
 	}
 	}
 
 
 	public List<String> getMobileRelatedFormList() {
 	public List<String> getMobileRelatedFormList() {
-		return this.mobileRelatedFormList == null ? new ArrayList<>() : this.mobileRelatedFormList;
+		return this.mobileRelatedFormList == null ? new ArrayList<String>() : this.mobileRelatedFormList;
 	}
 	}
 
 
 	public Map<String, String> getRelatedScriptMap() {
 	public Map<String, String> getRelatedScriptMap() {
-		return this.relatedScriptMap == null ? new LinkedHashMap<>() : this.relatedScriptMap;
+		return this.relatedScriptMap == null ? new LinkedHashMap<String, String>() : this.relatedScriptMap;
 	}
 	}
 
 
 	public Map<String, String> getMobileRelatedScriptMap() {
 	public Map<String, String> getMobileRelatedScriptMap() {
-		return this.mobileRelatedScriptMap == null ? new LinkedHashMap<>() : this.mobileRelatedScriptMap;
+		return this.mobileRelatedScriptMap == null ? new LinkedHashMap<String, String>() : this.mobileRelatedScriptMap;
 	}
 	}
 
 
 	public void setRelatedFormList(List<String> relatedFormList) {
 	public void setRelatedFormList(List<String> relatedFormList) {