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
253fbd90
Commit
253fbd90
authored
Aug 01, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 欢迎语可添加数量上限调整为50条
parent
4fdaff72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
TabHaobanWelcomeMapper.java
...ban/manage/service/dao/mapper/TabHaobanWelcomeMapper.java
+1
-1
WelcomeServiceImpl.java
...aoban/manage/service/service/impl/WelcomeServiceImpl.java
+1
-1
TabHaobanWelcomeMapper.xml
...vice/src/main/resources/mapper/TabHaobanWelcomeMapper.xml
+3
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanWelcomeMapper.java
View file @
253fbd90
...
@@ -53,7 +53,7 @@ public interface TabHaobanWelcomeMapper {
...
@@ -53,7 +53,7 @@ public interface TabHaobanWelcomeMapper {
* @author : YongEn
* @author : YongEn
* @date : 2022/2/10
* @date : 2022/2/10
*/
*/
long
countByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
long
countByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"type"
)
Integer
type
);
/**
/**
* 条件查询欢迎语配置
* 条件查询欢迎语配置
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WelcomeServiceImpl.java
View file @
253fbd90
...
@@ -140,7 +140,7 @@ public class WelcomeServiceImpl implements WelcomeService {
...
@@ -140,7 +140,7 @@ public class WelcomeServiceImpl implements WelcomeService {
private
String
saveWelcomeCheck
(
SaveWelcomeBO
bo
)
{
private
String
saveWelcomeCheck
(
SaveWelcomeBO
bo
)
{
// 校验欢迎语数量、适用部门、适用员工数量
// 校验欢迎语数量、适用部门、适用员工数量
long
count
=
welcomeMapper
.
countByWxEnterpriseId
(
bo
.
getWxEnterpriseId
());
long
count
=
welcomeMapper
.
countByWxEnterpriseId
(
bo
.
getWxEnterpriseId
()
,
bo
.
getType
()
);
if
(
count
>=
WELCOME_LIMIT
)
{
if
(
count
>=
WELCOME_LIMIT
)
{
return
"欢迎语条目超过限制"
;
return
"欢迎语条目超过限制"
;
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/TabHaobanWelcomeMapper.xml
View file @
253fbd90
...
@@ -134,6 +134,9 @@
...
@@ -134,6 +134,9 @@
from tab_haoban_welcome
from tab_haoban_welcome
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and status_flag = 1
and status_flag = 1
<if
test=
"type != null"
>
and `type` = #{type}
</if>
</select>
</select>
<select
id=
"listAllWelcome"
resultMap=
"BaseResultMap"
>
<select
id=
"listAllWelcome"
resultMap=
"BaseResultMap"
>
...
...
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