Commit b9fca177c8a429aa6f6b63bfc2408118f1b9bc2f
1 parent
ab17c77c
脚本修正,fixbuG
Showing
3 changed files
with
3 additions
and
4 deletions
etrade-admin/src/main/java/com/diligrp/etrade/admin/service/impl/BannerContentServiceImpl.java
@@ -23,7 +23,7 @@ public class BannerContentServiceImpl implements BannerContentService{ | @@ -23,7 +23,7 @@ public class BannerContentServiceImpl implements BannerContentService{ | ||
23 | 23 | ||
24 | @Override | 24 | @Override |
25 | public int add(Long bannerId, String content, String picUrl) { | 25 | public int add(Long bannerId, String content, String picUrl) { |
26 | - this.checkParams(bannerId, picUrl); | 26 | + this.checkParams(bannerId, content); |
27 | BannerContent bannerContent = new BannerContent(); | 27 | BannerContent bannerContent = new BannerContent(); |
28 | bannerContent.setBannerId(bannerId); | 28 | bannerContent.setBannerId(bannerId); |
29 | bannerContent.setContent(content); | 29 | bannerContent.setContent(content); |
etrade-admin/src/main/resources/com/diligrp/etrade/dao/mapper/BannerContentMapper.xml
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | <!--新增数据--> | 17 | <!--新增数据--> |
18 | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.diligrp.etrade.admin.model.BannerContent" useGeneratedKeys="true"> | 18 | <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.diligrp.etrade.admin.model.BannerContent" useGeneratedKeys="true"> |
19 | insert into banner_content (banner_id, | 19 | insert into banner_content (banner_id, |
20 | - content, contentcontent) | 20 | + content, pic_url) |
21 | values (#{bannerId,jdbcType=BIGINT}, | 21 | values (#{bannerId,jdbcType=BIGINT}, |
22 | #{content,jdbcType=VARCHAR}, #{picUrl,jdbcType=VARCHAR}) | 22 | #{content,jdbcType=VARCHAR}, #{picUrl,jdbcType=VARCHAR}) |
23 | </insert> | 23 | </insert> |
scripts/upgrade/v1.0.25/xtrade-order_v20240913.sql
1 | ALTER TABLE `dili_xtrade`.`banner` | 1 | ALTER TABLE `dili_xtrade`.`banner` |
2 | ADD COLUMN `link_type` int NULL DEFAULT NULL COMMENT '链接类型(枚举)' AFTER `pic_url`; | 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; | 4 | +ALTER TABLE `dili_xtrade`.`banner` MODIFY pic_url varchar(255) NULL DEFAULT NULL COMMENT '图片链接(非必填)'; |
5 | 5 | ||
6 | -DROP TABLE IF EXISTS `dili_xtrade`.`banner_content`; | ||
7 | CREATE TABLE `dili_xtrade`.`banner_content` ( | 6 | CREATE TABLE `dili_xtrade`.`banner_content` ( |
8 | `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增ID', | 7 | `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增ID', |
9 | `banner_id` bigint DEFAULT NULL COMMENT '轮播图ID', | 8 | `banner_id` bigint DEFAULT NULL COMMENT '轮播图ID', |