Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zgzx
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
zgzx
Commits
b06da08c
提交
b06da08c
authored
9月 23, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
3e5afd5c
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
114 行增加
和
12 行删除
+114
-12
BaseRequestPath.java
...src/main/java/com/zrqx/core/constant/BaseRequestPath.java
+2
-0
WapIndexListVO.java
...ain/java/com/zrqx/core/vo/resource/fg/WapIndexListVO.java
+18
-0
WapIndexEbookListVO.java
...m/zrqx/core/vo/resource/fg/ebook/WapIndexEbookListVO.java
+1
-7
WapEbookController.java
...rqx/resource/wap/controller/ebook/WapEbookController.java
+15
-4
WapBookMapper.java
...main/java/com/zrqx/resource/wap/mapper/WapBookMapper.java
+1
-1
WapYearLibraryMapper.java
...va/com/zrqx/resource/wap/mapper/WapYearLibraryMapper.java
+24
-0
WapYearLibrarySerivceImpl.java
.../zrqx/resource/wap/service/WapYearLibrarySerivceImpl.java
+36
-0
WapYearLibraryService.java
.../com/zrqx/resource/wap/service/WapYearLibraryService.java
+17
-0
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/constant/BaseRequestPath.java
浏览文件 @
b06da08c
...
...
@@ -45,6 +45,8 @@ public class BaseRequestPath {
/** 分页 */
public
static
final
String
PAGE
=
"/page"
;
/** 分页 */
public
static
final
String
INDEX
=
"/index"
;
/** 分页 */
public
static
final
String
PAGE_BOOK
=
"/page-book"
;
/** 列表 */
public
static
final
String
LIST
=
"/list"
;
...
...
com.zrqx.core/src/main/java/com/zrqx/core/vo/resource/fg/WapIndexListVO.java
0 → 100644
浏览文件 @
b06da08c
package
com
.
zrqx
.
core
.
vo
.
resource
.
fg
;
import
java.util.List
;
import
com.zrqx.core.model.resource.year.YearLibrary
;
import
com.zrqx.core.vo.resource.fg.ebook.WapIndexEbookListVO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"WapIndexListVO"
,
description
=
"查询集合返回的实体"
)
public
class
WapIndexListVO
{
@ApiModelProperty
(
"最新上架杂志"
)
private
List
<
WapIndexEbookListVO
>
bookList
;
@ApiModelProperty
(
"最近年"
)
private
List
<
YearLibrary
>
yearList
;
}
com.zrqx.core/src/main/java/com/zrqx/core/vo/resource/fg/ebook/WapIndexEbookListVO.java
浏览文件 @
b06da08c
package
com
.
zrqx
.
core
.
vo
.
resource
.
fg
.
ebook
;
import
java.util.List
;
import
com.zrqx.core.model.resource.year.YearLibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"
Fg
EbookListVO"
,
description
=
"查询电子书集合返回的实体"
)
@ApiModel
(
value
=
"
WapIndex
EbookListVO"
,
description
=
"查询电子书集合返回的实体"
)
public
class
WapIndexEbookListVO
{
@ApiModelProperty
(
"id"
)
private
String
id
;
...
...
@@ -24,6 +20,4 @@ public class WapIndexEbookListVO {
private
String
summary
;
@ApiModelProperty
(
"pdf"
)
private
String
pdf
;
@ApiModelProperty
(
"最近年刊"
)
private
List
<
YearLibrary
>
yearList
;
}
com.zrqx.resource/src/main/java/com/zrqx/resource/wap/controller/ebook/WapEbookController.java
浏览文件 @
b06da08c
...
...
@@ -11,10 +11,12 @@ import org.springframework.web.bind.annotation.RestController;
import
com.zrqx.core.constant.resource.ResourceRequestPath
;
import
com.zrqx.core.form.resource.bg.QueryResourceRelationForm
;
import
com.zrqx.core.form.resource.fg.articlelibrary.FgQueryArticleLibraryForm
;
import
com.zrqx.core.model.resource.year.YearLibrary
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.vo.resource.ResourceRelationVo
;
import
com.zrqx.core.vo.resource.fg.WapIndexListVO
;
import
com.zrqx.core.vo.resource.fg.articlelibrary.FgArticleLibraryListVO
;
import
com.zrqx.core.vo.resource.fg.ebook.FgEbookListVO
;
import
com.zrqx.core.vo.resource.fg.ebook.FgEbookVO
;
...
...
@@ -23,6 +25,7 @@ import com.zrqx.resource.bg.service.ResourceRelationService;
import
com.zrqx.resource.fg.service.articlelibrary.FgArticleLibraryService
;
import
com.zrqx.resource.fg.service.ebook.FgEbookService
;
import
com.zrqx.resource.wap.service.WapBookService
;
import
com.zrqx.resource.wap.service.WapYearLibraryService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -48,13 +51,21 @@ public class WapEbookController {
private
ResourceRelationService
resourceRelationService
;
@Autowired
private
FgEbookService
ebookservice
;
@Autowired
private
WapYearLibraryService
yearLibraryService
;
@ApiOperation
(
"首页最新上架"
)
@GetMapping
(
ResourceRequestPath
.
PAGE
)
public
CallBack
<
List
<
WapIndexEbookListVO
>>
getBookList
(
String
oid
)
{
List
<
WapIndexEbookListVO
>
list
=
bookservice
.
queryMainBody
(
oid
);
return
CallBack
.
success
(
list
);
@GetMapping
(
ResourceRequestPath
.
INDEX
)
public
CallBack
<
WapIndexListVO
>
getBookList
(
String
oid
)
{
WapIndexListVO
vo
=
new
WapIndexListVO
();
//查询最新杂志
List
<
WapIndexEbookListVO
>
bookList
=
bookservice
.
queryMainBody
(
oid
);
//查询最近年
List
<
YearLibrary
>
yearList
=
yearLibraryService
.
queryYear
();
vo
.
setBookList
(
bookList
);
vo
.
setYearList
(
yearList
);
return
CallBack
.
success
(
vo
);
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/wap/mapper/WapBookMapper.java
浏览文件 @
b06da08c
...
...
@@ -67,7 +67,7 @@ public interface WapBookMapper extends BaseMapper<Book> {
+
"<if test = 'mainBody != null' >"
+
"and bb.mainBody = #{mainBody} "
+
"</if>"
+
" order by bb.uploadTime desc"
+
" order by bb.uploadTime desc
LIMIT 4
"
+
"</script>"
)
List
<
WapIndexEbookListVO
>
queryMainBody
(
String
oid
);
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/wap/mapper/WapYearLibraryMapper.java
0 → 100644
浏览文件 @
b06da08c
package
com
.
zrqx
.
resource
.
wap
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.resource.year.YearLibrary
;
/**
* 年份库
* @author rjc
* @date 2019年9月10日上午11:41:37
*/
public
interface
WapYearLibraryMapper
extends
BaseMapper
<
YearLibrary
>
{
@Select
(
"<script>"
+
"select bb.id,bb.name,DATE_FORMAT(bb.uploadTime,'%Y-%m-%d') uploadTime "
+
"FROM res_year_library bb WHERE bb.status = 1 "
+
" order by bb.uploadTime desc LIMIT 3"
+
"</script>"
)
List
<
YearLibrary
>
queryYear
();
}
com.zrqx.resource/src/main/java/com/zrqx/resource/wap/service/WapYearLibrarySerivceImpl.java
0 → 100644
浏览文件 @
b06da08c
package
com
.
zrqx
.
resource
.
wap
.
service
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.resource.year.YearLibrary
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.resource.wap.mapper.WapYearLibraryMapper
;
/**
* 年份库
* @author rjc
* @date 2019年9月10日上午11:42:19
*/
@Service
public
class
WapYearLibrarySerivceImpl
extends
BaseServiceImpl
<
YearLibrary
,
String
>
implements
WapYearLibraryService
{
@Autowired
private
WapYearLibraryMapper
mapper
;
@Override
public
BaseMapper
<
YearLibrary
>
getMapper
()
{
return
mapper
;
}
@Override
public
List
<
YearLibrary
>
queryYear
()
{
// TODO Auto-generated method stub
return
mapper
.
queryYear
();
}
}
com.zrqx.resource/src/main/java/com/zrqx/resource/wap/service/WapYearLibraryService.java
0 → 100644
浏览文件 @
b06da08c
package
com
.
zrqx
.
resource
.
wap
.
service
;
import
java.util.List
;
import
com.zrqx.core.model.resource.year.YearLibrary
;
import
com.zrqx.core.service.BaseService
;
/**
* 年份库
* @author rjc
* @date 2019年9月10日上午11:42:09
*/
public
interface
WapYearLibraryService
extends
BaseService
<
YearLibrary
,
String
>{
List
<
YearLibrary
>
queryYear
();
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论