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
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
haoban3.0
haoban-manage3.0
Commits
2179eadb
Commit
2179eadb
authored
Oct 26, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
欢迎语条数限制
parent
794a8763
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
WelcomeServiceImpl.java
...aoban/manage/service/service/impl/WelcomeServiceImpl.java
+10
-8
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WelcomeServiceImpl.java
View file @
2179eadb
...
@@ -140,15 +140,17 @@ public class WelcomeServiceImpl implements WelcomeService {
...
@@ -140,15 +140,17 @@ public class WelcomeServiceImpl implements WelcomeService {
private
String
saveWelcomeCheck
(
SaveWelcomeBO
bo
)
{
private
String
saveWelcomeCheck
(
SaveWelcomeBO
bo
)
{
// 校验欢迎语数量、适用部门、适用员工数量
// 校验欢迎语数量、适用部门、适用员工数量
long
count
=
welcomeMapper
.
countByWxEnterpriseId
(
bo
.
getWxEnterpriseId
(),
bo
.
getType
());
if
(
null
==
bo
.
getWelcomeId
())
{
if
(
count
>=
WELCOME_LIMIT
)
{
long
count
=
welcomeMapper
.
countByWxEnterpriseId
(
bo
.
getWxEnterpriseId
(),
bo
.
getType
());
if
(
HmWelcomeType
.
NORMAL
.
getCode
().
equals
(
bo
.
getType
())){
if
(
count
>=
WELCOME_LIMIT
)
{
return
"普通欢迎语最多可创建50条"
;
if
(
HmWelcomeType
.
NORMAL
.
getCode
().
equals
(
bo
.
getType
())){
}
return
"普通欢迎语最多可创建50条"
;
if
(
HmWelcomeType
.
SPECIAL
.
getCode
().
equals
(
bo
.
getType
())){
}
return
"特殊欢迎语最多可创建50条"
;
if
(
HmWelcomeType
.
SPECIAL
.
getCode
().
equals
(
bo
.
getType
())){
return
"特殊欢迎语最多可创建50条"
;
}
return
"欢迎语条目超过限制"
;
}
}
return
"欢迎语条目超过限制"
;
}
}
List
<
WelcomeSuitDepartmentBO
>
suitDepartmentList
=
bo
.
getSuitDepartmentAddList
();
List
<
WelcomeSuitDepartmentBO
>
suitDepartmentList
=
bo
.
getSuitDepartmentAddList
();
if
(
CollectionUtils
.
isNotEmpty
(
suitDepartmentList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
suitDepartmentList
))
{
...
...
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