mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 10:38:42 +08:00 
			
		
		
		
	:fix: #1499 增加企业微信oa审批信息的消息内容
This commit is contained in:
		| @ -396,6 +396,12 @@ public class WxCpXmlMessage implements Serializable { | ||||
|   @XStreamAlias("SendLocationInfo") | ||||
|   private SendLocationInfo sendLocationInfo = new SendLocationInfo(); | ||||
|  | ||||
|  | ||||
|   @XStreamAlias("ApprovalInfo") | ||||
|   private ApprovalInfo approvalInfo=new ApprovalInfo(); | ||||
|  | ||||
|  | ||||
|  | ||||
|   protected static WxCpXmlMessage fromXml(String xml) { | ||||
|     //修改微信变态的消息内容格式,方便解析 | ||||
|     xml = xml.replace("</PicList><PicList>", ""); | ||||
| @ -515,4 +521,57 @@ public class WxCpXmlMessage implements Serializable { | ||||
|  | ||||
|   } | ||||
|  | ||||
|   @XStreamAlias("ApprovalInfo") | ||||
|   @Data | ||||
|   public static class ApprovalInfo { | ||||
|  | ||||
|     /** | ||||
|      * 审批编号 | ||||
|      */ | ||||
|     @XStreamAlias("SpNo") | ||||
|     private String spNo; | ||||
|     /** | ||||
|      * 审批申请类型名称(审批模板名称) | ||||
|      */ | ||||
|     @XStreamAlias("SpName") | ||||
|     private String spName; | ||||
|     /** | ||||
|      * 申请单状态:1-审批中;2-已通过;3-已驳回;4-已撤销;6-通过后撤销;7-已删除;10-已支付 | ||||
|      */ | ||||
|     @XStreamAlias("SpStatus") | ||||
|     private Integer spStatus; | ||||
|  | ||||
|     /** | ||||
|      * 审批模板id。 | ||||
|      */ | ||||
|     @XStreamAlias("templateId") | ||||
|     private String templateId; | ||||
|     /** | ||||
|      * 审批申请提交时间,Unix时间戳 | ||||
|      */ | ||||
|     @XStreamAlias("ApplyTime") | ||||
|     private Integer applyTime; | ||||
|  | ||||
|     /** | ||||
|      * 申请人信息 | ||||
|      */ | ||||
|     @XStreamAlias("Applyer") | ||||
|     private Applyer applyer; | ||||
|     /** | ||||
|      * 审批申请单变化类型 | ||||
|      */ | ||||
|     @XStreamAlias("StatuChangeEvent") | ||||
|     private Integer statuChangeEvent; | ||||
|  | ||||
|     @XStreamAlias("Applyer") | ||||
|     @Data | ||||
|     public static class Applyer { | ||||
|       @XStreamAlias("Applyer") | ||||
|       private String UserId; | ||||
|       @XStreamAlias("Party") | ||||
|       private String party; | ||||
|     } | ||||
|  | ||||
|   } | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -1,13 +1,15 @@ | ||||
| package me.chanjar.weixin.cp.bean.oa.templatedata.control; | ||||
|  | ||||
| import lombok.Data; | ||||
| import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateOptions; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * @author | ||||
|  * @author gyv12345@163.com | ||||
|  */ | ||||
| @Data | ||||
| public class TemplateSelector implements Serializable { | ||||
|  | ||||
|   private static final long serialVersionUID = 4995408101489736881L; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gyv12345
					Gyv12345