|
2 | 2 |
|
3 | 3 | import java.io.Serializable; |
4 | 4 |
|
| 5 | +import org.apache.commons.lang3.builder.ToStringBuilder; |
| 6 | +import org.apache.commons.lang3.builder.ToStringStyle; |
| 7 | + |
5 | 8 | import com.thoughtworks.xstream.annotations.XStreamAlias; |
6 | 9 |
|
7 | 10 | /** |
|
13 | 16 | @XStreamAlias("xml") |
14 | 17 | public class WxRedpackResult implements Serializable { |
15 | 18 |
|
16 | | - /** |
17 | | - * |
18 | | - */ |
19 | 19 | private static final long serialVersionUID = -4837415036337132073L; |
20 | 20 |
|
21 | 21 | @XStreamAlias("return_code") |
@@ -100,19 +100,6 @@ public String getSendListid() { |
100 | 100 |
|
101 | 101 | @Override |
102 | 102 | public String toString() { |
103 | | - return "WxRedpackResult{" + |
104 | | - "returnCode=" + this.returnCode + |
105 | | - ", returnMsg=" + this.returnMsg + |
106 | | - ", sign=" + this.sign + |
107 | | - ", errCode=" + this.errCode + |
108 | | - ", errCodeDes=" + this.errCodeDes + |
109 | | - ", mchBillno=" + this.mchBillno + |
110 | | - ", mchId=" + this.mchId + |
111 | | - ", wxappid=" + this.wxappid + |
112 | | - ", reOpenid=" + this.reOpenid + |
113 | | - ", totalAmount=" + this.totalAmount + |
114 | | - ", sendTime=" + this.sendTime + |
115 | | - ", sendListid=" + this.sendListid + |
116 | | - '}'; |
| 103 | + return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE); |
117 | 104 | } |
118 | 105 | } |
0 commit comments