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
b0e91d41
Commit
b0e91d41
authored
Sep 18, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
channel
parent
d8252066
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
gsb-marketplat-mag/app/base/db/dao.base.js
+3
-0
gsb-marketplat-mag/app/base/db/models/aggregation/needinfo.js
+1
-0
gsb-marketplat-mag/app/base/db/models/configmag/launchchannel.js
+1
-0
gsb-marketplat-mag/app/base/service/impl/configmag/launchchannelSve.js
+2
-0
No files found.
gsb-marketplat-mag/app/base/db/dao.base.js
View file @
b0e91d41
...
@@ -119,6 +119,9 @@ class Dao {
...
@@ -119,6 +119,9 @@ class Dao {
else
if
(
k
.
indexOf
(
"channelCode"
)
>=
0
)
{
else
if
(
k
.
indexOf
(
"channelCode"
)
>=
0
)
{
qc
.
where
[
k
]
=
search
[
k
];
qc
.
where
[
k
]
=
search
[
k
];
}
}
else
if
(
k
.
indexOf
(
"only_code"
)
>=
0
)
{
qc
.
where
[
k
]
=
search
[
k
];
}
else
if
(
k
.
indexOf
(
"Type"
)
>=
0
)
{
else
if
(
k
.
indexOf
(
"Type"
)
>=
0
)
{
qc
.
where
[
k
]
=
search
[
k
];
qc
.
where
[
k
]
=
search
[
k
];
}
}
...
...
gsb-marketplat-mag/app/base/db/models/aggregation/needinfo.js
View file @
b0e91d41
...
@@ -18,6 +18,7 @@ module.exports = (db, DataTypes) => {
...
@@ -18,6 +18,7 @@ module.exports = (db, DataTypes) => {
}
}
},
},
channel_code
:
DataTypes
.
STRING
,
//渠道编码
channel_code
:
DataTypes
.
STRING
,
//渠道编码
channel_only_code
:
DataTypes
.
STRING
,
//渠道唯一编码
channel_name
:
DataTypes
.
STRING
,
//渠道名称
channel_name
:
DataTypes
.
STRING
,
//渠道名称
page_code
:
DataTypes
.
STRING
,
//页面编码
page_code
:
DataTypes
.
STRING
,
//页面编码
page_name
:
DataTypes
.
STRING
,
//页面名称
page_name
:
DataTypes
.
STRING
,
//页面名称
...
...
gsb-marketplat-mag/app/base/db/models/configmag/launchchannel.js
View file @
b0e91d41
...
@@ -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-mag/app/base/service/impl/configmag/launchchannelSve.js
View file @
b0e91d41
...
@@ -31,7 +31,9 @@ class LaunchchannelService extends ServiceBase {
...
@@ -31,7 +31,9 @@ class LaunchchannelService extends ServiceBase {
if
(
searchResult
)
{
if
(
searchResult
)
{
return
system
.
getResultFail
(
-
1
,
'渠道已存在,请勿重复添加'
);
return
system
.
getResultFail
(
-
1
,
'渠道已存在,请勿重复添加'
);
}
}
var
onlyCode
=
await
this
.
getBusUid
();
let
channelData
=
{
let
channelData
=
{
only_code
:
onlyCode
,
name
:
pobj
.
name
,
name
:
pobj
.
name
,
code
:
pobj
.
code
,
code
:
pobj
.
code
,
user_id
:
pobj
.
userid
,
user_id
:
pobj
.
userid
,
...
...
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