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
55c76ee1
Commit
55c76ee1
authored
Aug 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员工具
parent
33478e0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+15
-7
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
55c76ee1
...
@@ -531,9 +531,9 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -531,9 +531,9 @@ public class WxEnterpriseInfoController extends WebBaseController {
@IgnoreLogin
@IgnoreLogin
@HttpLimit
@HttpLimit
@RequestMapping
(
"get-send-message-info"
)
@RequestMapping
(
"get-send-message-info"
)
public
HaobanResponse
getMessageMember
(
String
externalUserid
,
String
wxUserId
,
String
wxEnterpriseId
,
String
gicEnterpriseId
)
{
public
HaobanResponse
getMessageMember
(
String
externalUserid
,
String
staffId
,
String
wxEnterpriseId
,
String
gicEnterpriseId
)
{
logger
.
info
(
"会员工具传入参数:externalUserid:{},wxUserId:{},wxEnterpriseId:{},gicEnterpriseId:{}"
,
externalUserid
,
wxUser
Id
,
wxEnterpriseId
,
gicEnterpriseId
);
logger
.
info
(
"会员工具传入参数:externalUserid:{},wxUserId:{},wxEnterpriseId:{},gicEnterpriseId:{}"
,
externalUserid
,
staff
Id
,
wxEnterpriseId
,
gicEnterpriseId
);
if
(
StringUtils
.
isAnyBlank
(
externalUserid
,
wxUser
Id
,
wxEnterpriseId
))
{
if
(
StringUtils
.
isAnyBlank
(
externalUserid
,
staff
Id
,
wxEnterpriseId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
}
WxEnterpriseRelationDetailDTO
enterpriseBindInfo
=
wxEnterpriseRelatedApiService
.
getEnterpriseBindInfo
(
wxEnterpriseId
,
gicEnterpriseId
);
WxEnterpriseRelationDetailDTO
enterpriseBindInfo
=
wxEnterpriseRelatedApiService
.
getEnterpriseBindInfo
(
wxEnterpriseId
,
gicEnterpriseId
);
...
@@ -541,18 +541,26 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -541,18 +541,26 @@ public class WxEnterpriseInfoController extends WebBaseController {
logger
.
info
(
"企业不存在没有绑定,wxEnterpriseId:{}"
,
wxEnterpriseId
);
logger
.
info
(
"企业不存在没有绑定,wxEnterpriseId:{}"
,
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400002
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400002
);
}
}
StaffDTO
staffDTO
=
staffApiService
.
selectBy
UserIdAndEnterpriseId
(
wxUserId
,
wxEnterprise
Id
);
StaffDTO
staffDTO
=
staffApiService
.
selectBy
Id
(
staff
Id
);
if
(
staffDTO
==
null
)
{
if
(
staffDTO
==
null
)
{
logger
.
info
(
"查询到该员工,wxUserId:{}"
,
wxUserId
);
logger
.
info
(
"查询到该员工,wxUserId:{}"
,
staffId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400017
);
}
if
(!
staffDTO
.
getWxEnterpriseId
().
equals
(
wxEnterpriseId
))
{
logger
.
info
(
"查询到该员工,异常"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400017
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400017
);
}
}
String
staffId
=
staffDTO
.
getStaffId
();
ClerkMainStoreRelatedDTO
clerkMainStoreRelatedDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
);
ClerkMainStoreRelatedDTO
clerkMainStoreRelatedDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
);
if
(
clerkMainStoreRelatedDTO
==
null
)
{
if
(
clerkMainStoreRelatedDTO
==
null
)
{
logger
.
info
(
"未设置主门店,wxUserId:{}"
,
wxUser
Id
);
logger
.
info
(
"未设置主门店,wxUserId:{}"
,
staff
Id
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400021
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400021
);
}
}
//获取自建客户详情
//获取自建客户详情
WxEnterpriseQwDTO
qwInfo
=
this
.
wxEnterpriseApiService
.
getQwInfo
(
wxEnterpriseId
)
;
String
wxUserId
=
staffDTO
.
getWxUserId
()
;
if
(
qwInfo
.
needOpenUserIdDk
())
{
wxUserId
=
staffDTO
.
getWxOpenUseId
()
;
}
ExternalUserDTO
externalUserDTO
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserid
);
ExternalUserDTO
externalUserDTO
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserid
);
if
(
externalUserDTO
==
null
)
{
if
(
externalUserDTO
==
null
)
{
logger
.
info
(
"请先添加好友,企业微信未查询到该好友,externalUserid:{}"
,
externalUserid
);
logger
.
info
(
"请先添加好友,企业微信未查询到该好友,externalUserid:{}"
,
externalUserid
);
...
...
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