Bläddra i källkod

fix: pay_service_provider_profile 补充 tenant_id/status 列,适配多租户拦截器

alphah 18 timmar sedan
förälder
incheckning
1918070b9e

+ 2 - 0
java/sql/009_service_provider_profile.sql

@@ -1,6 +1,7 @@
 -- 服务商多业务凭证配置表(支持公钥模式 + 证书模式)
 CREATE TABLE IF NOT EXISTS pay_service_provider_profile (
     id                        BIGSERIAL PRIMARY KEY,
+    tenant_id                 BIGINT,
     service_provider_id       BIGINT NOT NULL,
     biz_type                  VARCHAR(32) NOT NULL,
     app_id                    VARCHAR(64),
@@ -17,5 +18,6 @@ CREATE TABLE IF NOT EXISTS pay_service_provider_profile (
     description               VARCHAR(512),
     created_time              TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     updated_time              TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
+    status                    VARCHAR(1)   DEFAULT '0',
     UNIQUE(service_provider_id, biz_type)
 );

+ 2 - 2
java/src/main/java/com/payment/platform/module/payment/serviceprovider/entity/ServiceProviderProfileEntity.java

@@ -1,7 +1,7 @@
 package com.payment.platform.module.payment.serviceprovider.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
-import com.payment.platform.common.base.PaymentBaseEntity;
+import com.payment.platform.common.base.PaymentTenantBaseEntity;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 
@@ -15,7 +15,7 @@ import lombok.EqualsAndHashCode;
 @Data
 @EqualsAndHashCode(callSuper = true)
 @TableName("pay_service_provider_profile")
-public class ServiceProviderProfileEntity extends PaymentBaseEntity {
+public class ServiceProviderProfileEntity extends PaymentTenantBaseEntity {
 
     private Long serviceProviderId;
     private String bizType;