提交 0c72d302 authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 54fe40a8
......@@ -20,9 +20,15 @@ public interface ArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
* @return
*/
@Select("<script>"
+ "<if test = 'form.diyTypeCode == null' >"
+ "select a.id,a.name,a.author,a.source,a.uploadTime,a.status "
+ "from res_Article_Library a "
+ "</if>"
+ "<if test = 'form.diyTypeCode != null' >"
+ "select a.id,a.name,a.author,a.source,a.uploadTime,a.status "
+ "from res_Article_Library a left join res_Article_Library_Diy_Type ad "
+ "on a.id = ad.alid "
+ "</if>"
+ "where 1=1 "
+ "<if test = 'form.diyTypeCode != null' >"
+ " and ad.code like concat('%', #{form.diyTypeCode},'%'))"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论