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
be88960f
Commit
be88960f
authored
Aug 01, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导购code问题修复
parent
d5a181ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+6
-5
MaidianLogController.java
...ic/haoban/manage/web/controller/MaidianLogController.java
+3
-1
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+2
-1
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+4
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
be88960f
...
@@ -705,7 +705,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -705,7 +705,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String
clerkId
=
staffClerkRelationDTO
.
getClerkId
();
String
clerkId
=
staffClerkRelationDTO
.
getClerkId
();
String
clerkCode
=
staffClerkRelationDTO
.
getClerkCode
();
String
clerkCode
=
staffClerkRelationDTO
.
getClerkCode
();
String
enterpriseId
=
staffClerkRelationDTO
.
getEnterpriseId
();
String
enterpriseId
=
staffClerkRelationDTO
.
getEnterpriseId
();
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
enterpriseId
,
clerkCode
);
//统一根据导购id查询
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkId
(
clerkId
);
log
.
info
(
"【新增外部联系人】创建member,clerkCode={},unionid:{}"
,
clerkCode
,
unionId
);
log
.
info
(
"【新增外部联系人】创建member,clerkCode={},unionid:{}"
,
clerkCode
,
unionId
);
if
(
clerk
==
null
)
{
if
(
clerk
==
null
)
{
log
.
info
(
"【新增外部联系人】创建member,导购为空返回:{}"
,
clerkCode
);
log
.
info
(
"【新增外部联系人】创建member,导购为空返回:{}"
,
clerkCode
);
...
@@ -1850,14 +1851,14 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1850,14 +1851,14 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
log
.
info
(
"好友不同开平:{}"
,
JSONObject
.
toJSONString
(
externalUserDTO
));
log
.
info
(
"好友不同开平:{}"
,
JSONObject
.
toJSONString
(
externalUserDTO
));
return
this
.
saveExternalUser
(
externalUserDTO
);
return
this
.
saveExternalUser
(
externalUserDTO
);
}
}
String
clerkCode
=
staffClerkRelationDTO
.
getClerkCode
();
//统一根据导购id查询
ClerkDTO
clerk
=
clerkService
.
getClerkByClerk
Code
(
staffClerkRelationDTO
.
getEnterpriseId
(),
clerkCode
);
ClerkDTO
clerk
=
clerkService
.
getClerkByClerk
Id
(
clerkId
);
if
(
clerk
==
null
)
{
if
(
clerk
==
null
)
{
return
"导购不存在:"
+
clerk
Code
;
return
"导购不存在:"
+
clerk
Id
;
}
}
String
qrcodeParam
=
clerk
.
getQrcodeParam
();
String
qrcodeParam
=
clerk
.
getQrcodeParam
();
if
(
StringUtils
.
isBlank
(
qrcodeParam
))
{
if
(
StringUtils
.
isBlank
(
qrcodeParam
))
{
log
.
info
(
"导购码不存在:"
+
clerk
Code
);
log
.
info
(
"导购码不存在:"
+
clerk
Id
);
qrcodeParam
=
"clerk_clerk_"
+
clerk
.
getClerkId
()
;
qrcodeParam
=
"clerk_clerk_"
+
clerk
.
getClerkId
()
;
}
}
String
memberId
=
this
.
getMeberId
(
enterpriseId
,
externalUserDTO
.
getUnionId
(),
externalUserDTO
.
getName
(),
externalUserDTO
.
getAvatar
(),
qrcodeParam
,
externalUserDTO
.
getExternalUserId
(),
wxEnterpriseRelated
.
getWxEnterpriseType
(),
1
)
;
String
memberId
=
this
.
getMeberId
(
enterpriseId
,
externalUserDTO
.
getUnionId
(),
externalUserDTO
.
getName
(),
externalUserDTO
.
getAvatar
(),
qrcodeParam
,
externalUserDTO
.
getExternalUserId
(),
wxEnterpriseRelated
.
getWxEnterpriseType
(),
1
)
;
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/MaidianLogController.java
View file @
be88960f
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.enterprise.api.service.StoreService
;
...
@@ -47,7 +48,8 @@ public class MaidianLogController extends WebBaseController {
...
@@ -47,7 +48,8 @@ public class MaidianLogController extends WebBaseController {
}
}
StoreDTO
store
=
storeService
.
getStore
(
maidianLogDTO
.
getStoreId
());
StoreDTO
store
=
storeService
.
getStore
(
maidianLogDTO
.
getStoreId
());
if
(
store
!=
null
)
{
if
(
store
!=
null
)
{
com
.
gic
.
clerk
.
api
.
dto
.
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkCode
(
store
.
getEnterpriseId
(),
maidianLogDTO
.
getClerkCode
());
//统一根据导购id查询
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
maidianLogDTO
.
getClerkId
());
maidianLogDTO
.
setEnterpriseId
(
store
.
getEnterpriseId
());
maidianLogDTO
.
setEnterpriseId
(
store
.
getEnterpriseId
());
if
(
clerkDTO
!=
null
)
{
if
(
clerkDTO
!=
null
)
{
//导购变更门店
//导购变更门店
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
be88960f
...
@@ -114,7 +114,8 @@ public class StoreController extends WebBaseController {
...
@@ -114,7 +114,8 @@ public class StoreController extends WebBaseController {
logger
.
info
(
"非当前商户,直接跳过={},{}"
,
gicEnterpriseId
,
enterpriseId
);
logger
.
info
(
"非当前商户,直接跳过={},{}"
,
gicEnterpriseId
,
enterpriseId
);
continue
;
continue
;
}
}
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
enterpriseId
,
staffClerkRelationDTO
.
getClerkCode
());
//统一根据导购id查询
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkId
(
staffClerkRelationDTO
.
getClerkId
());
if
(
clerk
==
null
)
{
if
(
clerk
==
null
)
{
continue
;
continue
;
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
be88960f
...
@@ -1193,8 +1193,8 @@ public class WxStaffController extends WebBaseController {
...
@@ -1193,8 +1193,8 @@ public class WxStaffController extends WebBaseController {
staffId
);
staffId
);
String
storeId
=
mainDTO
==
null
?
""
:
mainDTO
.
getStoreId
();
String
storeId
=
mainDTO
==
null
?
""
:
mainDTO
.
getStoreId
();
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
bindRelationList
)
{
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
bindRelationList
)
{
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
staffClerkRelationDTO
.
getEnterpriseId
(),
//统一根据导购id查询
staffClerkRelationDTO
.
getClerkCode
());
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkId
(
staffClerkRelationDTO
.
getClerkId
());
if
(
clerk
!=
null
)
{
if
(
clerk
!=
null
)
{
StoreDTO
store
=
storeService
.
getStore
(
clerk
.
getStoreId
());
StoreDTO
store
=
storeService
.
getStore
(
clerk
.
getStoreId
());
// 主门店标志
// 主门店标志
...
@@ -1606,7 +1606,8 @@ public class WxStaffController extends WebBaseController {
...
@@ -1606,7 +1606,8 @@ public class WxStaffController extends WebBaseController {
logger
.
info
(
"非当前商户,直接跳过={},{}"
,
gicEnterpriseId
,
enterpriseId
);
logger
.
info
(
"非当前商户,直接跳过={},{}"
,
gicEnterpriseId
,
enterpriseId
);
continue
;
continue
;
}
}
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
enterpriseId
,
staffClerkRelationDTO
.
getClerkCode
());
//统一根据导购id查询
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkId
(
staffClerkRelationDTO
.
getClerkId
());
if
(
clerk
==
null
)
{
if
(
clerk
==
null
)
{
continue
;
continue
;
}
}
...
...
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