Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
scsm
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
scsm
Commits
fb956927
提交
fb956927
authored
1月 19, 2021
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
39c60e75
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
8 行删除
+13
-8
FgAnnexLibraryMapper.java
...resource/fg/mapper/annexlibrary/FgAnnexLibraryMapper.java
+1
-1
FgArticleLibraryMapper.java
...urce/fg/mapper/articlelibrary/FgArticleLibraryMapper.java
+12
-7
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/mapper/annexlibrary/FgAnnexLibraryMapper.java
浏览文件 @
fb956927
...
...
@@ -16,7 +16,7 @@ import com.zrqx.core.vo.resource.fg.pc.index.FgSearchListVO;
public
interface
FgAnnexLibraryMapper
extends
BaseMapper
<
AnnexLibrary
>
{
@Select
(
"<script>"
+
"select id,name,cover,annex fileName FROM res_Annex_Library "
+
"where status = 1 order by
uploadTime
desc LIMIT 5"
+
"where status = 1 order by
downloadNum
desc LIMIT 5"
+
"</script>"
)
List
<
FgIndexAnnexListVO
>
list
();
@Select
(
"<script>"
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/mapper/articlelibrary/FgArticleLibraryMapper.java
浏览文件 @
fb956927
...
...
@@ -24,7 +24,7 @@ public interface FgArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
*/
@Select
(
"<script>"
+
"select a.id,a.name,a.author,a.source,a.uploadTime,a.status "
+
"from res_
Article_Library a left join res_Article_Library_Diy_T
ype ad "
+
"from res_
article_library a left join res_article_library_diy_t
ype ad "
+
"on a.id = ad.alid "
+
"where 1=1 "
+
"<if test = 'form.diyTypeCode != null' >"
...
...
@@ -47,7 +47,7 @@ public interface FgArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
@Select
(
"<script>"
+
" select a.id,a.name,a.author,a.source,a.bookName,a.price,a.realPrice,a.uploadTime,a.status,a.img,a.resourceType "
+
" from res_
Article_Library a left join res_Article_Library_Diy_T
ype ad "
+
" from res_
article_library a left join res_article_library_diy_t
ype ad "
+
" on a.id = ad.alid "
+
" where 1=1 and a.status = 1 "
...
...
@@ -69,16 +69,21 @@ public interface FgArticleLibraryMapper extends BaseMapper<ArticleLibrary> {
+
"</script>"
)
List
<
ArticleLibraryListVO
>
queryByTileAndDiyType
(
@Param
(
"form"
)
QueryResourceForPoPForm
entity
);
@Select
(
"<script>"
+
"select a.id,a.name,a.synopsis,a.img cover from res_
Article_L
ibrary a where a.status=1 order by uploadTime desc LIMIT 8"
+
"select a.id,a.name,a.synopsis,a.img cover from res_
article_l
ibrary a where a.status=1 order by uploadTime desc LIMIT 8"
+
"</script>"
)
List
<
FgIndexArticleListVO
>
list
();
@Select
(
"<script>"
+
" select a.id,a.name,a.img cover,a.synopsis,a.uploadTime newPulishDate "
+
" from res_Article_Library a left join res_Article_Library_Diy_Type ad "
+
" on a.id = ad.alid "
+
"<if test = 'form.diyTypeCode == null' >"
+
" select a.id,a.name,a.img cover,a.synopsis,a.uploadTime newPulishDate "
+
" from res_article_library a "
+
"</if>"
+
"<if test = 'form.diyTypeCode != null' >"
+
" select a.id,a.name,a.img cover,a.synopsis,a.uploadTime newPulishDate "
+
" from res_article_library a left join res_article_library_diy_type ad "
+
" on a.id = ad.alid "
+
"</if>"
+
" where 1=1 and a.status = 1 "
+
"<if test = 'form.diyTypeCode != null' >"
+
" and ad.code like concat('%', #{form.diyTypeCode},'%')"
+
"</if>"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论