Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 之前写的缺少@Data注解 #1499

Merged
merged 1 commit into from
Apr 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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>", "");
Expand Down Expand Up @@ -515,4 +521,57 @@ public static class SendLocationInfo {

}

@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;
}

}

}
Original file line number Diff line number Diff line change
@@ -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 [email protected]
*/
@Data
public class TemplateSelector implements Serializable {

private static final long serialVersionUID = 4995408101489736881L;
Expand Down