Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rszt
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
rszt
Commits
32172a6a
提交
32172a6a
authored
12月 15, 2020
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
f2c9547d
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
48 行增加
和
32 行删除
+48
-32
ImageLibrarySerivceImpl.java
...urce/bg/service/imagelibrary/ImageLibrarySerivceImpl.java
+0
-11
FgDiyTypeController.java
...x/resource/fg/controller/diytype/FgDiyTypeController.java
+8
-10
FgEbookMapper.java
...java/com/zrqx/resource/fg/mapper/ebook/FgEbookMapper.java
+1
-2
FgResourceRelationMapper.java
.../fg/mapper/resourcerelation/FgResourceRelationMapper.java
+16
-0
FgResourceLibraryService.java
...esource/fg/service/resource/FgResourceLibraryService.java
+6
-3
FgResourceLibraryServiceImpl.java
...rce/fg/service/resource/FgResourceLibraryServiceImpl.java
+17
-6
没有找到文件。
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/imagelibrary/ImageLibrarySerivceImpl.java
浏览文件 @
32172a6a
package
com
.
zrqx
.
resource
.
bg
.
service
.
imagelibrary
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -10,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
com.zrqx.core.enums.resource.LibraryStatusEnum
;
import
com.zrqx.core.enums.resource.PriceOptionEnum
;
import
com.zrqx.core.exception.ParameterValidateException
;
import
com.zrqx.core.form.resource.bg.QueryResourceForPoPForm
;
import
com.zrqx.core.form.resource.bg.imagelibrary.QueryImageLibraryForm
;
...
...
@@ -22,10 +20,7 @@ import com.zrqx.core.service.BaseServiceImpl;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.vo.resource.imagelibrary.ImageLibraryListVO
;
import
com.zrqx.resource.bg.mapper.ResourceRelationMapper
;
import
com.zrqx.resource.bg.mapper.imagelibrary.ImageLibraryDiyTypeMapper
;
import
com.zrqx.resource.bg.mapper.imagelibrary.ImageLibraryMapper
;
import
com.zrqx.resource.bg.mapper.record.RecordMapper
;
import
tk.mybatis.mapper.entity.Example
;
...
...
@@ -37,12 +32,6 @@ public class ImageLibrarySerivceImpl extends BaseServiceImpl<ImageLibrary,String
@Autowired
private
ImageLibraryMapper
mapper
;
@Autowired
private
ImageLibraryDiyTypeMapper
idrMapper
;
@Autowired
private
RecordMapper
recordMapper
;
@Autowired
private
ResourceRelationMapper
resourceRelationMapper
;
@Override
public
BaseMapper
<
ImageLibrary
>
getMapper
()
{
return
mapper
;
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/controller/diytype/FgDiyTypeController.java
浏览文件 @
32172a6a
package
com
.
zrqx
.
resource
.
fg
.
controller
.
diytype
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.List
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -14,18 +9,21 @@ import org.springframework.web.bind.annotation.RestController;
import
com.github.pagehelper.PageHelper
;
import
com.zrqx.core.constant.resource.ResourceRequestPath
;
import
com.zrqx.core.enums.ResponseCodeEnum
;
import
com.zrqx.core.enums.resource.diytype.DiyTypeStatusEnum
;
import
com.zrqx.core.
exception.ParameterValidateException
;
import
com.zrqx.core.
form.resource.fg.resource.FgQueryLibraryForm
;
import
com.zrqx.core.model.resource.diytype.DiyType
;
import
com.zrqx.core.util.bean.Copy
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.vo.resource.diytype.DiyTypeVO
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeRelationListVo
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeVo
;
import
com.zrqx.core.vo.resource.fg.imagelibrary.FgImageLibraryVO
;
import
com.zrqx.resource.fg.service.diytype.FgDiyTypeService
;
import
com.zrqx.resource.fg.service.resource.FgResourceLibraryService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
tk.mybatis.mapper.entity.Example
;
/**
* 前台-分类-controller
* @author lw
...
...
@@ -85,7 +83,7 @@ public class FgDiyTypeController {
@ApiOperation
(
value
=
"查询精彩瞬间"
,
notes
=
"查询精彩瞬间"
)
@GetMapping
(
value
=
ResourceRequestPath
.
LIST
)
public
CallBack
<
List
<
FgDiyType
Vo
>>
List
(
){
return
CallBack
.
success
(
fgResourceLibraryService
.
list
());
public
CallBack
<
List
<
FgDiyType
RelationListVo
>>
List
(
FgQueryLibraryForm
form
){
return
CallBack
.
success
(
fgResourceLibraryService
.
list
(
form
));
}
}
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/mapper/ebook/FgEbookMapper.java
浏览文件 @
32172a6a
...
...
@@ -7,11 +7,10 @@ import org.apache.ibatis.annotations.Param;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.form.resource.fg.articlelibrary.FgQueryArticleLibraryForm
;
import
com.zrqx.core.form.resource.fg.ebook.FgQueryOtherEbookForm
;
import
com.zrqx.core.form.resource.fg.ebook.FgQueryEbookForm
;
import
com.zrqx.core.form.resource.fg.ebook.FgQueryOtherEbookForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.resource.ebook.Ebook
;
import
com.zrqx.core.vo.resource.fg.articlelibrary.FgArticleLibraryListVO
;
import
com.zrqx.core.vo.resource.fg.ebook.FgEbookListVO
;
/**
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/mapper/resourcerelation/FgResourceRelationMapper.java
浏览文件 @
32172a6a
package
com
.
zrqx
.
resource
.
fg
.
mapper
.
resourcerelation
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.form.resource.fg.resource.FgQueryLibraryForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.resource.resourcerelation.ResourceRelation
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeRelationListVo
;
@Mapper
public
interface
FgResourceRelationMapper
extends
BaseMapper
<
ResourceRelation
>
{
@Select
(
"<script>"
+
"select distinct a.id,a.name,a.image "
+
"from res_resource_relation a left join res_Diy_Type_Relation ad "
+
" on a.id = ad.resId "
+
"where 1=1 "
+
"<if test='form.dtId != null'>"
+
"and ad.dtId = #{form.dtId}"
+
"</if>"
+
" order by a.sort asc"
+
"</script>"
)
List
<
FgDiyTypeRelationListVo
>
list
(
FgQueryLibraryForm
form
);
}
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/service/resource/FgResourceLibraryService.java
浏览文件 @
32172a6a
...
...
@@ -2,10 +2,13 @@ package com.zrqx.resource.fg.service.resource;
import
java.util.List
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeVo
;
import
com.zrqx.core.form.resource.fg.resource.FgQueryLibraryForm
;
import
com.zrqx.core.model.resource.resourcerelation.ResourceRelation
;
import
com.zrqx.core.service.BaseService
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeRelationListVo
;
public
interface
FgResourceLibraryService
{
public
interface
FgResourceLibraryService
extends
BaseService
<
ResourceRelation
,
String
>
{
List
<
FgDiyType
Vo
>
list
(
);
List
<
FgDiyType
RelationListVo
>
list
(
FgQueryLibraryForm
form
);
}
com.zrqx.resource/src/main/java/com/zrqx/resource/fg/service/resource/FgResourceLibraryServiceImpl.java
浏览文件 @
32172a6a
...
...
@@ -2,17 +2,28 @@ package com.zrqx.resource.fg.service.resource;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeVo
;
import
com.zrqx.core.form.resource.fg.resource.FgQueryLibraryForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.resource.resourcerelation.ResourceRelation
;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.core.vo.resource.fg.diytype.FgDiyTypeRelationListVo
;
import
com.zrqx.resource.fg.mapper.resourcerelation.FgResourceRelationMapper
;
@Service
public
class
FgResourceLibraryServiceImpl
implements
FgResourceLibraryService
{
public
class
FgResourceLibraryServiceImpl
extends
BaseServiceImpl
<
ResourceRelation
,
String
>
implements
FgResourceLibraryService
{
@Autowired
private
FgResourceRelationMapper
mapper
;
@Override
public
BaseMapper
<
ResourceRelation
>
getMapper
()
{
return
mapper
;
}
@Override
public
List
<
FgDiyType
Vo
>
list
(
)
{
// TODO Auto-generated method stub
return
null
;
public
List
<
FgDiyType
RelationListVo
>
list
(
FgQueryLibraryForm
form
)
{
List
<
FgDiyTypeRelationListVo
>
list
=
mapper
.
list
(
form
);
return
list
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论