提交 2fd4fcb2 authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 1822d6b9
...@@ -2,7 +2,6 @@ package com.zrqx.resource.bg.controller.audiolibrary; ...@@ -2,7 +2,6 @@ package com.zrqx.resource.bg.controller.audiolibrary;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
......
...@@ -23,15 +23,15 @@ public interface ArticleLibraryMapper extends BaseMapper<ArticleLibrary> { ...@@ -23,15 +23,15 @@ public interface ArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
* @return * @return
*/ */
@Select("<script>" @Select("<script>"
+ "select distinct a.id,a.name,a.sort,a.author,a.source,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status " + "select distinct id,name,sort,source,DATE_FORMAT(uploadTime,'%Y-%m-%d') uploadTime,status "
+ "from res_Article_Library where 1=1 " + "from res_Article_Library where 1=1 "
+ "<if test = '" + NOTBLANK + "(form.name)'>" + "<if test = '" + NOTBLANK + "(form.name)'>"
+ " and a.name like concat('%',#{form.name},'%') " + " and name like concat('%',#{form.name},'%') "
+ "</if>" + "</if>"
+ "<if test='form.status != null'>" + "<if test='form.status != null'>"
+ " and a.status = #{form.status}" + " and status = #{form.status}"
+ "</if>" + "</if>"
+ " order by a.sort asc " + " order by sort asc "
+ "</script>") + "</script>")
List<ArticleLibraryListVO> query(@Param("form")QueryArticleLibraryForm form); List<ArticleLibraryListVO> query(@Param("form")QueryArticleLibraryForm form);
@Select("<script>" @Select("<script>"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论