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
6ac62af6
Commit
6ac62af6
authored
Sep 18, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gsb-marketplat' of gitlab.gongsibao.com:jiangyong/zhichan into gsb-marketplat
parents
07b7c7ad
4687dd89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
+4
-1
gsb-marketplat/app/base/db/models/configmag/launchchannel.js
+1
-0
gsb-marketplat/app/base/db/models/media/needinfo.js
+1
-0
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
+2
-1
No files found.
gsb-marketplat/app/base/db/models/configmag/launchchannel.js
View file @
6ac62af6
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*/
*/
module
.
exports
=
(
db
,
DataTypes
)
=>
{
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"launchchannel"
,
{
return
db
.
define
(
"launchchannel"
,
{
only_code
:
DataTypes
.
STRING
(
255
),
//渠道唯一码
code
:
DataTypes
.
STRING
(
100
),
//表单编码
code
:
DataTypes
.
STRING
(
100
),
//表单编码
name
:
DataTypes
.
STRING
(
100
),
//表单名称
name
:
DataTypes
.
STRING
(
100
),
//表单名称
notes
:
DataTypes
.
STRING
(
255
),
//备注
notes
:
DataTypes
.
STRING
(
255
),
//备注
...
...
gsb-marketplat/app/base/db/models/media/needinfo.js
View file @
6ac62af6
...
@@ -17,6 +17,7 @@ module.exports = (db, DataTypes) => {
...
@@ -17,6 +17,7 @@ module.exports = (db, DataTypes) => {
this
.
setDataValue
(
"submit_type_name"
,
submit_type
[
val
]);
this
.
setDataValue
(
"submit_type_name"
,
submit_type
[
val
]);
}
}
},
},
channel_only_code
:
DataTypes
.
STRING
,
//渠道编码
channel_code
:
DataTypes
.
STRING
,
//渠道编码
channel_code
:
DataTypes
.
STRING
,
//渠道编码
channel_name
:
DataTypes
.
STRING
,
//渠道名称
channel_name
:
DataTypes
.
STRING
,
//渠道名称
page_code
:
DataTypes
.
STRING
,
//页面编码
page_code
:
DataTypes
.
STRING
,
//页面编码
...
...
gsb-marketplat/app/base/service/impl/media/needinfoSve.js
View file @
6ac62af6
...
@@ -47,13 +47,14 @@ class NeedinfoService extends ServiceBase {
...
@@ -47,13 +47,14 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultFail
(
-
107
,
"联系电话不能为空!"
)
return
system
.
getResultFail
(
-
107
,
"联系电话不能为空!"
)
}
}
var
channel
=
await
this
.
launchchannelDao
.
model
.
findOne
({
var
channel
=
await
this
.
launchchannelDao
.
model
.
findOne
({
attributes
:[
"code"
,
"name"
],
attributes
:[
"code"
,
"name"
,
"only_code"
],
where
:{
code
:
ab
.
channel_code
},
raw
:
true
where
:{
code
:
ab
.
channel_code
},
raw
:
true
});
});
if
(
!
channel
||
!
channel
.
code
){
if
(
!
channel
||
!
channel
.
code
){
return
system
.
getResultFail
(
-
300
,
"渠道信息不存在"
)
return
system
.
getResultFail
(
-
300
,
"渠道信息不存在"
)
}
}
ab
[
"channel_name"
]
=
channel
.
name
;
ab
[
"channel_name"
]
=
channel
.
name
;
ab
[
"channel_only_code"
]
=
channel
.
only_code
||
""
;
return
ab
;
return
ab
;
}
}
//推送需求至队列
//推送需求至队列
...
...
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