From 4d73f584fb61ad15b1165f19f612bc863fe3f49c Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Wed, 7 Nov 2018 18:27:38 +0800 Subject: [PATCH] =?UTF-8?q?[boolean=E8=BD=ACInteger][=E5=88=86=E8=B4=A6]:m?= =?UTF-8?q?ybatis=E8=8E=B7=E5=8F=96boolean=20share=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/iformall/domain/po/WxPayAccount.java | 6 +++--- .../com/iformall/service/impl/WxPayOrderServiceImpl.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxPayAccount.java b/mallinkService/src/main/java/com/iformall/domain/po/WxPayAccount.java index 6d85ab3e3..f61fef668 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxPayAccount.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxPayAccount.java @@ -62,7 +62,7 @@ public class WxPayAccount implements Serializable { private Integer type; /**是否开启分账**/ @io.swagger.annotations.ApiModelProperty(value="0:未开启分账1:开启分账",name="type") - private boolean share; + private Integer share; /**手续费**/ @io.swagger.annotations.ApiModelProperty(value="手续费",name="rate") private Integer rate; @@ -114,10 +114,10 @@ public class WxPayAccount implements Serializable { public void setType(Integer type) { this.type = type; } - public boolean isShare() { + public Integer getShare() { return share; } - public void setShare(boolean share) { + public void setShare(Integer share) { this.share = share; } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java index 928a7a502..0cf512088 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java @@ -114,7 +114,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService { return new ResultData(ErrorCode.PAY_ORDER_IS_NOT_PAYMENT); } WxPayAccount payAccount = wxPayAccountMapper.selectByPrimaryKey(appInfo.getPayId()); - if (payAccount.isShare()) { + if (payAccount.getShare().intValue() > 0) { isShare = EnumPayShare.YES; } // 1.5 check 分账 receive