提交 7b1d4a95 authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 5c97a575
package com.zrqx.newbook.bg.mapper.subject;
import com.zrqx.core.form.newbook.ExportForm;
import com.zrqx.core.form.newbook.subject.QuerySubjectForm;
import com.zrqx.core.mapper.BaseMapper;
import com.zrqx.core.model.newbook.subject.SelectedSubject;
......@@ -74,6 +75,62 @@ public interface SelectedSubjectMapper extends BaseMapper<SelectedSubject> {
+ "</script>")
List<SubjectListVo> findByPaging(@Param("form") QuerySubjectForm form);
@Select("<script>"
+ " select bss.*, bssa.author "
+ " from book_selected_subject bss "
+ " left join book_selected_subject_author bssa on bss.id = bssa.bssId "
+ " where 1=1 "
+ " <choose> "
+ " <when test = 'form.selectedProcess == 1'> "
+ " AND bss.selectedProcess is null "
+ " </when> "
+ " <when test = 'form.selectedProcess == 2'> "
+ " AND bss.selectedProcess = '0-0-0' "
+ " </when> "
+ " <when test = 'form.selectedProcess == 3'> "
+ " AND bss.selectedProcess is not null and bss.selectedProcess != '0-0-0' "
+ " </when> "
+ " </choose> "
+ "<if test = '" + NOTBLANK + "(form.applyName)'>"
+ " and bss.applyName like concat('%',#{form.applyName}, '%') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.bookName)'>"
+ " and bss.bookName like concat('%', #{form.bookName}, '%') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.subjectNum)'>"
+ " and bss.subjectNum like concat('%', #{form.subjectNum}, '%') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.author)'>"
+ " and bssa.author like concat('%', #{form.author}, '%') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.editor)'>"
+ " and bss.editor like concat('%', #{form.editor}, '%') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.declareStartDate)'>"
+ " and bss.declareDate &gt;= concat(#{form.declareStartDate}, ' 00:00:00') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.declareEndDate)'>"
+ " and bss.declareDate &lt;= concat(#{form.declareEndDate}, ' 23:59:59') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.updateStartTime)'>"
+ " and bss.updateTime &gt;= concat(#{form.updateStartTime}, ' 00:00:00') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.updateEndTime)'>"
+ " and bss.updateTime &lt;= concat(#{form.updateEndTime}, ' 23:59:59') "
+ "</if>"
+ "<if test = '" + NOTBLANK + "(form.status)'>"
+ "<choose>"
+ "<when test = '(form.status)==&quot;" + PENDING_AUDIT + "&quot;'>"
+ " and bss.status like concat('1-2','%') "
+ "</when>"
+ "<otherwise>"
+ " and bss.status = #{form.status} "
+ "</otherwise>"
+ "</choose>"
+ "</if>"
+ "</script>")
List<ExportSubjectVo> findByExport(@Param("form") ExportForm form);
@Select("SELECT * FROM book_selected_subject")
List<ExportSubjectVo> findAll();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论