Commit b9fca177c8a429aa6f6b63bfc2408118f1b9bc2f

Authored by qinkelan@diligrp.com
1 parent ab17c77c

脚本修正,fixbuG

etrade-admin/src/main/java/com/diligrp/etrade/admin/service/impl/BannerContentServiceImpl.java
... ... @@ -23,7 +23,7 @@ public class BannerContentServiceImpl implements BannerContentService{
23 23  
24 24 @Override
25 25 public int add(Long bannerId, String content, String picUrl) {
26   - this.checkParams(bannerId, picUrl);
  26 + this.checkParams(bannerId, content);
27 27 BannerContent bannerContent = new BannerContent();
28 28 bannerContent.setBannerId(bannerId);
29 29 bannerContent.setContent(content);
... ...
etrade-admin/src/main/resources/com/diligrp/etrade/dao/mapper/BannerContentMapper.xml
... ... @@ -17,7 +17,7 @@
17 17 <!--新增数据-->
18 18 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.diligrp.etrade.admin.model.BannerContent" useGeneratedKeys="true">
19 19 insert into banner_content (banner_id,
20   - content, contentcontent)
  20 + content, pic_url)
21 21 values (#{bannerId,jdbcType=BIGINT},
22 22 #{content,jdbcType=VARCHAR}, #{picUrl,jdbcType=VARCHAR})
23 23 </insert>
... ...
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;
  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 6 CREATE TABLE `dili_xtrade`.`banner_content` (
8 7 `id` bigint NOT NULL AUTO_INCREMENT COMMENT '自增ID',
9 8 `banner_id` bigint DEFAULT NULL COMMENT '轮播图ID',
... ...