Skip to content

Commit 0fd7906

Browse files
committed
格式化代码,去掉无用的一些东西
1 parent fcc5eff commit 0fd7906

1 file changed

Lines changed: 43 additions & 78 deletions

File tree

‎weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/result/WxMpPayResult.java‎

Lines changed: 43 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import java.io.Serializable;
44

5+
import org.apache.commons.lang3.builder.ToStringBuilder;
6+
import org.apache.commons.lang3.builder.ToStringStyle;
7+
58
/**
69
* <pre>
710
* 查询订单支付状态返回的结果
@@ -13,9 +16,11 @@
1316
* @author ukid
1417
*/
1518
public class WxMpPayResult implements Serializable {
16-
/**
17-
*
18-
*/
19+
@Override
20+
public String toString() {
21+
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
22+
}
23+
1924
private static final long serialVersionUID = -570934170727777190L;
2025

2126
private String return_code;
@@ -51,92 +56,93 @@ public class WxMpPayResult implements Serializable {
5156
*
5257
*/
5358
private String cash_fee_type;
59+
5460
public String getReturn_code() {
55-
return return_code;
61+
return this.return_code;
5662
}
5763

5864
public String getReturn_msg() {
59-
return return_msg;
65+
return this.return_msg;
6066
}
6167

6268
public String getAppid() {
63-
return appid;
69+
return this.appid;
6470
}
6571

6672
public String getMch_id() {
67-
return mch_id;
73+
return this.mch_id;
6874
}
6975

7076
public String getNonce_str() {
71-
return nonce_str;
77+
return this.nonce_str;
7278
}
7379

7480
public String getSign() {
75-
return sign;
81+
return this.sign;
7682
}
7783

7884
public String getResult_code() {
79-
return result_code;
85+
return this.result_code;
8086
}
8187

8288
public String getErr_code() {
83-
return err_code;
89+
return this.err_code;
8490
}
8591

8692
public String getErr_code_des() {
87-
return err_code_des;
93+
return this.err_code_des;
8894
}
8995

9096
public String getTrade_state() {
91-
return trade_state;
97+
return this.trade_state;
9298
}
9399

94100
public String getDevice_info() {
95-
return device_info;
101+
return this.device_info;
96102
}
97103

98104
public String getOpenid() {
99-
return openid;
105+
return this.openid;
100106
}
101107

102108
public String getIs_subscribe() {
103-
return is_subscribe;
109+
return this.is_subscribe;
104110
}
105111

106112
public String getTrade_type() {
107-
return trade_type;
113+
return this.trade_type;
108114
}
109115

110116
public String getBank_type() {
111-
return bank_type;
117+
return this.bank_type;
112118
}
113119

114120
public String getTotal_fee() {
115-
return total_fee;
121+
return this.total_fee;
116122
}
117123

118124
public String getCoupon_fee() {
119-
return coupon_fee;
125+
return this.coupon_fee;
120126
}
121127

122128
public String getFee_type() {
123-
return fee_type;
129+
return this.fee_type;
124130
}
125131

126132
public String getTransaction_id() {
127-
return transaction_id;
133+
return this.transaction_id;
128134
}
129135

130136
public String getOut_trade_no() {
131-
return out_trade_no;
137+
return this.out_trade_no;
132138
}
133139

134140
public String getAttach() {
135-
return attach;
141+
return this.attach;
136142
}
137143

138144
public String getTime_end() {
139-
return time_end;
145+
return this.time_end;
140146
}
141147

142148
public void setReturn_code(String return_code) {
@@ -228,67 +234,26 @@ public void setTime_end(String time_end) {
228234
}
229235

230236
public String getTrade_state_desc() {
231-
return trade_state_desc;
237+
return this.trade_state_desc;
232238
}
233239

234240
public void setTrade_state_desc(String trade_state_desc) {
235241
this.trade_state_desc = trade_state_desc;
236242
}
237243

238-
@Override
239-
public String toString() {
240-
return "WxMpPayResult{" +
241-
"return_code=" + return_code +
242-
", return_msg='" + return_msg + '\'' +
243-
", appid='" + appid + '\'' +
244-
", mch_id='" + mch_id + '\'' +
245-
", nonce_str='" + nonce_str + '\'' +
246-
", sign='" + sign + '\'' +
247-
", result_code='" + result_code + '\'' +
248-
", err_code='" + err_code + '\'' +
249-
", err_code_des='" + err_code_des + '\'' +
250-
", trade_state=" + trade_state +
251-
", trade_state_desc=" + trade_state_desc +
252-
", device_info='" + device_info + '\'' +
253-
", openid='" + openid + '\'' +
254-
", is_subscribe='" + is_subscribe + '\'' +
255-
", trade_type='" + trade_type + '\'' +
256-
", bank_type='" + bank_type + '\'' +
257-
", total_fee='" + total_fee + '\'' +
258-
", coupon_fee='" + coupon_fee + '\'' +
259-
", fee_type='" + fee_type + '\'' +
260-
", transaction_id='" + transaction_id + '\'' +
261-
", out_trade_no='" + out_trade_no + '\'' +
262-
", attach='" + attach + '\'' +
263-
", time_end='" + time_end + '\'' +
264-
'}';
244+
public String getCash_fee() {
245+
return this.cash_fee;
265246
}
266247

267-
/**
268-
* @return the cash_fee
269-
*/
270-
public String getCash_fee() {
271-
return cash_fee;
272-
}
273-
274-
/**
275-
* @param cash_fee the cash_fee to set
276-
*/
277-
public void setCash_fee(String cash_fee) {
278-
this.cash_fee = cash_fee;
279-
}
248+
public void setCash_fee(String cash_fee) {
249+
this.cash_fee = cash_fee;
250+
}
280251

281-
/**
282-
* @return the cash_fee_type
283-
*/
284-
public String getCash_fee_type() {
285-
return cash_fee_type;
286-
}
252+
public String getCash_fee_type() {
253+
return this.cash_fee_type;
254+
}
287255

288-
/**
289-
* @param cash_fee_type the cash_fee_type to set
290-
*/
291-
public void setCash_fee_type(String cash_fee_type) {
292-
this.cash_fee_type = cash_fee_type;
293-
}
256+
public void setCash_fee_type(String cash_fee_type) {
257+
this.cash_fee_type = cash_fee_type;
258+
}
294259
}

0 commit comments

Comments
 (0)