mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-04 03:30:36 +00:00
fix demo参数校验调整, 支付配置中包装类属性防止空指针处理
This commit is contained in:
@@ -19,6 +19,7 @@ import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 支付宝支付配置
|
||||
@@ -138,6 +139,14 @@ public class AliPayConfig extends MpBaseEntity implements EntityBaseFunction<Ali
|
||||
@DbColumn(comment = "备注")
|
||||
private String remark;
|
||||
|
||||
public Boolean getAllocation() {
|
||||
return Objects.equals(allocation,true);
|
||||
}
|
||||
|
||||
public Boolean getEnable() {
|
||||
return Objects.equals(enable,true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AliPayConfigDto toDto() {
|
||||
return AlipayConvert.CONVERT.convert(this);
|
||||
|
@@ -20,6 +20,7 @@ import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 微信支付配置
|
||||
@@ -117,6 +118,15 @@ public class WeChatPayConfig extends MpBaseEntity implements EntityBaseFunction<
|
||||
@DbColumn(comment = "备注")
|
||||
private String remark;
|
||||
|
||||
public Boolean getAllocation() {
|
||||
return Objects.equals(allocation,true);
|
||||
}
|
||||
|
||||
public Boolean getEnable() {
|
||||
return Objects.equals(enable,true);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public WeChatPayConfigDto toDto() {
|
||||
return WeChatConvert.CONVERT.convert(this);
|
||||
|
Reference in New Issue
Block a user