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
947b85f0
Commit
947b85f0
authored
Apr 06, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除分组增加校验
parent
6b00046f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
HaoBanErrCode.java
...om/gic/haoban/manage/service/errorcode/HaoBanErrCode.java
+1
-0
HmGroupApiServiceImpl.java
...ge/service/service/out/impl/hm/HmGroupApiServiceImpl.java
+8
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/errorcode/HaoBanErrCode.java
View file @
947b85f0
...
@@ -9,6 +9,7 @@ public enum HaoBanErrCode {
...
@@ -9,6 +9,7 @@ public enum HaoBanErrCode {
ERR_10012
(
"10012"
,
"企业微信不存在"
),
ERR_10012
(
"10012"
,
"企业微信不存在"
),
ERR_OTHER
(
"9999"
,
"业务异常"
),
ERR_OTHER
(
"9999"
,
"业务异常"
),
ERR_100033
(
"100033"
,
"活码分组已经被关联,不可删除"
),
ERR_100033
(
"100033"
,
"活码分组已经被关联,不可删除"
),
ERR_100034
(
"100034"
,
"无法删除该分组"
),
ERR_2000
(
"2000"
,
"企微接口调用次数限制-月"
),
ERR_2000
(
"2000"
,
"企微接口调用次数限制-月"
),
ERR_2001
(
"2001"
,
"企微接口调用次数限制-天"
),
ERR_2001
(
"2001"
,
"企微接口调用次数限制-天"
),
ERR_2002
(
"2002"
,
"企微接口调用次数限制-小时"
),
ERR_2002
(
"2002"
,
"企微接口调用次数限制-小时"
),
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmGroupApiServiceImpl.java
View file @
947b85f0
...
@@ -30,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -30,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -181,6 +182,13 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
...
@@ -181,6 +182,13 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
if
(
groupSettingBo
.
getReferNum
()
!=
null
&&
groupSettingBo
.
getReferNum
()
>
0
)
{
if
(
groupSettingBo
.
getReferNum
()
!=
null
&&
groupSettingBo
.
getReferNum
()
>
0
)
{
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_100033
.
getCode
(),
HaoBanErrCode
.
ERR_100033
.
getMsg
());
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_100033
.
getCode
(),
HaoBanErrCode
.
ERR_100033
.
getMsg
());
}
}
List
<
HmQrcodeGroupNumBO
>
qrcodeGroupNumBoList
=
qrcodeService
.
getGroupIdNumByEnterpriseId
(
groupSettingBo
.
getWxEnterpriseId
(),
groupSettingBo
.
getEnterpriseId
(),
Arrays
.
asList
(
groupDTO
.
getGroupId
()),
null
);
if
(
CollectionUtils
.
isNotEmpty
(
qrcodeGroupNumBoList
))
{
if
(
qrcodeGroupNumBoList
.
get
(
0
).
getNum
()
>
0
)
{
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_100034
.
getCode
(),
HaoBanErrCode
.
ERR_100034
.
getMsg
());
}
}
groupService
.
deleteGroupSetting
(
groupDTO
);
groupService
.
deleteGroupSetting
(
groupDTO
);
return
ServiceResponse
.
success
(
Boolean
.
TRUE
);
return
ServiceResponse
.
success
(
Boolean
.
TRUE
);
}
}
...
...
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