diff --git a/ruoyi-service/src/main/java/com/ruoyi/bst/ad/mapper/AdMapper.xml b/ruoyi-service/src/main/java/com/ruoyi/bst/ad/mapper/AdMapper.xml
index 2b7e83f..b81b150 100644
--- a/ruoyi-service/src/main/java/com/ruoyi/bst/ad/mapper/AdMapper.xml
+++ b/ruoyi-service/src/main/java/com/ruoyi/bst/ad/mapper/AdMapper.xml
@@ -38,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and bad.ad_id = #{query.adId}
and bad.type = #{query.type}
and bad.picture = #{query.picture}
- and bad.url = #{query.url}
+ and bad.url like concat('%',#{query.url},'%')
and bad.deleted = #{query.deleted}
and bad.url_type = #{query.urlType}
${query.params.dataScope}
diff --git a/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/Article.java b/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/Article.java
index 9d0fd71..e4dbc08 100644
--- a/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/Article.java
+++ b/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/Article.java
@@ -32,8 +32,16 @@ public class Article extends BaseEntity
@ApiModelProperty("标题")
private String title;
+ @Excel(name = "简介")
+ @ApiModelProperty("简介")
+ private String brief;
+
@Excel(name = "内容详情")
@ApiModelProperty("内容详情")
private String content;
+ @Excel(name = "文章类型")
+ @ApiModelProperty(value = "文章类型")
+ private String code;
+
}
diff --git a/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleQuery.java b/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleQuery.java
index e52ab89..4aa90a6 100644
--- a/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleQuery.java
+++ b/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleQuery.java
@@ -1,4 +1,9 @@
package com.ruoyi.bst.article.domain;
+import lombok.Data;
+
+@Data
public class ArticleQuery extends Article{
+
+
}
diff --git a/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleVO.java b/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleVO.java
index 89341cd..ac3771b 100644
--- a/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleVO.java
+++ b/ruoyi-service/src/main/java/com/ruoyi/bst/article/domain/ArticleVO.java
@@ -1,7 +1,13 @@
package com.ruoyi.bst.article.domain;
+import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class ArticleVO extends Article {
+
+ @ApiModelProperty(value = "分类名称")
+ private String articleCategoryName;
+
+
}
diff --git a/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.java b/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.java
index 05ce669..e324fb0 100644
--- a/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.java
+++ b/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.java
@@ -73,7 +73,7 @@ public interface ArticleMapper
*/
public int deleteArticleByIds(Long[] ids);
- public ArticleVO selectChildrenById(Long id);
+ public List selectChildrenById(Long id);
ArticleVO selectArticleByCode(ArticleCategoryQuery articleCategoryQuery);
}
diff --git a/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.xml b/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.xml
index eecb602..f97c0ba 100644
--- a/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.xml
+++ b/ruoyi-service/src/main/java/com/ruoyi/bst/article/mapper/ArticleMapper.xml
@@ -7,7 +7,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-
@@ -16,22 +15,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select
- id,
- category_id,
- area_id,
- title,
- content,
- create_time,
- update_time
- from bst_article
+ bart.id,
+ bart.category_id,
+ bart.title,
+ bart.content,
+ bart.create_time,
+ bart.brief,
+ bart.code,
+ bart.update_time,
+ bac.category_name as article_category_name
+ from bst_article bart
+ left join bst_article_category bac on bart.category_id = bac.id
- and id = #{query.id}
- and category_id = #{query.categoryId}
- and area_id = #{query.areaId}
- and title = #{query.title}
- and content = #{query.content}
+ and bart.id = #{query.id}
+ and bart.category_id = #{query.categoryId}
+ and bart.brief = #{query.brief}
+ and bart.title like concat ('',#{query.title},'')
+ and bart.content = #{query.content}
${query.params.dataScope}
@@ -44,12 +46,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-