|
@@ -0,0 +1,168 @@
|
|
|
+package com.usoftchina.qywx.sdk.dto;
|
|
|
+
|
|
|
+
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+ * @author: zhouy
|
|
|
+ * @date: 2021/10/12 11:23
|
|
|
+ * @desc: 获取审批业务单号list
|
|
|
+ */
|
|
|
+public class GetApprovalDetailResp extends BaseResp {
|
|
|
+
|
|
|
+ private ApprovalDetail info;
|
|
|
+
|
|
|
+ public ApprovalDetail getInfo() {
|
|
|
+ return info;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInfo(ApprovalDetail info) {
|
|
|
+ this.info = info;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class ApprovalDetail {
|
|
|
+ private String sp_no;
|
|
|
+ private String sp_name;
|
|
|
+ private Integer sp_status;
|
|
|
+ private String template_id;
|
|
|
+ private Long apply_time;
|
|
|
+ private Object sp_record;
|
|
|
+ private ApplyData apply_data;
|
|
|
+
|
|
|
+ public String getSp_no() {
|
|
|
+ return sp_no;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSp_no(String sp_no) {
|
|
|
+ this.sp_no = sp_no;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSp_name() {
|
|
|
+ return sp_name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSp_name(String sp_name) {
|
|
|
+ this.sp_name = sp_name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSp_status() {
|
|
|
+ return sp_status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSp_status(Integer sp_status) {
|
|
|
+ this.sp_status = sp_status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTemplate_id() {
|
|
|
+ return template_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTemplate_id(String template_id) {
|
|
|
+ this.template_id = template_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getApply_time() {
|
|
|
+ return apply_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApply_time(Long apply_time) {
|
|
|
+ this.apply_time = apply_time;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Object getSp_record() {
|
|
|
+ return sp_record;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSp_record(Object sp_record) {
|
|
|
+ this.sp_record = sp_record;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ApplyData getApply_data() {
|
|
|
+ return apply_data;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApply_data(ApplyData apply_data) {
|
|
|
+ this.apply_data = apply_data;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class ApplyData {
|
|
|
+ private List<ApplyDataContent> contents;
|
|
|
+
|
|
|
+ public List<ApplyDataContent> getContents() {
|
|
|
+ return contents;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setContents(List<ApplyDataContent> contents) {
|
|
|
+ this.contents = contents;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static class ApplyDataContent {
|
|
|
+ private String control;
|
|
|
+ private String id;
|
|
|
+ private String title;
|
|
|
+ private String value;
|
|
|
+
|
|
|
+ public String getControl() {
|
|
|
+ return control;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setControl(String control) {
|
|
|
+ this.control = control;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTitle() {
|
|
|
+ return title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTitle(String title) {
|
|
|
+ this.title = title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getValue() {
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setValue(String value) {
|
|
|
+ this.value = value;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "ApplyDataContent{" +
|
|
|
+ "control='" + control + '\'' +
|
|
|
+ ", id='" + id + '\'' +
|
|
|
+ ", title=" + title +
|
|
|
+ ", value=" + value +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
+ public String getCNTitle(){
|
|
|
+ return JSONArray.parseArray(title).stream().filter(o -> {
|
|
|
+ return JSONObject.parseObject( String.valueOf(o)).getString("lang").equals("zh_CN");
|
|
|
+ }).findFirst().get().toString();
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFormatValue(){
|
|
|
+ switch (control){
|
|
|
+ case "Textarea" :
|
|
|
+ return JSONObject.parseObject(value).getString("text");
|
|
|
+ default :
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|