|
|
@@ -12,6 +12,8 @@ import lombok.ToString; |
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
|
@TableName(value = "wx_pay_order") |
|
|
@TableName(value = "wx_pay_order") |
|
|
@Data |
|
|
@Data |
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
@@ -60,6 +62,9 @@ public class WxPayOrder extends TenantEntity { |
|
|
private String childOrderShare; |
|
|
private String childOrderShare; |
|
|
|
|
|
|
|
|
public WxComposeChildOrderShare getChildOrderShare(Long wxOrderId) { |
|
|
public WxComposeChildOrderShare getChildOrderShare(Long wxOrderId) { |
|
|
|
|
|
if (StringUtils.isBlank(this.childOrderShare)) { |
|
|
|
|
|
return new WxComposeChildOrderShare(this.payAmount, this.shareAmount, this.rateAmount); |
|
|
|
|
|
} |
|
|
Map childs = JSON.parseObject(this.childOrderShare, Map.class); |
|
|
Map childs = JSON.parseObject(this.childOrderShare, Map.class); |
|
|
JSONObject childOrderShare = (JSONObject) childs.get(String.valueOf(wxOrderId)); |
|
|
JSONObject childOrderShare = (JSONObject) childs.get(String.valueOf(wxOrderId)); |
|
|
if (null != childOrderShare) { |
|
|
if (null != childOrderShare) { |
|
|
|