src/main/java/org/springblade/modules/article/mapper/ArticleIntegralMapper.java
@@ -16,6 +16,7 @@ */ package org.springblade.modules.article.mapper; import org.apache.ibatis.annotations.Param; import org.springblade.modules.article.entity.ArticleIntegralEntity; import org.springblade.modules.article.vo.ArticleIntegralVO; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -37,7 +38,8 @@ * @param articleIntegral * @return */ List<ArticleIntegralVO> selectArticleIntegralPage(IPage page, ArticleIntegralVO articleIntegral); List<ArticleIntegralVO> selectArticleIntegralPage(IPage page, @Param("articleIntegral") ArticleIntegralVO articleIntegral); } src/main/java/org/springblade/modules/article/mapper/ArticleIntegralMapper.xml
@@ -12,9 +12,28 @@ <result column="is_deleted" property="isDeleted"/> </resultMap> <!--自定义分页查询--> <select id="selectArticleIntegralPage" resultMap="articleIntegralResultMap"> select * from jczz_article_integral where is_deleted = 0 select jai.*, jh.house_name as address, jh.district_name as aoiName, bu.real_name, bu.phone, bu.avatar from jczz_article_integral jai left join jczz_house jh on jai.house_code = jh.house_code and jh.is_deleted = 0 left join blade_user bu on bu.id = jai.create_user and bu.is_deleted = 0 where jai.is_deleted = 0 <if test="articleIntegral.realName!=null and articleIntegral.realName!=''"> and bu.real_name like concat('%',#{articleIntegral.realName},'%') </if> <if test="articleIntegral.phone!=null and articleIntegral.phone!=''"> and bu.phone like concat('%',#{articleIntegral.phone},'%') </if> <if test="articleIntegral.articleId!=null"> and jai.article_id = #{articleIntegral.articleId} </if> </select> src/main/java/org/springblade/modules/article/vo/ArticleIntegralVO.java
@@ -16,6 +16,8 @@ */ package org.springblade.modules.article.vo; import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiOperation; import org.springblade.modules.article.entity.ArticleIntegralEntity; import org.springblade.core.tool.node.INode; import lombok.Data; @@ -32,4 +34,28 @@ public class ArticleIntegralVO extends ArticleIntegralEntity { private static final long serialVersionUID = 1L; /** * 姓名 */ @ApiModelProperty(value = "姓名") private String realName; /** * 电话 */ @ApiModelProperty(value = "电话") private String phone; /** * 地址 */ @ApiModelProperty(value = "地址") private String address; /** * 小区名称 */ @ApiModelProperty(value = "小区名称") private String aoiName; }