Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
newhxnrgl
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
newhxnrgl
Commits
7b1d4a95
提交
7b1d4a95
authored
3月 08, 2021
作者:
chaoyanjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
5c97a575
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
57 行增加
和
0 行删除
+57
-0
SelectedSubjectMapper.java
...zrqx/newbook/bg/mapper/subject/SelectedSubjectMapper.java
+57
-0
没有找到文件。
com.zrqx.newbook/src/main/java/com/zrqx/newbook/bg/mapper/subject/SelectedSubjectMapper.java
浏览文件 @
7b1d4a95
package
com
.
zrqx
.
newbook
.
bg
.
mapper
.
subject
;
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.form.newbook.subject.QuerySubjectForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.newbook.subject.SelectedSubject
;
import
com.zrqx.core.model.newbook.subject.SelectedSubject
;
...
@@ -74,6 +75,62 @@ public interface SelectedSubjectMapper extends BaseMapper<SelectedSubject> {
...
@@ -74,6 +75,62 @@ public interface SelectedSubjectMapper extends BaseMapper<SelectedSubject> {
+
"</script>"
)
+
"</script>"
)
List
<
SubjectListVo
>
findByPaging
(
@Param
(
"form"
)
QuerySubjectForm
form
);
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 >= concat(#{form.declareStartDate}, ' 00:00:00') "
+
"</if>"
+
"<if test = '"
+
NOTBLANK
+
"(form.declareEndDate)'>"
+
" and bss.declareDate <= concat(#{form.declareEndDate}, ' 23:59:59') "
+
"</if>"
+
"<if test = '"
+
NOTBLANK
+
"(form.updateStartTime)'>"
+
" and bss.updateTime >= concat(#{form.updateStartTime}, ' 00:00:00') "
+
"</if>"
+
"<if test = '"
+
NOTBLANK
+
"(form.updateEndTime)'>"
+
" and bss.updateTime <= concat(#{form.updateEndTime}, ' 23:59:59') "
+
"</if>"
+
"<if test = '"
+
NOTBLANK
+
"(form.status)'>"
+
"<choose>"
+
"<when test = '(form.status)==""
+
PENDING_AUDIT
+
""'>"
+
" 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"
)
@Select
(
"SELECT * FROM book_selected_subject"
)
List
<
ExportSubjectVo
>
findAll
();
List
<
ExportSubjectVo
>
findAll
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论