提交 63fc4f8a authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 602f6239
...@@ -10,7 +10,6 @@ import com.zrqx.core.form.resource.bg.audiolibrary.QueryAudioLibraryForm; ...@@ -10,7 +10,6 @@ import com.zrqx.core.form.resource.bg.audiolibrary.QueryAudioLibraryForm;
import com.zrqx.core.mapper.BaseMapper; import com.zrqx.core.mapper.BaseMapper;
import com.zrqx.core.model.resource.audiolibrary.AudioLibrary; import com.zrqx.core.model.resource.audiolibrary.AudioLibrary;
import com.zrqx.core.vo.resource.audiolibrary.AudioLibraryListVO; import com.zrqx.core.vo.resource.audiolibrary.AudioLibraryListVO;
import com.zrqx.resource.bg.mapper.MapperConstants;
/** /**
* 音频库 * 音频库
*/ */
...@@ -20,27 +19,21 @@ public interface AudioLibraryMapper extends BaseMapper<AudioLibrary> { ...@@ -20,27 +19,21 @@ public interface AudioLibraryMapper extends BaseMapper<AudioLibrary> {
+ "from res_Audio_Library a left join res_Audio_Library_Diy_Type ad " + "from res_Audio_Library a left join res_Audio_Library_Diy_Type ad "
+ "on a.id = ad.audioid " + "on a.id = ad.audioid "
+ "where 1=1 " + "where 1=1 "
+ " eq(a.nationsType,form.nationsType) " + "<if test = '" + NOTBLANK + "(form.diyTypeCode)'>"
+ " like(ad.code,form.diyTypeCode) " + " and ad.code like concat(#{form.diyTypeCode},'%') "
+ "</if>"
/*+ "<if test='form.diyTypeId != null and form.diyTypeId.size > 0'>" + "<if test = '" + NOTBLANK + "(form.name)'>"
+ "and ad.dtId in " + " and a.name like concat('%',#{form.name},'%') "
+ " <foreach collection=\"form.diyTypeId\" index=\"index\" item=\"id\" open=\"(\" separator=\",\" close=\")\">" + "</if>"
+ "#{id}" + "<if test='form.status != null'>"
+ "</foreach>" + " and a.status = #{form.status}"
+ "</if>" */ + "</if>"
+ " <if test = '" + NOTBLANK + "(form.beginTime)'> "
+ " like(a.name,form.name) " + " and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' ) "
+ " like(a.source,form.source) " + " </if> "
+ " eq(a.status,form.status) " + " <if test = '" + NOTBLANK + "(form.endTime)'> "
+ " and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59') "
//+ "<if test = '" + NOTBLANK + "(form.beginTime)'>" + " </if> "
//+ "and a.uploadTime &gt;= concat(#{form.beginTime}, ' 00:00:00' )"
//+ "</if>"
//+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
//+ "and a.uploadTime &lt;= concat(#{form.endTime}, ' 23:59:59')"
//+ "</if>"
+ MapperConstants.DATETIME_QUERY_CONDITION
+ " order by a.uploadTime desc " + " order by a.uploadTime desc "
+ "</script>") + "</script>")
List<AudioLibraryListVO> query(@Param("form")QueryAudioLibraryForm form); List<AudioLibraryListVO> query(@Param("form")QueryAudioLibraryForm form);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论