提交 d59f036c authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 b26a2cd1
......@@ -15,17 +15,17 @@ import com.zrqx.core.vo.resource.fg.pc.index.FgSearchListVO;
*/
public interface FgAnnexLibraryMapper extends BaseMapper<AnnexLibrary> {
@Select("<script>"
+ "select id,name,cover FROM res_Annex_Library "
+ "select id,name,cover,annex fileName FROM res_Annex_Library "
+ "where status = 1 order by uploadTime desc LIMIT 5"
+ "</script>")
List<FgIndexAnnexListVO> list();
@Select("<script>"
+ "<if test='"+ NOTBLANK +"(form.diyTypeCode)' >"
+ "SELECT bb.id, bb.name,bb.cover "
+ "SELECT bb.id, bb.name,bb.cover,bb.annex fileName "
+ "FROM res_Annex_Library bb LEFT JOIN res_Annex_Library_Diy_Type bdt ON bb.id = bdt.annexId"
+ "</if>"
+ "<if test='form.diyTypeCode==null' >"
+ "SELECT bb.id, bb.name,bb.cover FROM res_Annex_Library bb "
+ "SELECT bb.id, bb.name,bb.cover,bb.annex fileName FROM res_Annex_Library bb "
+ "</if>"
+ " WHERE 1=1 and bb.status = '1' "
+ "<if test='"+ NOTBLANK +"(form.diyTypeCode)' >"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论