提交 71e6a237 authored 作者: xinjunguo's avatar xinjunguo

--no commit message

上级 424089b1
...@@ -61,7 +61,7 @@ public interface ArticleLibraryMapper extends BaseMapper<ArticleLibrary> { ...@@ -61,7 +61,7 @@ public interface ArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
+ "select distinct a.id,a.name,a.author,a.source,a.bookName,a.price,a.realPrice,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status,a.img,a.nationsType,a.resourceType " + "select distinct a.id,a.name,a.author,a.source,a.bookName,a.price,a.realPrice,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status,a.img,a.nationsType,a.resourceType "
+ "from res_Article_Library a left join res_Article_Library_Diy_Type ad " + "from res_Article_Library a left join res_Article_Library_Diy_Type ad "
+ "on a.id = ad.alid " + "on a.id = ad.alid "
+ "where 1=1 and a.status = 1 " + "where 1=1 and a.status = 1 and a.realPrice is not null "
+ "<if test='form.nationsType != null' >" + "<if test='form.nationsType != null' >"
+ "and a.nationsType = #{form.nationsType} " + "and a.nationsType = #{form.nationsType} "
+ "</if>" + "</if>"
......
...@@ -98,7 +98,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{ ...@@ -98,7 +98,7 @@ public interface EbookMapper extends BaseMapper<Ebook>{
+ " FROM res_book bb " + " FROM res_book bb "
+ " LEFT JOIN res_ebook be ON bb.id = be.id " + " LEFT JOIN res_ebook be ON bb.id = be.id "
+ " LEFT JOIN res_ebook_diy_type bdt ON be.id = bdt.ebookid" + " LEFT JOIN res_ebook_diy_type bdt ON be.id = bdt.ebookid"
+ " WHERE 1 = 1 and be.bookStatus = 4 " + " WHERE 1 = 1 and be.bookStatus = 4 and be.realPrice is not null "
+ "<if test='"+ NOTBLANK +"(form.diyTypeCode)' >" + "<if test='"+ NOTBLANK +"(form.diyTypeCode)' >"
+ "and bdt.Code like concat(#{form.diyTypeCode},'%') " + "and bdt.Code like concat(#{form.diyTypeCode},'%') "
+ "</if>" + "</if>"
......
...@@ -56,7 +56,7 @@ public interface ImageLibraryMapper extends BaseMapper<ImageLibrary>{ ...@@ -56,7 +56,7 @@ public interface ImageLibraryMapper extends BaseMapper<ImageLibrary>{
+ "select distinct a.id,a.name,a.bookName,a.author,a.price,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status " + "select distinct a.id,a.name,a.bookName,a.author,a.price,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status "
+ "from res_Image_Library a left join res_Image_Library_Diy_Type ad " + "from res_Image_Library a left join res_Image_Library_Diy_Type ad "
+ "on a.id = ad.ilid " + "on a.id = ad.ilid "
+ "where 1=1 and a.status = 1 " + "where 1=1 and a.status = 1 and a.realPrice is not null "
+ "<if test='form.nationsType != null' >" + "<if test='form.nationsType != null' >"
+ "and a.nationsType = #{form.nationsType} " + "and a.nationsType = #{form.nationsType} "
+ "</if>" + "</if>"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论