提交 4454bcdb authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 c3e989e5
...@@ -15,9 +15,15 @@ import com.zrqx.core.vo.resource.annexlibrary.AnnexLibraryListVO; ...@@ -15,9 +15,15 @@ import com.zrqx.core.vo.resource.annexlibrary.AnnexLibraryListVO;
*/ */
public interface AnnexLibraryMapper extends BaseMapper<AnnexLibrary> { public interface AnnexLibraryMapper extends BaseMapper<AnnexLibrary> {
@Select("<script>" @Select("<script>"
+ "<if test='form.diyTypeCode==null"
+ "select a.id,a.name,a.source,a.uploadTime from res_annex_library a "
+ "</if>"
+ "<if test='" + NOTBLANK + "(form.diyTypeCode)'>"
+ "select a.id,a.name,a.source,a.uploadTime " + "select a.id,a.name,a.source,a.uploadTime "
+ "from res_annex_library a left join res_annex_library_Diy_Type ad " + "from res_annex_library a left join res_annex_library_Diy_Type ad "
+ "on a.id = ad.annexid where 1=1 " + "on a.id = ad.annexid "
+ "</if>"
+ "where 1=1 "
+ "<if test='" + NOTBLANK + "(form.diyTypeCode)'>" + "<if test='" + NOTBLANK + "(form.diyTypeCode)'>"
+ " and ad.code like concat(#{form.diyTypeCode},'%') " + " and ad.code like concat(#{form.diyTypeCode},'%') "
+ "</if>" + "</if>"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论