
com.nbsaas.boot.pay.data.entity.PayConfig Maven / Gradle / Ivy
The newest version!
package com.nbsaas.boot.pay.data.entity;
import com.nbsaas.boot.code.annotation.*;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import com.nbsaas.boot.pay.api.domain.enums.PayType;
import com.nbsaas.boot.rest.filter.Operator;
import lombok.Data;
import org.hibernate.annotations.Comment;
import javax.persistence.*;
import java.math.BigDecimal;
@org.hibernate.annotations.Table(appliesTo = "bs_tenant_pay_online_config",comment = "支付配置")
@CreateByUser
@ComposeView
@Data
@FormAnnotation(model = "支付配置", title = "支付配置管理",menu = "1,5,36")
@Entity
@Table(name = "bs_tenant_pay_online_config")
public class PayConfig extends AbstractEntity {
@Comment("支付标识")
@SearchItem(label = "支付标识", name = "key", key = "key")
@FormField(title = "支付标识", grid = true, required = true)
@Column(length = 30, name = "data_key")
private String key;
@Comment("支付名称")
@SearchItem(label = "支付名称",name = "name")
@FormField(title = "支付名称", grid = true, required = true, width = "120")
@Column(length = 10)
private String name;
@FieldConvert
@ManyToOne(fetch = FetchType.LAZY)
private PayUser creator;
@Comment("支付模式")
@FormField(title = "支付模式",grid = true,type = InputType.dictionary)
@SearchItem(label = "支付模式",name = "payType",classType = PayType.class,operator = Operator.eq,show = false)
private PayType payType;
@FieldName
@FieldConvert
@ManyToOne(fetch = FetchType.LAZY)
private PayProvider payProvider;
@Comment("服务商Id")
@FormField(title = "服务商Id",width = "150",grid = true, required = true)
@Column(length = 50)
private String platformId;
@Comment("服务商户号")
@FormField(title = "服务商户号", grid = true, required = true)
@Column(length = 50)
private String platformMchId;
@Comment("appId")
@FormField(title = "appId",width = "150",grid = true, required = true)
@Column(length = 50)
private String appId;
@Comment("商户号")
@FormField(title = "商户号", grid = true, required = true)
@Column(length = 50)
private String mchId;
@Comment("商户Key")
@FormField(title = "商户Key",width = "250",grid = true, required = true)
@Column(length = 50)
private String mchKey;
@Comment("证书路径")
@FormField(title = "证书路径", required = true)
@Column()
private String keyPath;
@Comment("通知Url")
@FormField(title = "通知Url", required = true)
@Column()
private String notifyUrl;
@Comment("费率")
@FormField(title = "费率", grid = true,width = "20000")
private BigDecimal rate;
@Comment("备注")
@FormField(title = "备注",type = InputType.textarea)
private String note;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy