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
24c5f1ea
Commit
24c5f1ea
authored
Mar 16, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:会员工具增加主门店
parent
8f373ff7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+13
-0
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+1
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
24c5f1ea
...
@@ -89,6 +89,8 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -89,6 +89,8 @@ public class WxEnterpriseInfoController extends WebBaseController {
private
Config
config
;
private
Config
config
;
@Autowired
@Autowired
private
WxApplicationApiService
wxApplicationApiService
;
private
WxApplicationApiService
wxApplicationApiService
;
@Autowired
private
ClerkMainStoreRelatedApiService
clerkMainStoreRelatedApiService
;
/**
/**
...
@@ -422,6 +424,17 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -422,6 +424,17 @@ 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
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
staffDTO
==
null
)
{
logger
.
info
(
"查询到该员工,wxUserId:{}"
,
wxUserId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400017
);
}
String
staffId
=
staffDTO
.
getStaffId
();
ClerkMainStoreRelatedDTO
clerkMainStoreRelatedDTO
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staffId
);
if
(
clerkMainStoreRelatedDTO
==
null
)
{
logger
.
info
(
"未设置主门店,wxUserId:{}"
,
wxUserId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_400021
);
}
//获取自建客户详情
//获取自建客户详情
ExternalUserDTO
externalUserDTO
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserid
);
ExternalUserDTO
externalUserDTO
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserid
);
if
(
externalUserDTO
==
null
)
{
if
(
externalUserDTO
==
null
)
{
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
24c5f1ea
...
@@ -94,6 +94,7 @@ public enum HaoBanErrCode {
...
@@ -94,6 +94,7 @@ public enum HaoBanErrCode {
ERR_400018
(
400018
,
"已有待审核的门店字段信息提交,请等待审核完再提交"
),
ERR_400018
(
400018
,
"已有待审核的门店字段信息提交,请等待审核完再提交"
),
ERR_400019
(
400019
,
"门店面积不合法"
),
ERR_400019
(
400019
,
"门店面积不合法"
),
ERR_400020
(
400020
,
"门店图片不能为空"
),
ERR_400020
(
400020
,
"门店图片不能为空"
),
ERR_400021
(
400021
,
"您还未绑定主门店,请前往好办-我的-设置中操作设为主门店"
),
/**
/**
* 文件不存在
* 文件不存在
...
...
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