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
9b08b49d
Commit
9b08b49d
authored
Sep 04, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
media
parent
d1294bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletions
+44
-1
gsb-marketplat/app/base/db/impl/media/needinfoDao.js
+15
-0
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
+29
-1
No files found.
gsb-marketplat/app/base/db/impl/media/needinfoDao.js
0 → 100644
View file @
9b08b49d
const
system
=
require
(
"../../../system"
);
const
Dao
=
require
(
"../../dao.base"
);
class
NeedinfoDao
extends
Dao
{
constructor
(){
super
(
Dao
.
getModelName
(
NeedinfoDao
));
}
// extraWhere(obj,w,qc,linkAttrs){
// w["company_id"]=obj.company_id;
// return w;
// }
}
module
.
exports
=
NeedinfoDao
;
\ No newline at end of file
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
View file @
9b08b49d
...
...
@@ -6,6 +6,7 @@ class NeedinfoService extends ServiceBase {
constructor
()
{
super
(
"media"
,
ServiceBase
.
getDaoName
(
NeedinfoService
));
this
.
launchchannelDao
=
system
.
getObject
(
"db.configmag.launchchannelDao"
);
this
.
execClient
=
system
.
getObject
(
"util.execClient"
);
}
//提交商机/线索
async
submitNeed
(
pobj
){
...
...
@@ -17,7 +18,8 @@ class NeedinfoService extends ServiceBase {
if
(
res
&&
res
.
status
&&
res
.
status
<
0
){
return
res
;
}
await
this
.
dao
.
create
(
res
);
var
createRes
=
await
this
.
dao
.
create
(
res
);
return
system
.
getResultSuccess
();
}
...
...
@@ -51,6 +53,31 @@ class NeedinfoService extends ServiceBase {
ab
[
"channel_name"
]
=
channel
.
name
;
return
ab
;
}
//推送需求至队列
// async pushMediaNeed2Queue(id) {
// try {
// if (!id) {
// return;
// }
// var url = "http://sytxpublic-msgq-service.chaolai/api/queueAction/producer/springBoard";
// var obj = {
// "actionType": "produceData",// Y 功能名称
// "actionBody": {
// "pushUrl": "https://mmc.gongsibao.com/external/action/template/springBoard",// Y 推送地址
// "actionType": "pushMarketplatFormInfo2Fq",// Y 推送地址接收时的功能名称
// "identifyCode": "marketmedia-pushneed2fq",// Y 操作的业务标识
// "messageBody": { // Y 推送的业务消息,必须有一项对象属性值
// "id": id
// }
// }
// };
// // var result = await this.execClient.execPost(obj, url);
// // console.log(JSON.stringify(result), "result....push....");
// } catch (e) {
// console.log(e, "pushMediaNeed2Queue++++++++++++++++++++++++++++++++++++")
// }
// }
}
module
.
exports
=
NeedinfoService
;
\ No newline at end of file
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