mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-16 05:16:24 +08:00
xml代码优化
This commit is contained in:
@@ -119,7 +119,7 @@ public class WxPayRefundResult extends BaseWxPayResult implements Serializable {
|
||||
/**
|
||||
* 组装生成退款代金券信息.
|
||||
*/
|
||||
public void composeRefundCoupons() {
|
||||
private void composeRefundCoupons() {
|
||||
List<WxPayRefundCouponInfo> coupons = Lists.newArrayList();
|
||||
Integer refundCount = this.getCouponRefundCount();
|
||||
if (refundCount == null) {
|
||||
@@ -139,4 +139,10 @@ public class WxPayRefundResult extends BaseWxPayResult implements Serializable {
|
||||
|
||||
this.setRefundCoupons(coupons);
|
||||
}
|
||||
|
||||
public static WxPayRefundResult fromXML(String xml) {
|
||||
WxPayRefundResult result = BaseWxPayResult.fromXML(xml, WxPayRefundResult.class);
|
||||
result.composeRefundCoupons();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user