Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
renwei
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
renwei
Commits
b18d41be
提交
b18d41be
authored
6月 09, 2020
作者:
chaoyanjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
175bf3da
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
14 行删除
+18
-14
FgFooterController.java
...zrqx/sysuser/fg/controller/footer/FgFooterController.java
+5
-4
FgFooterMapper.java
...ava/com/zrqx/sysuser/fg/mapper/footer/FgFooterMapper.java
+7
-6
FgFooterService.java
...a/com/zrqx/sysuser/fg/service/footer/FgFooterService.java
+3
-2
FgFooterServiceImpl.java
...m/zrqx/sysuser/fg/service/footer/FgFooterServiceImpl.java
+3
-2
没有找到文件。
app/sysuser/src/main/java/com/zrqx/sysuser/fg/controller/footer/FgFooterController.java
浏览文件 @
b18d41be
...
...
@@ -14,6 +14,7 @@ import com.zrqx.core.util.page.PageParam;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.sysuser.commons.form.bg.FooterVo
;
import
com.zrqx.sysuser.commons.model.footer.Footer
;
import
com.zrqx.sysuser.commons.model.footer.FooterColumn
;
import
com.zrqx.sysuser.fg.service.footer.FgFooterService
;
import
io.swagger.annotations.Api
;
...
...
@@ -36,15 +37,15 @@ public class FgFooterController {
}
return
CallBack
.
success
(
footerService
.
queryAll
(
pageParam
));
}
@ApiOperation
(
value
=
"查询
页脚"
,
notes
=
"按条件分页查询页脚
"
)
@ApiOperation
(
value
=
"查询
栏目"
,
notes
=
"查询所有栏目内容
"
)
@GetMapping
(
value
=
"/list"
)
public
CallBack
<
List
<
Footer
Vo
>>
getList
(){
public
CallBack
<
List
<
Footer
Column
>>
getList
(){
return
CallBack
.
success
(
footerService
.
getList
());
}
@ApiOperation
(
value
=
"查询页脚
"
,
notes
=
"根据页脚ID查询一个页脚
"
)
@ApiOperation
(
value
=
"查询页脚
内容"
,
notes
=
"根据栏目ID查询一个内容
"
)
@GetMapping
(
value
=
"/{oid}"
)
public
CallBack
<
FooterVo
>
get
(
@ApiParam
(
value
=
"页脚ID"
,
required
=
true
)
@PathVariable
Integer
oid
){
public
CallBack
<
List
<
FooterVo
>
>
get
(
@ApiParam
(
value
=
"页脚ID"
,
required
=
true
)
@PathVariable
Integer
oid
){
return
CallBack
.
success
(
footerService
.
selectById
(
oid
));
}
}
app/sysuser/src/main/java/com/zrqx/sysuser/fg/mapper/footer/FgFooterMapper.java
浏览文件 @
b18d41be
...
...
@@ -9,6 +9,7 @@ import org.apache.ibatis.annotations.Select;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.sysuser.commons.form.bg.FooterVo
;
import
com.zrqx.sysuser.commons.model.footer.Footer
;
import
com.zrqx.sysuser.commons.model.footer.FooterColumn
;
/**
* 前台-页脚
* @author ycw
...
...
@@ -23,15 +24,14 @@ public interface FgFooterMapper extends BaseMapper<Footer>{
+
" sys_footer f left join sys_footer_column c "
+
" on f.columnId = c.id "
+
" where 1=1 "
+
" eq(
f
.id,id)"
+
" eq(
c
.id,id)"
+
"</script>"
)
FooterVo
selectById
(
@Param
(
"id"
)
Integer
oid
);
List
<
FooterVo
>
selectById
(
@Param
(
"id"
)
Integer
oid
);
@Select
(
"<script>"
+
" select f.*,c.name columnName from "
+
" sys_footer f left join sys_footer_column c "
+
" on f.columnId = c.id "
+
" select c.* from "
+
" sys_footer_column c "
+
"</script>"
)
List
<
Footer
Vo
>
getList
();
List
<
Footer
Column
>
getList
();
}
\ No newline at end of file
app/sysuser/src/main/java/com/zrqx/sysuser/fg/service/footer/FgFooterService.java
浏览文件 @
b18d41be
...
...
@@ -5,11 +5,12 @@ import java.util.List;
import
com.zrqx.core.service.BaseService
;
import
com.zrqx.sysuser.commons.form.bg.FooterVo
;
import
com.zrqx.sysuser.commons.model.footer.Footer
;
import
com.zrqx.sysuser.commons.model.footer.FooterColumn
;
public
interface
FgFooterService
extends
BaseService
<
Footer
,
Integer
>
{
FooterVo
selectById
(
Integer
oid
);
List
<
FooterVo
>
selectById
(
Integer
oid
);
List
<
Footer
Vo
>
getList
();
List
<
Footer
Column
>
getList
();
}
app/sysuser/src/main/java/com/zrqx/sysuser/fg/service/footer/FgFooterServiceImpl.java
浏览文件 @
b18d41be
...
...
@@ -9,6 +9,7 @@ import com.zrqx.core.mapper.BaseMapper;
import
com.zrqx.core.service.BaseServiceImpl
;
import
com.zrqx.sysuser.commons.form.bg.FooterVo
;
import
com.zrqx.sysuser.commons.model.footer.Footer
;
import
com.zrqx.sysuser.commons.model.footer.FooterColumn
;
import
com.zrqx.sysuser.fg.mapper.footer.FgFooterMapper
;
/**
* 前台-页脚
...
...
@@ -27,12 +28,12 @@ public class FgFooterServiceImpl extends BaseServiceImpl<Footer, Integer> implem
}
@Override
public
FooterVo
selectById
(
Integer
oid
)
{
public
List
<
FooterVo
>
selectById
(
Integer
oid
)
{
return
mapper
.
selectById
(
oid
);
}
@Override
public
List
<
Footer
Vo
>
getList
()
{
public
List
<
Footer
Column
>
getList
()
{
return
mapper
.
getList
();
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论