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
5d0419a9
Commit
5d0419a9
authored
Mar 03, 2021
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fq需求商机同步
parent
0e8d8537
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
center-channel/app/base/api/impl/auth/taskapi.js
+6
-0
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
+20
-0
No files found.
center-channel/app/base/api/impl/auth/taskapi.js
View file @
5d0419a9
...
...
@@ -116,5 +116,10 @@ class AccessAuthAPI extends APIBase {
return
system
.
getResultSuccess
();
}
async
taskSyncNeedBusiness
(
pobj
,
qobj
,
req
){
let
result
=
await
this
.
utilsNeedSve
.
syncNeedBusiness
();
return
result
;
}
}
module
.
exports
=
AccessAuthAPI
;
\ No newline at end of file
center-channel/app/base/service/impl/utilsSve/utilsNeedSve.js
View file @
5d0419a9
...
...
@@ -1581,6 +1581,7 @@ class UtilsNeedService extends AppServiceBase {
}
//-----------接入百度ICP------end----------------------------------
//需求导入
async
importNeeds
(
pobj
,
req
){
let
url
=
this
.
centerOrderUrl
+
'action/need/springBoard'
;
if
(
!
pobj
.
actionBody
.
needsArr
){
...
...
@@ -1599,6 +1600,25 @@ class UtilsNeedService extends AppServiceBase {
}
return
system
.
getResult
(
result
.
data
.
data
);
}
/**
* 同步需求商机
* @param pobj
* @param qobj
* @param req
* @returns {Promise<{msg: *, data, bizmsg: *|string, status: number}>}
*/
async
syncNeedBusiness
(
pobj
,
qobj
,
req
){
let
url
=
this
.
centerOrderUrl
+
'task/taskAction/taskNeed'
;
let
result
=
await
this
.
execPostByTimeOut
(
req
,
pobj
,
url
,
"json"
,
null
,
60
)
if
(
!
result
||
result
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
result
.
msg
);
}
if
(
!
result
.
data
||
result
.
data
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
result
.
data
.
msg
);
}
return
system
.
getResult
(
result
.
data
.
data
);
}
}
module
.
exports
=
UtilsNeedService
;
...
...
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