Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-enterprise
Commits
35b2e8a1
Commit
35b2e8a1
authored
May 18, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
3d84b592
4e38dfcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
ProjectItemServiceImpl.java
...m/gic/enterprise/service/impl/ProjectItemServiceImpl.java
+2
-0
PushMessageApiServiceImpl.java
...erprise/service/outer/impl/PushMessageApiServiceImpl.java
+8
-1
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/impl/ProjectItemServiceImpl.java
View file @
35b2e8a1
...
...
@@ -12,6 +12,7 @@ import com.github.pagehelper.PageHelper;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -37,6 +38,7 @@ public class ProjectItemServiceImpl implements ProjectItemService {
public
Integer
save
(
ProjectItemDTO
copy
)
{
TabProjectItem
projectItem
=
EntityUtil
.
changeEntityByJSON
(
TabProjectItem
.
class
,
copy
);
projectItem
.
setStatus
(
GlobalInfo
.
DATA_STATUS_NORMAL
);
projectItem
.
setCreateTime
(
new
Date
());
tabProjectItemMapper
.
insertSelective
(
projectItem
);
return
projectItem
.
getProjectItemId
();
}
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/PushMessageApiServiceImpl.java
View file @
35b2e8a1
...
...
@@ -77,6 +77,10 @@ public class PushMessageApiServiceImpl implements PushMessageApiService {
@Override
public
ServiceResponse
<
Integer
>
deletePushType
(
Integer
pushTypeId
)
{
TabPushClassify
pushType
=
this
.
pushTypeService
.
getById
(
pushTypeId
);
if
(
"系统消息"
.
equals
(
pushType
.
getClassifyName
())){
return
ServiceResponse
.
success
();
}
int
i
=
this
.
pushTypeService
.
deletePushType
(
pushTypeId
);
return
ServiceResponse
.
success
(
i
);
}
...
...
@@ -206,7 +210,10 @@ public class PushMessageApiServiceImpl implements PushMessageApiService {
public
ServiceResponse
<
Integer
>
readMessage
(
Integer
messageId
)
{
int
i
=
this
.
pushUserMessageService
.
readMessage
(
messageId
);
if
(
i
>
0
){
this
.
pushMessageService
.
readCount
(
messageId
);
TabPushUserMessage
message
=
this
.
pushUserMessageService
.
getById
(
messageId
);
if
(
message
!=
null
&&
message
.
getMessageId
()
!=
null
){
this
.
pushMessageService
.
readCount
(
message
.
getMessageId
());
}
}
return
ServiceResponse
.
success
(
i
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment