Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
faaff7e2
Commit
faaff7e2
authored
Mar 10, 2022
by
xugaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化更新逻辑
parent
177109d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
WelcomeServiceImpl.java
...aoban/manage/service/service/impl/WelcomeServiceImpl.java
+4
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WelcomeServiceImpl.java
View file @
faaff7e2
...
...
@@ -123,7 +123,7 @@ public class WelcomeServiceImpl implements WelcomeService {
private
TabWelcome
addWelcome
(
SaveWelcomeBO
bo
)
{
if
(
bo
.
getDefaultWelcomeFlag
()
==
1
&&
this
.
existDefaultWelcome
(
bo
.
getWxEnterpriseId
()))
{
throw
new
RuntimeException
(
"已存在全体成员欢迎语, 无法新增多条"
);
throw
new
RuntimeException
(
"已存在全体成员欢迎语, 无法新增多条
-新增逻辑
"
);
}
TabWelcome
welcome
=
new
TabWelcome
();
welcome
.
setWelcomeId
(
StringUtil
.
randomUUID
());
...
...
@@ -143,6 +143,9 @@ public class WelcomeServiceImpl implements WelcomeService {
}
private
TabWelcome
updateWelcome
(
TabWelcome
welcome
,
SaveWelcomeBO
bo
)
{
if
(
bo
.
getDefaultWelcomeFlag
()
==
0
&&
this
.
existDefaultWelcome
(
bo
.
getWxEnterpriseId
()))
{
throw
new
RuntimeException
(
"已存在全体成员欢迎语, 无法新增多条-更新逻辑"
);
}
welcome
.
setTitle
(
bo
.
getTitle
());
welcome
.
setWelcomeContent
(
bo
.
getWelcomeContent
());
welcome
.
setUpdateTime
(
new
Date
());
...
...
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