mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 16:36:54 +08:00 
			
		
		
		
	🎨 #2518【企业微信】获取审批记录的审批状态增加已退回状态
This commit is contained in:
		| @@ -1,78 +0,0 @@ | ||||
| package me.chanjar.weixin.cp.bean.oa; | ||||
|  | ||||
| import com.google.gson.annotations.SerializedName; | ||||
| import lombok.Data; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * 审批申请详情 | ||||
|  * | ||||
|  * @author element | ||||
|  */ | ||||
| @Data | ||||
| public class WxCpApprovalDetail implements Serializable { | ||||
|   private static final long serialVersionUID = 1353393306564207170L; | ||||
|  | ||||
|   /** | ||||
|    * 审批编号 | ||||
|    */ | ||||
|   @SerializedName("sp_no") | ||||
|   private String spNo; | ||||
|  | ||||
|   /** | ||||
|    * 审批申请类型名称(审批模板名称) | ||||
|    */ | ||||
|   @SerializedName("sp_name") | ||||
|   private String spName; | ||||
|  | ||||
|   /** | ||||
|    * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付 | ||||
|    */ | ||||
|   @SerializedName("sp_status") | ||||
|   private WxCpSpStatus spStatus; | ||||
|  | ||||
|   /** | ||||
|    * 审批模板id。可在“获取审批申请详情”、“审批状态变化回调通知”中获得,也可在审批模板的模板编辑页面链接中获得。 | ||||
|    */ | ||||
|   @SerializedName("template_id") | ||||
|   private String templateId; | ||||
|  | ||||
|   /** | ||||
|    * 审批申请提交时间,Unix时间戳 | ||||
|    */ | ||||
|   @SerializedName("apply_time") | ||||
|   private Long applyTime; | ||||
|  | ||||
|   /** | ||||
|    * 申请人信息 | ||||
|    */ | ||||
|   @SerializedName("applyer") | ||||
|   private WxCpApprovalApplier applier; | ||||
|  | ||||
|   /** | ||||
|    * 审批流程信息,可能有多个审批节点 | ||||
|    */ | ||||
|   @SerializedName("sp_record") | ||||
|   private WxCpApprovalRecord[] spRecords; | ||||
|  | ||||
|   /** | ||||
|    * 抄送信息,可能有多个抄送节点 | ||||
|    */ | ||||
|   @SerializedName("notifyer") | ||||
|   private WxCpOperator[] notifiers; | ||||
|  | ||||
|   /** | ||||
|    * 审批申请数据 | ||||
|    */ | ||||
|   @SerializedName("apply_data") | ||||
|   private WxCpApprovalApplyData applyData; | ||||
|  | ||||
|   /** | ||||
|    * 审批申请备注信息,可能有多个备注节点 | ||||
|    */ | ||||
|   @SerializedName("comments") | ||||
|   private List<WxCpApprovalComment> comments; | ||||
|  | ||||
| } | ||||
| @@ -4,6 +4,7 @@ import com.google.gson.annotations.SerializedName; | ||||
| import lombok.Data; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * 审批申请详情响应结果 | ||||
| @@ -23,4 +24,70 @@ public class WxCpApprovalDetailResult implements Serializable { | ||||
|   @SerializedName("info") | ||||
|   private WxCpApprovalDetail info; | ||||
|  | ||||
|   @Data | ||||
|   public static class WxCpApprovalDetail implements Serializable { | ||||
|     private static final long serialVersionUID = 1353393306564207170L; | ||||
|  | ||||
|     /** | ||||
|      * 审批编号 | ||||
|      */ | ||||
|     @SerializedName("sp_no") | ||||
|     private String spNo; | ||||
|  | ||||
|     /** | ||||
|      * 审批申请类型名称(审批模板名称) | ||||
|      */ | ||||
|     @SerializedName("sp_name") | ||||
|     private String spName; | ||||
|  | ||||
|     /** | ||||
|      * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付 | ||||
|      */ | ||||
|     @SerializedName("sp_status") | ||||
|     private WxCpSpStatus spStatus; | ||||
|  | ||||
|     /** | ||||
|      * 审批模板id。可在“获取审批申请详情”、“审批状态变化回调通知”中获得,也可在审批模板的模板编辑页面链接中获得。 | ||||
|      */ | ||||
|     @SerializedName("template_id") | ||||
|     private String templateId; | ||||
|  | ||||
|     /** | ||||
|      * 审批申请提交时间,Unix时间戳 | ||||
|      */ | ||||
|     @SerializedName("apply_time") | ||||
|     private Long applyTime; | ||||
|  | ||||
|     /** | ||||
|      * 申请人信息 | ||||
|      */ | ||||
|     @SerializedName("applyer") | ||||
|     private WxCpApprovalApplier applier; | ||||
|  | ||||
|     /** | ||||
|      * 审批流程信息,可能有多个审批节点 | ||||
|      */ | ||||
|     @SerializedName("sp_record") | ||||
|     private WxCpApprovalRecord[] spRecords; | ||||
|  | ||||
|     /** | ||||
|      * 抄送信息,可能有多个抄送节点 | ||||
|      */ | ||||
|     @SerializedName("notifyer") | ||||
|     private WxCpOperator[] notifiers; | ||||
|  | ||||
|     /** | ||||
|      * 审批申请数据 | ||||
|      */ | ||||
|     @SerializedName("apply_data") | ||||
|     private WxCpApprovalApplyData applyData; | ||||
|  | ||||
|     /** | ||||
|      * 审批申请备注信息,可能有多个备注节点 | ||||
|      */ | ||||
|     @SerializedName("comments") | ||||
|     private List<WxCpApprovalComment> comments; | ||||
|  | ||||
|   } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,14 +1,18 @@ | ||||
| package me.chanjar.weixin.cp.bean.oa; | ||||
|  | ||||
| import com.google.gson.annotations.SerializedName; | ||||
| import lombok.AllArgsConstructor; | ||||
| import lombok.Getter; | ||||
|  | ||||
| /** | ||||
|  * 审批记录(节点)分支审批状态 | ||||
|  * | ||||
|  * 1-审批中;2-已同意;3-已驳回;4-已转审 | ||||
|  * <p> | ||||
|  * 1-审批中;2-已同意;3-已驳回;4-已转审;11-已退回 | ||||
|  * | ||||
|  * @author element | ||||
|  */ | ||||
| @AllArgsConstructor | ||||
| @Getter | ||||
| public enum WxCpRecordSpStatus { | ||||
|  | ||||
|   /** | ||||
| @@ -30,12 +34,13 @@ public enum WxCpRecordSpStatus { | ||||
|    * 已转审 | ||||
|    */ | ||||
|   @SerializedName("4") | ||||
|   TURNED(4); | ||||
|   TURNED(4), | ||||
|   /** | ||||
|    * 已退回 | ||||
|    */ | ||||
|   @SerializedName("11") | ||||
|   WITHDRAWN(11); | ||||
|  | ||||
|   private Integer status; | ||||
|  | ||||
|   private WxCpRecordSpStatus(Integer status) { | ||||
|     this.status = status; | ||||
|   } | ||||
|   private final Integer status; | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -9,8 +9,6 @@ import java.io.Serializable; | ||||
|  */ | ||||
| @Data | ||||
| public class ClearOutInvoiceRequest implements Serializable { | ||||
|  | ||||
|  | ||||
|   private ClearOutInvoiceInfo invoiceinfo; | ||||
|  | ||||
|   @Data | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang