Commit ab17c77c4b202845d73e2000aa8f093e544d948b

Authored by qinkelan@diligrp.com
1 parent 53c6f62d

修改轮播图必填修改成非必填

etrade-admin/src/main/java/com/diligrp/etrade/admin/domain/req/BannerCo.java
... ... @@ -34,7 +34,6 @@ public class BannerCo implements Serializable {
34 34 /**
35 35 * 图片链接
36 36 */
37   - @NotBlank(message = "图片链接不能为空")
38 37 private String picUrl;
39 38  
40 39 /**
... ...
scripts/etrade-admin/etrade_admin.sql
... ... @@ -12,7 +12,7 @@ CREATE TABLE `banner` (
12 12 `sort` int NOT NULL COMMENT '排序',
13 13 `banner_type_id` bigint NOT NULL COMMENT '轮播图所属类型ID',
14 14 `title` varchar(25) NOT NULL COMMENT '标题',
15   - `pic_url` varchar(255) NOT NULL COMMENT '图片链接',
  15 + `pic_url` varchar(255) NULL DEFAULT NULL COMMENT '图片链接',
16 16 `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)',
17 17 `link` varchar(255) NULL DEFAULT NULL COMMENT '链接',
18 18 `remark` varchar(255) NULL DEFAULT NULL COMMENT '备注',
... ... @@ -302,7 +302,6 @@ CREATE TABLE `dili_xtrade`.`banner_content` (
302 302 `banner_id` bigint DEFAULT NULL COMMENT '轮播图ID',
303 303 `content` text COMMENT '内容',
304 304 `pic_url` varchar(255) DEFAULT NULL COMMENT '图片链接',
305   - `market_id` bigint NOT NULL COMMENT '市场ID',
306 305 PRIMARY KEY (`id`) USING BTREE,
307   - UNIQUE INDEX `unq_banner_id`(`banner_id`, `market_id`) USING BTREE
  306 + UNIQUE INDEX `unq_banner_id`(`banner_id`) USING BTREE
308 307 ) ENGINE=InnoDB ROW_FORMAT=DYNAMIC COMMENT='内容管理-轮播图';
309 308 \ No newline at end of file
... ...
scripts/upgrade/v1.0.25/xtrade-order_v20240913.sql
1 1 ALTER TABLE `dili_xtrade`.`banner`
2 2 ADD COLUMN `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)' AFTER `pic_url`;
3 3  
  4 +ALTER TABLE `dili_xtrade`.`banner` MODIFY pic_url NULL DEFAULT NULL;
  5 +
4 6 DROP TABLE IF EXISTS `dili_xtrade`.`banner_content`;
5 7 CREATE TABLE `dili_xtrade`.`banner_content` (
6 8 `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增ID',
... ...