Browse Source

[boolean转Integer][分账]:mybatis获取boolean share字段异常修复

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
cadd6d4d68
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      mallinkService/src/main/java/com/iformall/domain/po/WxPayAccount.java
  2. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java

+ 3
- 3
mallinkService/src/main/java/com/iformall/domain/po/WxPayAccount.java View File

@@ -62,7 +62,7 @@ public class WxPayAccount implements Serializable {
private Integer type; private Integer type;
/**是否开启分账**/ /**是否开启分账**/
@io.swagger.annotations.ApiModelProperty(value="0:未开启分账1:开启分账",name="type") @io.swagger.annotations.ApiModelProperty(value="0:未开启分账1:开启分账",name="type")
private boolean share;
private Integer share;
/**手续费**/ /**手续费**/
@io.swagger.annotations.ApiModelProperty(value="手续费",name="rate") @io.swagger.annotations.ApiModelProperty(value="手续费",name="rate")
private Integer rate; private Integer rate;
@@ -114,10 +114,10 @@ public class WxPayAccount implements Serializable {
public void setType(Integer type) { public void setType(Integer type) {
this.type = type; this.type = type;
} }
public boolean isShare() {
public Integer getShare() {
return share; return share;
} }
public void setShare(boolean share) {
public void setShare(Integer share) {
this.share = share; this.share = share;
} }




+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java View File

@@ -114,7 +114,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService {
return new ResultData(ErrorCode.PAY_ORDER_IS_NOT_PAYMENT); return new ResultData(ErrorCode.PAY_ORDER_IS_NOT_PAYMENT);
} }
WxPayAccount payAccount = wxPayAccountMapper.selectByPrimaryKey(appInfo.getPayId()); WxPayAccount payAccount = wxPayAccountMapper.selectByPrimaryKey(appInfo.getPayId());
if (payAccount.isShare()) {
if (payAccount.getShare().intValue() > 0) {
isShare = EnumPayShare.YES; isShare = EnumPayShare.YES;
} }
// 1.5 check 分账 receive // 1.5 check 分账 receive


Loading…
Cancel
Save