分销:重命名提现类型字段

plp
owen 3 years ago
parent 9856e17974
commit 967e578d54

@ -1,25 +1,25 @@
--
create table trade_config
CREATE TABLE trade_config
(
id bigint auto_increment comment '' primary key,
brokerage_enabled bit default 1 not null comment '',
brokerage_enabled_condition tinyint default 1 not null comment '1- 2-',
brokerage_bind_mode tinyint default 1 not null comment ': 1-广2-, 3-',
brokerage_post_urls varchar(2000) default '' null comment '',
brokerage_first_percent int default 0 not null comment '',
brokerage_second_percent int default 0 not null comment '',
brokerage_withdraw_min_price int default 0 not null comment '',
brokerage_withdraw_fee_percent int default 0 not null comment '',
brokerage_bank_names varchar(200) default '' not null comment '=brokerage_bank_name',
brokerage_frozen_days int default 7 not null comment '()',
brokerage_withdraw_type varchar(32) default '1,2,3,4' not null comment '1-2-3-4-',
creator varchar(64) default '' null comment '',
create_time datetime default CURRENT_TIMESTAMP not null comment '',
updater varchar(64) default '' null comment '',
update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '',
deleted bit default b'0' not null comment '',
tenant_id bigint default 0 not null comment ''
) comment '';
id BIGINT AUTO_INCREMENT COMMENT '' PRIMARY KEY,
brokerage_enabled BIT DEFAULT 1 NOT NULL COMMENT '',
brokerage_enabled_condition TINYINT DEFAULT 1 NOT NULL COMMENT '1- 2-',
brokerage_bind_mode TINYINT DEFAULT 1 NOT NULL COMMENT ': 1-广2-, 3-',
brokerage_post_urls VARCHAR(2000) DEFAULT '' NULL COMMENT '',
brokerage_first_percent INT DEFAULT 0 NOT NULL COMMENT '',
brokerage_second_percent INT DEFAULT 0 NOT NULL COMMENT '',
brokerage_withdraw_min_price INT DEFAULT 0 NOT NULL COMMENT '',
brokerage_withdraw_fee_percent INT DEFAULT 0 NOT NULL COMMENT '',
brokerage_bank_names VARCHAR(200) DEFAULT '' NOT NULL COMMENT '=brokerage_bank_name',
brokerage_frozen_days INT DEFAULT 7 NOT NULL COMMENT '()',
brokerage_withdraw_types VARCHAR(32) DEFAULT '1,2,3,4' NOT NULL COMMENT '1-2-3-4-',
creator VARCHAR(64) DEFAULT '' NULL COMMENT '',
create_time DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT '',
updater VARCHAR(64) DEFAULT '' NULL COMMENT '',
update_time DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '',
deleted BIT DEFAULT b'0' NOT NULL COMMENT '',
tenant_id BIGINT DEFAULT 0 NOT NULL COMMENT ''
) COMMENT '';
# alter table trade_config
# add brokerage_withdraw_fee_percent int default 0 not null comment '' after brokerage_withdraw_min_price;

@ -82,6 +82,6 @@ public class TradeConfigBaseVO {
@Schema(description = "提现方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "[0, 1]")
@NotNull(message = "提现方式不能为空")
@InEnum(value = BrokerageWithdrawTypeEnum.class, message = "提现方式必须是 {value}")
private List<Integer> brokerageWithdrawType;
private List<Integer> brokerageWithdrawTypes;
}

@ -18,8 +18,7 @@ public class AppTradeConfigRespVO {
@Schema(description = "佣金提现最小金额,单位:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
private Integer brokerageWithdrawMinPrice;
// TODO @疯狂:如果是 list要不加个 s复数
@Schema(description = "提现方式", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1, 2]")
private List<Integer> brokerageWithdrawType;
private List<Integer> brokerageWithdrawTypes;
}

@ -100,6 +100,6 @@ public class TradeConfigDO extends BaseDO {
* {@link BrokerageWithdrawTypeEnum }
*/
@TableField(typeHandler = IntegerListTypeHandler.class)
private List<Integer> brokerageWithdrawType;
private List<Integer> brokerageWithdrawTypes;
}

Loading…
Cancel
Save