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
50319394
Commit
50319394
authored
Jul 15, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分组操作提示
parent
31fc52a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+1
-1
HmGroupApiServiceImpl.java
...ge/service/service/out/impl/hm/HmGroupApiServiceImpl.java
+5
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
50319394
...
...
@@ -381,7 +381,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
log
.
info
(
"插入加好友日志"
);
wxUserAddLogService
.
updateMemberInfo
(
wxEnterpriseId
,
externalUserId
,
memberId
);
wxUserAddLogService
.
updateMemberInfo
(
wxEnterpriseId
,
externalUserId
,
memberId
,
null
);
}
/**
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmGroupApiServiceImpl.java
View file @
50319394
...
...
@@ -56,10 +56,10 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
public
ServiceResponse
<
Long
>
saveOrUpdateHmGroupSetting
(
HmGroupDTO
hmGroupDTO
)
{
log
.
info
(
"[saveOrUpdateHmGroupSetting] params:{}"
,
JSON
.
toJSONString
(
hmGroupDTO
));
if
(
StringUtils
.
isBlank
(
hmGroupDTO
.
getGroupName
()))
{
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
HaoBanErrCodeCommon
.
ERR_5
.
getMsg
()
);
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
"分组名称不存在"
);
}
if
(
StringUtils
.
equals
(
DEFAULT_GROUP_NAME
,
hmGroupDTO
.
getGroupName
()))
{
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_9
.
getCode
()
+
""
,
HaoBanErrCodeCommon
.
ERR_9
.
getMsg
()
);
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_9
.
getCode
()
+
""
,
"分组名称不可使用默认分组名称"
);
}
HmGroupInfoQO
groupInfoQo
=
new
HmGroupInfoQO
();
groupInfoQo
.
setGroupName
(
hmGroupDTO
.
getGroupName
());
...
...
@@ -71,19 +71,19 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
// insert
// check groupName unique
if
(
CollectionUtils
.
isNotEmpty
(
hmGroupSettingPage
.
getResult
()))
{
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
HaoBanErrCodeCommon
.
ERR_5
.
getMsg
()
);
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
"该分组名称已存在,请重新输入"
);
}
}
else
{
// update
if
(
CollectionUtils
.
isNotEmpty
(
hmGroupSettingPage
.
getResult
())
&&
hmGroupSettingPage
.
getTotalCount
()
>
1
)
{
// 名称重复
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
HaoBanErrCodeCommon
.
ERR_5
.
getMsg
()
);
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
"该分组名称已存在,请重新输入"
);
}
if
(
CollectionUtils
.
isNotEmpty
(
hmGroupSettingPage
.
getResult
())
&&
!
hmGroupSettingPage
.
getResult
().
get
(
0
).
getGroupId
().
equals
(
hmGroupDTO
.
getGroupId
()))
{
// 名称重复
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
HaoBanErrCodeCommon
.
ERR_5
.
getMsg
()
);
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_5
.
getCode
()
+
""
,
"该分组名称已存在,请重新输入"
);
}
HmGroupSettingBO
groupSettingBo
=
groupService
.
queryGroupSettingDetail
(
hmGroupDTO
.
getGroupId
());
if
(
groupSettingBo
==
null
)
{
...
...
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