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
ae750f27
Commit
ae750f27
authored
Aug 21, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
c8c2372e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
center-manage/app/base/service/impl/auth/userSve.js
+3
-0
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+2
-1
No files found.
center-manage/app/base/service/impl/auth/userSve.js
View file @
ae750f27
...
@@ -398,6 +398,8 @@ class UserService extends ServiceBase {
...
@@ -398,6 +398,8 @@ class UserService extends ServiceBase {
async
getBizUserForBizChance
(
clientMobile
,
spName
,
productCatName
,
regionName
)
{
async
getBizUserForBizChance
(
clientMobile
,
spName
,
productCatName
,
regionName
)
{
var
self
=
this
var
self
=
this
clientMobile
=
clientMobile
+
"_"
+
spName
+
"_"
+
regionName
+
"_"
+
productCatName
clientMobile
=
clientMobile
+
"_"
+
spName
+
"_"
+
regionName
+
"_"
+
productCatName
console
.
log
(
`商机 缓存 key -----
${
clientMobile
}
`
);
//按照服务商名字查询到公司,按照公司查询出users,条件是可以接受派单任务,并且技能标签含有,产品类别名称
//按照服务商名字查询到公司,按照公司查询出users,条件是可以接受派单任务,并且技能标签含有,产品类别名称
return
this
.
db
.
transaction
(
async
function
(
t
)
{
return
this
.
db
.
transaction
(
async
function
(
t
)
{
//先检查缓存是否存在bizuser
//先检查缓存是否存在bizuser
...
@@ -503,6 +505,7 @@ class UserService extends ServiceBase {
...
@@ -503,6 +505,7 @@ class UserService extends ServiceBase {
*/
*/
async
getBizUserForDelivery
(
xclientMobile
,
spName
,
productCatName
,
skucode
,
regionName
)
{
async
getBizUserForDelivery
(
xclientMobile
,
spName
,
productCatName
,
skucode
,
regionName
)
{
let
clientMobile
=
'fordeliver'
+
xclientMobile
+
"_"
+
spName
+
"_"
+
regionName
+
"_"
+
productCatName
let
clientMobile
=
'fordeliver'
+
xclientMobile
+
"_"
+
spName
+
"_"
+
regionName
+
"_"
+
productCatName
console
.
log
(
`交付单缓存 key -----
${
clientMobile
}
`
);
var
self
=
this
var
self
=
this
//按照服务商名字查询到公司,按照公司查询出users,条件是可以接受派单任务,并且技能标签含有,产品类别名称
//按照服务商名字查询到公司,按照公司查询出users,条件是可以接受派单任务,并且技能标签含有,产品类别名称
return
this
.
db
.
transaction
(
async
function
(
t
)
{
return
this
.
db
.
transaction
(
async
function
(
t
)
{
...
...
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
ae750f27
...
@@ -31,7 +31,8 @@ class TxHandler {
...
@@ -31,7 +31,8 @@ class TxHandler {
//获取分配的业务员信息
//获取分配的业务员信息
var
ConsultTypeName
=
datajson
.
actionBody
.
ConsultTypeName
.
split
(
"/"
)[
2
];
var
ConsultTypeName
=
datajson
.
actionBody
.
ConsultTypeName
.
split
(
"/"
)[
2
];
var
salesmanInfo
=
await
this
.
userService
.
getBizUserForBizChance
(
datajson
.
actionBody
.
ContactsMobile
,
datajson
.
actionBody
.
ServicerName
,
ConsultTypeName
,
datajson
.
actionBody
.
RegionName
);
var
salesmanInfo
=
await
this
.
userService
.
getBizUserForBizChance
(
datajson
.
actionBody
.
ContactsMobile
,
datajson
.
actionBody
.
ServicerName
,
ConsultTypeName
,
datajson
.
actionBody
.
RegionName
);
console
.
log
(
"salesman "
+
salesmanInfo
);
console
.
log
(
"salesman ------- "
);
console
.
log
(
salesmanInfo
);
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
requrl
=
this
.
icUrl
+
"/bizoptCtl/insertInfo"
;
var
requrl
=
this
.
icUrl
+
"/bizoptCtl/insertInfo"
;
var
params
=
{
var
params
=
{
...
...
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