Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
7b93607b
Commit
7b93607b
authored
Aug 06, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 将服务商id与业务员信息拆分返回
parent
99b8b98c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
23 deletions
+27
-23
center-manage/app/base/service/impl/auth/userSve.js
+8
-8
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+19
-15
No files found.
center-manage/app/base/service/impl/auth/userSve.js
View file @
7b93607b
...
...
@@ -452,16 +452,16 @@ class UserService extends ServiceBase {
compId
:
companyFind
.
id
}
await
self
.
cacheManager
[
"ClientBindBizUserCache"
].
cache
(
clientMobile
,
tmp
)
return
tmp
return
{
userInfo
:
tmp
,
comInfo
:
{
compId
:
tmp
.
compId
}};
}
else
{
return
null
return
{
userInfo
:
null
,
comInfo
:
{
compId
:
tmp
.
compId
}};
}
}
else
{
if
(
resultcache
)
{
//不继续,直接返回缓存
return
resultcache
return
{
userInfo
:
resultcache
.
tmp
,
comInfo
:
{
compId
:
companyFind
.
id
}};
}
else
{
return
null
return
{
userInfo
:
null
,
comInfo
:
{
compId
:
companyFind
.
id
}};
}
}
...
...
@@ -557,17 +557,17 @@ class UserService extends ServiceBase {
compId
:
companyFind
.
id
}
await
self
.
cacheManager
[
"ClientBindBizUserCache"
].
cache
(
clientMobile
,
tmp
)
return
tmp
return
{
userInfo
:
tmp
,
comInfo
:
{
cost
:
tmp
.
cost
,
compId
:
tmp
.
compId
}};
}
else
{
return
null
return
{
userInfo
:
null
,
comInfo
:
{
cost
:
tmp
.
cost
,
compId
:
tmp
.
compId
}};
}
}
else
{
if
(
resultcache
)
{
//不继续,直接返回缓存
resultcache
[
"cost"
]
=
costAmount
return
resultcache
return
{
userInfo
:
resultcache
.
tmp
,
comInfo
:
{
cost
:
costAmount
,
compId
:
companyFind
.
id
}};
}
else
{
return
null
return
{
userInfo
:
null
,
comInfo
:
{
cost
:
costAmount
,
compId
:
companyFind
.
id
}};
}
}
})
...
...
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
7b93607b
...
...
@@ -56,12 +56,14 @@ class TxHandler {
if
(
datajson
.
actionBody
.
UserName
&&
datajson
.
actionBody
.
UserName
!=
'undefined'
)
{
params
.
UserName
=
datajson
.
actionBody
.
UserName
;
}
if
(
salesmanInfo
&&
salesmanInfo
!=
'undefined'
)
{
params
.
salesmanOpcode
=
salesmanInfo
.
opath
;
params
.
salesmanId
=
salesmanInfo
.
userId
;
params
.
clerkName
=
salesmanInfo
.
userName
;
params
.
clerkPhone
=
system
.
encryptStr
(
salesmanInfo
.
mobile
);
params
.
servicerCode
=
salesmanInfo
.
compId
if
(
salesmanInfo
.
comInfo
)
{
params
.
servicerCode
=
salesmanInfo
.
comInfo
.
compId
}
if
(
salesmanInfo
.
userInfo
&&
salesmanInfo
.
userInfo
!=
'undefined'
)
{
params
.
salesmanOpcode
=
salesmanInfo
.
userInfo
.
opath
;
params
.
salesmanId
=
salesmanInfo
.
userInfo
.
userId
;
params
.
clerkName
=
salesmanInfo
.
userInfo
.
userName
;
params
.
clerkPhone
=
system
.
encryptStr
(
salesmanInfo
.
userInfo
.
mobile
);
}
var
rtn
=
await
rc
.
execPost3
({
"d"
:
params
},
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
...
...
@@ -241,15 +243,17 @@ class TxHandler {
"regInfo"
:
{},
"express_info"
:
{}
}
if
(
salesmanInfo
&&
salesmanInfo
!=
'undefined'
)
{
params
.
clerkOpcode
=
salesmanInfo
.
opath
;
params
.
clerkId
=
salesmanInfo
.
userId
;
params
.
clerkName
=
salesmanInfo
.
userName
;
//params.clerkPhone = salesmanInfo.mobile;
params
.
costPrice
=
salesmanInfo
.
cost
;
params
.
servicerCode
=
salesmanInfo
.
compId
;
params
.
baseInfo
.
clerkName
=
salesmanInfo
.
userName
;
// params.baseInfo.clerkPhone = salesmanInfo.mobile
if
(
salesmanInfo
.
comInfo
)
{
params
.
costPrice
=
salesmanInfo
.
comInfo
.
cost
;
params
.
servicerCode
=
salesmanInfo
.
comInfo
.
compId
;
}
if
(
salesmanInfo
.
userInfo
&&
salesmanInfo
.
userInfo
!=
'undefined'
)
{
params
.
clerkOpcode
=
salesmanInfo
.
userInfo
.
opath
;
params
.
clerkId
=
salesmanInfo
.
userInfo
.
userId
;
params
.
clerkName
=
salesmanInfo
.
userInfo
.
userName
;
//params.clerkPhone = salesmanInfo.userInfo.mobile;
params
.
baseInfo
.
clerkName
=
salesmanInfo
.
userInfo
.
userName
;
// params.baseInfo.clerkPhone = salesmanInfo.userInfo.mobile
}
// if (!params.servicerCode || params.servicerCode == 'undefined') {
// if (datajson.actionBody.orderSnapshot.servicerCode && datajson.actionBody.orderSnapshot.servicerCode != 'undefined') {
...
...
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