mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
🎨 #2518【企业微信】获取审批记录的审批状态增加已退回状态
This commit is contained in:
parent
487cc7f689
commit
04914f5b01
@ -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 lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审批申请详情响应结果
|
* 审批申请详情响应结果
|
||||||
@ -23,4 +24,70 @@ public class WxCpApprovalDetailResult implements Serializable {
|
|||||||
@SerializedName("info")
|
@SerializedName("info")
|
||||||
private WxCpApprovalDetail 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;
|
package me.chanjar.weixin.cp.bean.oa;
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审批记录(节点)分支审批状态
|
* 审批记录(节点)分支审批状态
|
||||||
*
|
* <p>
|
||||||
* 1-审批中;2-已同意;3-已驳回;4-已转审
|
* 1-审批中;2-已同意;3-已驳回;4-已转审;11-已退回
|
||||||
*
|
*
|
||||||
* @author element
|
* @author element
|
||||||
*/
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Getter
|
||||||
public enum WxCpRecordSpStatus {
|
public enum WxCpRecordSpStatus {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -30,12 +34,13 @@ public enum WxCpRecordSpStatus {
|
|||||||
* 已转审
|
* 已转审
|
||||||
*/
|
*/
|
||||||
@SerializedName("4")
|
@SerializedName("4")
|
||||||
TURNED(4);
|
TURNED(4),
|
||||||
|
/**
|
||||||
|
* 已退回
|
||||||
|
*/
|
||||||
|
@SerializedName("11")
|
||||||
|
WITHDRAWN(11);
|
||||||
|
|
||||||
private Integer status;
|
private final Integer status;
|
||||||
|
|
||||||
private WxCpRecordSpStatus(Integer status) {
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,6 @@ import java.io.Serializable;
|
|||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ClearOutInvoiceRequest implements Serializable {
|
public class ClearOutInvoiceRequest implements Serializable {
|
||||||
|
|
||||||
|
|
||||||
private ClearOutInvoiceInfo invoiceinfo;
|
private ClearOutInvoiceInfo invoiceinfo;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
Loading…
Reference in New Issue
Block a user