@@ -64,12 +64,12 @@ public interface ArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
@Select("<script>"
+"<if test = 'form.diyTypeCode==null'>"
+"select distinct a.id,a.title as name,a.author,a.source,a.bookName,a.resourceType as type,a.price,a.realPrice,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status,a.img,a.saleStatus,a.resourceType,a.synopsis "
+"from res_Article_Library a where 1=1 and a.isDelete=1 "
+"from res_Article_Library a where 1=1 and a.status = 1 and a.isDelete=1 "
+"</if>"
+"<if test = '"+NOTBLANK+"(form.diyTypeCode)'>"
+"select distinct a.id,a.title,a.author,a.source,a.bookName,a.price,a.realPrice,a.resourceType as type,DATE_FORMAT(a.uploadTime,'%Y-%m-%d') uploadTime,a.status,a.img,a.saleStatus,a.resourceType,a.synopsis "
+"from res_Article_Library a left join res_Article_Library_Diy_Type ad "
+"on a.id = ad.alid where 1=1 and a.isDelete=1 "
+"on a.id = ad.alid where 1=1 and a.status = 1 and a.isDelete=1 "
+"</if>"
+"<if test = '"+NOTBLANK+"(form.diyTypeCode)'>"
+"and ad.code like concat(#{form.diyTypeCode},'%') "