Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
EncryptedFileSystem
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhangshuang
EncryptedFileSystem
Commits
0451e7aa
提交
0451e7aa
authored
3月 27, 2020
作者:
xc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xc
上级
dae9a487
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
3 行删除
+29
-3
NoticeController.java
...in/java/com/zjty/efs/bus/controller/NoticeController.java
+1
-1
Notice.java
efs-bus/src/main/java/com/zjty/efs/bus/entity/Notice.java
+1
-1
AttentionService.java
.../main/java/com/zjty/efs/bus/service/AttentionService.java
+25
-0
AttentionServiceImpl.java
...a/com/zjty/efs/bus/service/impl/AttentionServiceImpl.java
+1
-0
NoticeServiceImpl.java
...java/com/zjty/efs/bus/service/impl/NoticeServiceImpl.java
+1
-1
没有找到文件。
efs-bus/src/main/java/com/zjty/efs/bus/controller/NoticeController.java
浏览文件 @
0451e7aa
...
@@ -60,7 +60,7 @@ public class NoticeController {
...
@@ -60,7 +60,7 @@ public class NoticeController {
}
}
@GetMapping
(
"/getNoticeList"
)
@GetMapping
(
"/getNoticeList"
)
@ApiOperation
(
value
=
"获取通知列表接口"
,
notes
=
"获取列表,type为通知类型,接收 0,发送 1,草稿 2
,消息提醒 0
"
)
@ApiOperation
(
value
=
"获取通知列表接口"
,
notes
=
"获取列表,type为通知类型,接收 0,发送 1,草稿 2"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"user"
,
value
=
"当前用户名称"
,
paramType
=
"query"
,
required
=
true
,
example
=
"account"
,
dataType
=
"int"
),
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"user"
,
value
=
"当前用户名称"
,
paramType
=
"query"
,
required
=
true
,
example
=
"account"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"type"
,
value
=
"通知类型"
,
paramType
=
"query"
,
required
=
true
,
example
=
"0"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"type"
,
value
=
"通知类型"
,
paramType
=
"query"
,
required
=
true
,
example
=
"0"
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"页码"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
),
@ApiImplicitParam
(
name
=
"pageNum"
,
value
=
"页码"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
),
...
...
efs-bus/src/main/java/com/zjty/efs/bus/entity/Notice.java
浏览文件 @
0451e7aa
...
@@ -94,7 +94,7 @@ public class Notice {
...
@@ -94,7 +94,7 @@ public class Notice {
/**
/**
* 是否推送短信 是 0,否 1
* 是否推送短信 是 0,否 1
*/
*/
@ApiModelProperty
(
value
=
"note"
,
example
=
"
0
"
,
dataType
=
"int"
,
name
=
"是否推送短信"
)
@ApiModelProperty
(
value
=
"note"
,
example
=
"
false
"
,
dataType
=
"int"
,
name
=
"是否推送短信"
)
@Column
(
name
=
"note"
)
@Column
(
name
=
"note"
)
private
int
note
;
private
int
note
;
...
...
efs-bus/src/main/java/com/zjty/efs/bus/service/AttentionService.java
浏览文件 @
0451e7aa
...
@@ -6,8 +6,33 @@ import com.zjty.efs.bus.entity.Paging;
...
@@ -6,8 +6,33 @@ import com.zjty.efs.bus.entity.Paging;
import
java.util.List
;
import
java.util.List
;
public
interface
AttentionService
{
public
interface
AttentionService
{
/**
* 获取消息提醒列表
* @param userId 当前登录用户编号
* @param pageNum 页码
* @param pageSize 每页条数
* @return List<Paging></>
*/
Paging
<
Attention
>
getAttentionList
(
String
userId
,
int
pageNum
,
int
pageSize
);
Paging
<
Attention
>
getAttentionList
(
String
userId
,
int
pageNum
,
int
pageSize
);
/**
* 添加消息提醒
* @param attention 消息提醒实体
* @return
*/
boolean
addAttention
(
Attention
attention
);
boolean
addAttention
(
Attention
attention
);
/**
* 修改消息提醒为已读
* @param attentions 消息提醒实体列表
* @return
*/
boolean
updateStatus
(
List
<
Attention
>
attentions
);
boolean
updateStatus
(
List
<
Attention
>
attentions
);
/**
* 消息提醒红点
* @param userId 当前登录用户编号
* @return
*/
boolean
getRedDot
(
String
userId
);
boolean
getRedDot
(
String
userId
);
}
}
efs-bus/src/main/java/com/zjty/efs/bus/service/impl/AttentionServiceImpl.java
浏览文件 @
0451e7aa
...
@@ -38,6 +38,7 @@ public class AttentionServiceImpl implements AttentionService {
...
@@ -38,6 +38,7 @@ public class AttentionServiceImpl implements AttentionService {
}
}
@Override
@Override
@Transactional
public
boolean
addAttention
(
Attention
attention
)
{
public
boolean
addAttention
(
Attention
attention
)
{
try
{
try
{
attentionDao
.
save
(
attention
);
attentionDao
.
save
(
attention
);
...
...
efs-bus/src/main/java/com/zjty/efs/bus/service/impl/NoticeServiceImpl.java
浏览文件 @
0451e7aa
...
@@ -67,7 +67,7 @@ public class NoticeServiceImpl implements NoticeService {
...
@@ -67,7 +67,7 @@ public class NoticeServiceImpl implements NoticeService {
notice1
.
setSender
(
notice
.
getSender
());
notice1
.
setSender
(
notice
.
getSender
());
notice1
.
setStatus
(
notice
.
getStatus
());
notice1
.
setStatus
(
notice
.
getStatus
());
notice1
.
setUpdateTime
(
notice
.
getUpdateTime
());
notice1
.
setUpdateTime
(
notice
.
getUpdateTime
());
notice1
.
setUnit
(
notice
.
getUnit
());
notice1
.
setUnit
(
userDo1
.
getUnit
());
noticeDao
.
save
(
notice1
);
noticeDao
.
save
(
notice1
);
String
data1
=
"["
+
userDo1
.
getUnit
()
+
"]["
+
userDo1
.
getDepartment
()
+
"]的["
+
userDo1
.
getName
()
String
data1
=
"["
+
userDo1
.
getUnit
()
+
"]["
+
userDo1
.
getDepartment
()
+
"]的["
+
userDo1
.
getName
()
+
"]收到了来自["
+
userDo
.
getUnit
()
+
"]["
+
userDo
.
getDepartment
()
+
"]的["
+
userDo
.
getName
()
+
"]收到了来自["
+
userDo
.
getUnit
()
+
"]["
+
userDo
.
getDepartment
()
+
"]的["
+
userDo
.
getName
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论