|
@@ -4,6 +4,7 @@ package com.usoftchina.qywx.sdk.dto;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@@ -29,6 +30,7 @@ public class GetApprovalDetailResp extends BaseResp {
|
|
|
private Integer sp_status;
|
|
|
private String template_id;
|
|
|
private Long apply_time;
|
|
|
+ private Applyer applyer;
|
|
|
private Object sp_record;
|
|
|
private ApplyData apply_data;
|
|
|
|
|
@@ -87,6 +89,37 @@ public class GetApprovalDetailResp extends BaseResp {
|
|
|
public void setApply_data(ApplyData apply_data) {
|
|
|
this.apply_data = apply_data;
|
|
|
}
|
|
|
+
|
|
|
+ public Applyer getApplyer() {
|
|
|
+ return applyer;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApplyer(Applyer applyer) {
|
|
|
+ this.applyer = applyer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class Applyer {
|
|
|
+
|
|
|
+ private String userid;
|
|
|
+
|
|
|
+ private String partyid;
|
|
|
+
|
|
|
+ public String getUserid() {
|
|
|
+ return userid;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserid(String userid) {
|
|
|
+ this.userid = userid;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPartyid() {
|
|
|
+ return partyid;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPartyid(String partyid) {
|
|
|
+ this.partyid = partyid;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static class ApplyData {
|
|
@@ -149,15 +182,23 @@ public class GetApprovalDetailResp extends BaseResp {
|
|
|
'}';
|
|
|
}
|
|
|
public String getCNTitle(){
|
|
|
- return JSONArray.parseArray(title).stream().filter(o -> {
|
|
|
- return JSONObject.parseObject( String.valueOf(o)).getString("lang").equals("zh_CN");
|
|
|
- }).findFirst().get().toString();
|
|
|
+ return JSONObject.parseObject(JSONArray.parseArray(title).stream().filter(o ->
|
|
|
+ JSONObject.parseObject( String.valueOf(o)).getString("lang").equals("zh_CN")
|
|
|
+ ).findFirst().get().toString()).getString("text");
|
|
|
}
|
|
|
|
|
|
public String getFormatValue(){
|
|
|
switch (control){
|
|
|
+ case "Text" :
|
|
|
+ return JSONObject.parseObject(value).getString("text");
|
|
|
case "Textarea" :
|
|
|
return JSONObject.parseObject(value).getString("text");
|
|
|
+ case "Number" :
|
|
|
+ return JSONObject.parseObject(value).getString("new_number");
|
|
|
+ case "Date" :
|
|
|
+ return String.valueOf(JSONObject.parseObject(value).getJSONObject("date").getLong("s_timestamp"));
|
|
|
+ case "Location" :
|
|
|
+ return JSONObject.parseObject(value).getString("location");
|
|
|
default :
|
|
|
return value;
|
|
|
}
|