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
5ae84051
Commit
5ae84051
authored
Nov 23, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道类型
parent
3a70653b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
gsb-marketplat-mag/app/base/db/models/configmag/launchchannel.js
+10
-1
gsb-marketplat-mag/app/base/service/impl/configmag/launchchannelSve.js
+1
-0
No files found.
gsb-marketplat-mag/app/base/db/models/configmag/launchchannel.js
View file @
5ae84051
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
* @param DataTypes
* @param DataTypes
* @returns {Model|void|*}
* @returns {Model|void|*}
*/
*/
const
channel_type
=
{
"1"
:
"投放平台"
,
"2"
:
"媒体聚合页"
};
module
.
exports
=
(
db
,
DataTypes
)
=>
{
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"launchchannel"
,
{
return
db
.
define
(
"launchchannel"
,
{
only_code
:
DataTypes
.
STRING
(
255
),
//渠道唯一码
only_code
:
DataTypes
.
STRING
(
255
),
//渠道唯一码
...
@@ -12,7 +13,15 @@ module.exports = (db, DataTypes) => {
...
@@ -12,7 +13,15 @@ module.exports = (db, DataTypes) => {
notes
:
DataTypes
.
STRING
(
255
),
//备注
notes
:
DataTypes
.
STRING
(
255
),
//备注
user_id
:
DataTypes
.
INTEGER
(
11
),
//创建用户id
user_id
:
DataTypes
.
INTEGER
(
11
),
//创建用户id
user_name
:
DataTypes
.
STRING
(
60
),
//创建用户名称
user_name
:
DataTypes
.
STRING
(
60
),
//创建用户名称
company_id
:
DataTypes
.
INTEGER
(
11
)
company_id
:
DataTypes
.
INTEGER
(
11
),
channel_type_name
:
DataTypes
.
STRING
(
60
),
//渠道类型名称
channel_type
:
{
type
:
DataTypes
.
STRING
(
60
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"channel_type"
,
val
);
this
.
setDataValue
(
"channel_type_name"
,
channel_type
[
val
]);
}
}
},
{
},
{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
...
gsb-marketplat-mag/app/base/service/impl/configmag/launchchannelSve.js
View file @
5ae84051
...
@@ -38,6 +38,7 @@ class LaunchchannelService extends ServiceBase {
...
@@ -38,6 +38,7 @@ class LaunchchannelService extends ServiceBase {
code
:
pobj
.
code
,
code
:
pobj
.
code
,
user_id
:
pobj
.
userid
,
user_id
:
pobj
.
userid
,
user_name
:
pobj
.
username
,
user_name
:
pobj
.
username
,
channel_type
:
pobj
.
channel_type
,
company_id
:
pobj
.
company_id
company_id
:
pobj
.
company_id
}
}
let
result
=
await
this
.
create
(
channelData
);
let
result
=
await
this
.
create
(
channelData
);
...
...
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