Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rsyy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
rsyy
Commits
382a0542
提交
382a0542
authored
6月 02, 2020
作者:
renjianyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
2c12f16e
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
23 行增加
和
12 行删除
+23
-12
PdfLibraryController.java
...ce/bg/controller/pdffilelibrary/PdfLibraryController.java
+3
-3
PdfLibraryMapper.java
...x/resource/bg/mapper/pdffilelibrary/PdfLibraryMapper.java
+3
-3
VideoLibraryMapper.java
...x/resource/bg/mapper/videolibrary/VideoLibraryMapper.java
+2
-2
SaveUpdatePdfLibraryForm.java
...mons/form/bg/pdffilelibrary/SaveUpdatePdfLibraryForm.java
+2
-1
SaveUpdateVideoLibraryForm.java
...mons/form/bg/videolibrary/SaveUpdateVideoLibraryForm.java
+2
-0
PdfLibraryListVO.java
...source/commons/vo/bg/pdffilelibrary/PdfLibraryListVO.java
+2
-0
PdfLibraryOneVO.java
...esource/commons/vo/bg/pdffilelibrary/PdfLibraryOneVO.java
+2
-0
VideoLibraryListVO.java
...source/commons/vo/bg/videolibrary/VideoLibraryListVO.java
+2
-0
VideoLibraryOneVO.java
...esource/commons/vo/bg/videolibrary/VideoLibraryOneVO.java
+2
-0
FgVideoLibraryMapper.java
...resource/fg/mapper/videolibrary/FgVideoLibraryMapper.java
+3
-3
没有找到文件。
app/resource/src/main/java/com/zrqx/resource/bg/controller/pdffilelibrary/PdfLibraryController.java
浏览文件 @
382a0542
...
...
@@ -154,9 +154,9 @@ public class PdfLibraryController {
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"查询列表"
)
@GetMapping
(
value
=
"/page"
)
public
CallBack
<
PageInfo
<
PdfLibraryListVO
>>
page
(
QueryPdfLibraryForm
form
,
PageParam
pageParam
){
if
(
null
!=
pageParam
&&
StringUtils
.
isBlank
(
pageParam
.
getOrderBy
()))
{
pageParam
.
setOrderBy
(
"uploadTime desc,id desc"
);
}
//
if (null != pageParam && StringUtils.isBlank(pageParam.getOrderBy())) {
//
pageParam.setOrderBy("uploadTime desc,id desc");
//
}
return
CallBack
.
success
(
service
.
page
(
form
,
pageParam
));
}
}
app/resource/src/main/java/com/zrqx/resource/bg/mapper/pdffilelibrary/PdfLibraryMapper.java
浏览文件 @
382a0542
...
...
@@ -15,7 +15,7 @@ import com.zrqx.resource.commons.vo.bg.pdffilelibrary.PdfLibraryListVO;
*/
public
interface
PdfLibraryMapper
extends
BaseMapper
<
PdfLibrary
>
{
@Select
(
"<script>"
+
"select a.id,a.name,a.author,a.source,a.pdf,a.price,a.uploadTime,a.status "
+
"select a.id,a.name,a.author,a.source,a.pdf,a.price,a.uploadTime,a.status
,a.sort
"
+
"from res_Pdf_Library a left join res_Pdf_Library_Diy_Type ad "
+
"on a.id = ad.plid "
+
"where 1=1 "
...
...
@@ -41,8 +41,8 @@ public interface PdfLibraryMapper extends BaseMapper<PdfLibrary> {
//+ "<if test = '" + NOTBLANK + "(form.endTime)'>"
//+ "and a.uploadTime <= concat(#{form.endTime}, ' 23:59:59')"
//+ "</if>"
+
MapperConstants
.
DATETIME_QUERY_CONDITION
+
"
order by a.uploadTime desc
"
//
+ MapperConstants.DATETIME_QUERY_CONDITION
+
"
ORDER BY a.sort DESC
"
+
"</script>"
)
List
<
PdfLibraryListVO
>
query
(
@Param
(
"form"
)
QueryPdfLibraryForm
form
);
}
app/resource/src/main/java/com/zrqx/resource/bg/mapper/videolibrary/VideoLibraryMapper.java
浏览文件 @
382a0542
...
...
@@ -16,7 +16,7 @@ import com.zrqx.resource.commons.vo.bg.videolibrary.VideoLibraryListVO;
*/
public
interface
VideoLibraryMapper
extends
BaseMapper
<
VideoLibrary
>
{
@Select
(
"<script>"
+
"select distinct a.id,a.readTextPower,a.name,a.source,a.bookName,a.realprice,a.timeLength,a.size,a.uploadTime,a.status "
+
"select distinct a.id,a.readTextPower,a.name,a.source,a.bookName,a.realprice,a.timeLength,a.size,a.uploadTime,a.status
,a.sort
"
+
"from res_Video_Library a left join res_Video_Library_Diy_Type ad "
+
"on a.id = ad.vlid "
+
"where 1=1 "
...
...
@@ -42,7 +42,7 @@ public interface VideoLibraryMapper extends BaseMapper<VideoLibrary> {
//+ "and a.uploadTime <= concat(#{form.endTime}, ' 23:59:59')"
//+ "</if>"
+
MapperConstants
.
DATETIME_QUERY_CONDITION
+
" order by a.
uploadTime
desc "
+
" order by a.
sort
desc "
+
"</script>"
)
List
<
VideoLibraryListVO
>
query
(
@Param
(
"form"
)
QueryVideoLibraryForm
form
);
...
...
app/resource/src/main/java/com/zrqx/resource/commons/form/bg/pdffilelibrary/SaveUpdatePdfLibraryForm.java
浏览文件 @
382a0542
...
...
@@ -27,7 +27,8 @@ public class SaveUpdatePdfLibraryForm {
private
String
synopsis
;
@ApiModelProperty
(
"pdf"
)
private
String
pdf
;
@ApiModelProperty
(
"排序号 默认100"
)
private
Integer
sort
;
@ApiModelProperty
(
value
=
"分类id"
)
private
List
<
PdfLibraryDiyType
>
diyType
;
@ApiModelProperty
(
"民族 1蒙古族 2侗族 3藏族 4朝鲜族 5土家族 6回族 7满族 8汉族"
)
...
...
app/resource/src/main/java/com/zrqx/resource/commons/form/bg/videolibrary/SaveUpdateVideoLibraryForm.java
浏览文件 @
382a0542
...
...
@@ -52,4 +52,6 @@ public class SaveUpdateVideoLibraryForm {
private
String
videoName
;
@ApiModelProperty
(
value
=
"作者名称和id(用,隔开)"
)
private
String
authorNameAndId
;
@ApiModelProperty
(
"排序号 默认100"
)
private
Integer
sort
;
}
app/resource/src/main/java/com/zrqx/resource/commons/vo/bg/pdffilelibrary/PdfLibraryListVO.java
浏览文件 @
382a0542
...
...
@@ -22,4 +22,6 @@ public class PdfLibraryListVO {
private
String
uploadTime
;
@ApiModelProperty
(
"状态:0待审核,1已上架,2已下架"
)
private
String
status
;
@ApiModelProperty
(
"排序号"
)
private
Integer
sort
;
}
app/resource/src/main/java/com/zrqx/resource/commons/vo/bg/pdffilelibrary/PdfLibraryOneVO.java
浏览文件 @
382a0542
...
...
@@ -30,4 +30,6 @@ public class PdfLibraryOneVO {
private
List
<
PdfLibraryDiyType
>
diyType
;
@ApiModelProperty
(
"pdf名称"
)
private
String
pdfName
;
@ApiModelProperty
(
"排序号 默认100"
)
private
Integer
sort
;
}
app/resource/src/main/java/com/zrqx/resource/commons/vo/bg/videolibrary/VideoLibraryListVO.java
浏览文件 @
382a0542
...
...
@@ -42,4 +42,6 @@ public class VideoLibraryListVO {
private
Integer
resourceType
;
@ApiModelProperty
(
"资源类型"
)
private
String
videoAndPdf
;
@ApiModelProperty
(
"排序号 默认100"
)
private
Integer
sort
;
}
app/resource/src/main/java/com/zrqx/resource/commons/vo/bg/videolibrary/VideoLibraryOneVO.java
浏览文件 @
382a0542
...
...
@@ -49,4 +49,6 @@ public class VideoLibraryOneVO {
private
String
videoName
;
@ApiModelProperty
(
value
=
"作者名称和id(用,隔开)"
)
private
String
authorNameAndId
;
@ApiModelProperty
(
"排序号 默认100"
)
private
Integer
sort
;
}
app/resource/src/main/java/com/zrqx/resource/fg/mapper/videolibrary/FgVideoLibraryMapper.java
浏览文件 @
382a0542
...
...
@@ -42,7 +42,7 @@ public interface FgVideoLibraryMapper extends BaseMapper<VideoLibrary> {
+
"</script>"
)
List
<
FgVideoLibraryListVO
>
queryRecommendVideo
(
@Param
(
"form"
)
FgQueryRecommedVideoForm
form
);
@Select
(
"<script>"
+
"select distinct a.id,a.readTextPower,a.name,a.source,a.bookName,a.realprice,a.timeLength,a.size,a.uploadTime,a.status,a.resourceType,video videoAndPdf "
+
"select distinct a.id,a.readTextPower,a.name,a.source,a.bookName,a.realprice,a.timeLength,a.size,a.uploadTime,a.status,a.resourceType,video videoAndPdf
,1 num,sort
"
+
"from res_video_library a left join res_video_library_diy_type ad "
+
"on a.id = ad.vlid "
+
"where 1=1 "
...
...
@@ -51,14 +51,14 @@ public interface FgVideoLibraryMapper extends BaseMapper<VideoLibrary> {
+
"</if>"
+
" union all "
+
"select distinct a.id,null readTextPower,a.name,a.source, null bookName,null realprice,null timeLength,null size,a.uploadTime,a.status,a.resourceType,pdf videoAndPdf "
+
"select distinct a.id,null readTextPower,a.name,a.source, null bookName,null realprice,null timeLength,null size,a.uploadTime,a.status,a.resourceType,pdf videoAndPdf
,2 num,sort
"
+
"from res_pdf_library a left join res_pdf_library_diy_type ad "
+
"on a.id = ad.plid "
+
"where 1=1 "
+
"<if test = '"
+
NOTBLANK
+
"(form.diyTypeCode)' >"
+
" and ad.code like concat(#{form.diyTypeCode},'%') "
+
"</if>"
+
" order by
uploadTime
desc "
+
" order by
num desc, sort
desc "
+
"</script>"
)
List
<
VideoLibraryListVO
>
query
(
@Param
(
"form"
)
QueryVideoLibraryForm
form
);
/**
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论