Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
aroad_aqsc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许言琪
aroad_aqsc
Commits
4a3d4c47
提交
4a3d4c47
authored
5月 06, 2019
作者:
宋文杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(info information): add i reported information
上级
68ac7a95
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
60 行增加
和
1 行删除
+60
-1
InfoInformationsController.java
...ad/module/info/controller/InfoInformationsController.java
+12
-1
InfoInformationsMapper.java
...laxy/aroad/module/info/mapper/InfoInformationsMapper.java
+10
-0
InfoInformationsService.java
...xy/aroad/module/info/service/InfoInformationsService.java
+9
-0
InfoInformationsServiceImpl.java
...module/info/service/impl/InfoInformationsServiceImpl.java
+12
-0
InfoInformationsMapper.xml
src/main/resources/mapper/info/InfoInformationsMapper.xml
+17
-0
没有找到文件。
src/main/java/com/elephant/framework/galaxy/aroad/module/info/controller/InfoInformationsController.java
浏览文件 @
4a3d4c47
...
@@ -27,7 +27,7 @@ public class InfoInformationsController extends BaseController {
...
@@ -27,7 +27,7 @@ public class InfoInformationsController extends BaseController {
private
final
InfoInformationsService
infoInformationsService
;
private
final
InfoInformationsService
infoInformationsService
;
/**
/**
* 分页查询
* 分页查询
上报给我的信息
* @param page 分页对象
* @param page 分页对象
* @param receiverId 接收人id
* @param receiverId 接收人id
* @return
* @return
...
@@ -37,6 +37,17 @@ public class InfoInformationsController extends BaseController {
...
@@ -37,6 +37,17 @@ public class InfoInformationsController extends BaseController {
return
new
R
<>(
infoInformationsService
.
getReportedToMe
(
page
,
receiverId
));
return
new
R
<>(
infoInformationsService
.
getReportedToMe
(
page
,
receiverId
));
}
}
/**
* 分页查询我上报的信息
* @param page 分页对象
* @param reporterId 上报人id
* @return
*/
@GetMapping
(
"/iReported"
)
public
R
getIReported
(
Page
page
,
Integer
reporterId
)
{
return
new
R
<>(
infoInformationsService
.
getIReported
(
page
,
reporterId
));
}
/**
/**
* 通过id查询信息表
* 通过id查询信息表
...
...
src/main/java/com/elephant/framework/galaxy/aroad/module/info/mapper/InfoInformationsMapper.java
浏览文件 @
4a3d4c47
...
@@ -32,4 +32,14 @@ public interface InfoInformationsMapper extends BaseMapper<InfoInformations> {
...
@@ -32,4 +32,14 @@ public interface InfoInformationsMapper extends BaseMapper<InfoInformations> {
* @Date: 2019/5/5
* @Date: 2019/5/5
*/
*/
IPage
<
InfoDto
>
getReportedToMe
(
Page
page
,
Integer
receiverId
);
IPage
<
InfoDto
>
getReportedToMe
(
Page
page
,
Integer
receiverId
);
/**
* @Description: 查询我上报的信息
* @Param: [page, reporterId]
* @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto>
* @Author: songwenjie
* @Date: 2019/5/6
*/
IPage
<
InfoDto
>
getIReported
(
Page
page
,
Integer
reporterId
);
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/info/service/InfoInformationsService.java
浏览文件 @
4a3d4c47
...
@@ -36,4 +36,13 @@ public interface InfoInformationsService extends IService<InfoInformations> {
...
@@ -36,4 +36,13 @@ public interface InfoInformationsService extends IService<InfoInformations> {
* @Date: 2019/5/5
* @Date: 2019/5/5
*/
*/
public
IPage
<
InfoDto
>
getReportedToMe
(
Page
page
,
Integer
receiverId
);
public
IPage
<
InfoDto
>
getReportedToMe
(
Page
page
,
Integer
receiverId
);
/**
* @Description: 分页查询我上报的信息
* @Param: [page, reporterId]
* @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto>
* @Author: songwenjie
* @Date: 2019/5/6
*/
public
IPage
<
InfoDto
>
getIReported
(
Page
page
,
Integer
reporterId
);
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/info/service/impl/InfoInformationsServiceImpl.java
浏览文件 @
4a3d4c47
...
@@ -88,4 +88,16 @@ public class InfoInformationsServiceImpl extends ServiceImpl<InfoInformationsMap
...
@@ -88,4 +88,16 @@ public class InfoInformationsServiceImpl extends ServiceImpl<InfoInformationsMap
IPage
<
InfoDto
>
infos
=
baseMapper
.
getReportedToMe
(
page
,
receiverId
);
IPage
<
InfoDto
>
infos
=
baseMapper
.
getReportedToMe
(
page
,
receiverId
);
return
infos
;
return
infos
;
}
}
/**
* @Description: 分页查询我上报的信息
* @Param: [page, reporterId]
* @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto>
* @Author: songwenjie
* @Date: 2019/5/6
*/
public
IPage
<
InfoDto
>
getIReported
(
Page
page
,
Integer
reporterId
){
IPage
<
InfoDto
>
infos
=
baseMapper
.
getIReported
(
page
,
reporterId
);
return
infos
;
}
}
}
src/main/resources/mapper/info/InfoInformationsMapper.xml
浏览文件 @
4a3d4c47
...
@@ -52,4 +52,21 @@
...
@@ -52,4 +52,21 @@
on i.info_id = r.info_id
on i.info_id = r.info_id
where r.receiver_id = #{receiverId}
where r.receiver_id = #{receiverId}
</select>
</select>
<!--我上报的信息-->
<select
id=
"getIReported"
resultMap=
"infoMap"
>
select
i.info_id,i.template_id,i.info_title,i.info_content,i.info_remark,i.reporter_id,i.reporter,i.reporting_time,
t.template_name,t.template_type,
r.receiver_id,group_concat(r.receiver_name) as receiver_name
from `info_templates` t
inner join
info_informations i
on t.template_id = i.template_id
inner join
info_receivers r
on i.info_id = r.info_id
where i.reporter_id = #{reporterId}
group by i.info_id
</select>
</mapper>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论