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
7f2362df
Commit
7f2362df
authored
Aug 31, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
602bc536
b0889fc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
14 deletions
+63
-14
center-channel/app/base/api/impl/trade/brand.js
+32
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+31
-14
No files found.
center-channel/app/base/api/impl/trade/brand.js
0 → 100644
View file @
7f2362df
let
WEBBase
=
require
(
"../../web.base"
);
let
system
=
require
(
"../../../system"
);
class
brand
extends
WEBBase
{
constructor
()
{
super
();
this
.
utilsNeedSve
=
system
.
getObject
(
"service.utilsSve.utilsNeedSve"
);
}
async
springBoard
(
pobj
,
qobj
,
req
)
{
return
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
let
opResult
=
null
;
switch
(
action_type
)
{
case
"QueryTradeIntentionUserList"
:
// 查询咨询客户列表
let
endtime
=
Date
.
now
();
let
starttime
=
Date
.
now
()
-
30
*
60
*
1000
;
//30分钟(毫秒)
pobj
.
actionBody
=
{
Begin
:
starttime
,
End
:
endtime
};
opResult
=
await
this
.
utilsNeedSve
.
queryTradeIntentionUserList
(
pobj
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
brand
;
\ No newline at end of file
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
7f2362df
...
@@ -549,24 +549,41 @@ class UtilsNeedService extends AppServiceBase {
...
@@ -549,24 +549,41 @@ class UtilsNeedService extends AppServiceBase {
}
}
}
}
async
queryTradeIntentionUserList
(
pobj
)
{
async
queryTradeIntentionUserList
(
pobj
)
{
if
(
!
pobj
.
actionBody
.
intentionBizId
)
{
//
if (!pobj.actionBody.intentionBizId) {
return
system
.
getResult
(
null
,
"actionBody.intentionBizId can not be empty,100493"
);
//
return system.getResult(null, "actionBody.intentionBizId can not be empty,100493");
}
//
}
if
(
!
pobj
.
actionBody
.
userFeedBack
)
{
//
if (!pobj.actionBody.userFeedBack) {
return
system
.
getResult
(
null
,
"actionBody.userFeedBack can not be empty,100494"
);
//
return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
}
//
}
let
res
=
await
this
.
aliclient
.
reqbyget
({
let
res
=
await
this
.
aliclient
.
reqbyget
({
action
:
"QueryTradeIntentionUserList"
,
reqbody
:
{
action
:
"QueryTradeIntentionUserList"
,
reqbody
:
{
BeginTime
:
pobj
.
actionBody
.
BeginTime
?
pobj
.
actionBody
.
BeginTime
:
""
,
Begin
:
pobj
.
actionBody
.
Begin
?
pobj
.
actionBody
.
Begin
:
""
,
EndTime
:
pobj
.
actionBody
.
EndTime
?
pobj
.
actionBody
.
EndTime
:
""
,
End
:
pobj
.
actionBody
.
End
?
pobj
.
actionBody
.
End
:
""
,
BizId
:
pobj
.
actionBody
.
intentionBizId
,
UserFeedBack
:
pobj
.
actionBody
.
userFeedBack
,
PageNum
:
pobj
.
actionBody
.
pageNum
||
1
,
PageSize
:
pobj
.
actionBody
.
pageSize
||
10
,
},
apiVersion
:
"2019-05-08"
},
apiVersion
:
"2019-05-08"
});
});
console
.
log
(
res
)
if
(
res
.
status
==
0
){
return
system
.
getResultSuccess
(
res
);
pobj
.
actionType
=
"getUnCreated"
;
pobj
.
actionBody
.
data
=
res
.
data
.
Data
;
let
reqUrl
=
this
.
centerOrderUrl
+
"action/need/springBoard"
;
let
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
if
(
result
.
status
==
0
)
{
pobj
.
actionBody
=
{
type
:
"tmjy"
};
for
(
let
item
of
result
.
data
){
pobj
.
actionBody
.
intentionBizId
=
item
.
BizId
;
pobj
.
actionBody
.
mobile
=
item
.
Mobile
?
item
.
Mobile
:
""
;
pobj
.
actionBody
.
userName
=
item
.
UserName
?
item
.
UserName
:
""
;
pobj
.
notes
=
`
${
item
.
RegisterNumber
?
"RegisterNumber:"
+
item
.
RegisterNumber
:
""
}${
item
.
Classification
?
"Classification:"
+
item
.
Classification
:
""
}
`
;
let
res
=
await
this
.
submitNeed
(
JSON
.
parse
(
JSON
.
stringify
(
pobj
)),{
intentionBizId
:
item
.
BizId
});
console
.
log
(
res
)
}
return
system
.
getResultSuccess
();
}
else
{
return
system
.
getResultFail
(
result
.
status
,
result
.
msg
);
}
}
return
system
.
getResultFail
(
res
.
status
,
res
.
msg
);
}
}
async
testsymq
(
pobj
)
{
async
testsymq
(
pobj
)
{
...
...
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