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
65e916df
Commit
65e916df
authored
Aug 05, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsbweb app channel
parent
f8061a49
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
11 deletions
+13
-11
fqboss/app/base/controller/impl/orderCtl.js
+4
-2
fqboss/app/base/controller/impl/trademarkCtl.js
+1
-1
fqboss/app/base/db/metadata/apps/platform.js
+3
-3
fqboss/app/base/service/impl/tmflowSve.js
+1
-1
fqboss/app/base/service/impl/trademarkSve.js
+3
-3
fqboss/app/config/settings.js
+1
-1
No files found.
fqboss/app/base/controller/impl/orderCtl.js
View file @
65e916df
...
@@ -623,7 +623,8 @@ class orderCtl extends CtlBase {
...
@@ -623,7 +623,8 @@ class orderCtl extends CtlBase {
if
(
order
&&
order
.
channelCode
)
{
if
(
order
&&
order
.
channelCode
)
{
var
judgeRes
=
this
.
trademarkSve
.
dao
.
judgeChannelCode
(
order
.
channelCode
);
var
judgeRes
=
this
.
trademarkSve
.
dao
.
judgeChannelCode
(
order
.
channelCode
);
if
(
judgeRes
){
if
(
judgeRes
){
if
(
order
.
channelCode
==
"gsbh5"
||
order
.
channelCode
==
"youke"
||
order
.
channelCode
==
"zhongchuan"
){
// 2020 lin 新增 gsbweb渠道 作为工商h5用
if
(
order
.
channelCode
==
"gsbh5"
||
order
.
channelCode
==
"youke"
||
order
.
channelCode
==
"zhongchuan"
||
order
.
channelCode
==
"gsbweb"
){
await
this
.
channelreceiveSve
.
pushChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
,
channelorder
.
data
);
//推送数据
await
this
.
channelreceiveSve
.
pushChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
,
channelorder
.
data
);
//推送数据
}
else
{
}
else
{
await
this
.
service
.
pushChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
);
//推送数据
await
this
.
service
.
pushChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
);
//推送数据
...
@@ -708,7 +709,8 @@ class orderCtl extends CtlBase {
...
@@ -708,7 +709,8 @@ class orderCtl extends CtlBase {
if
(
order
&&
order
.
channelCode
)
{
if
(
order
&&
order
.
channelCode
)
{
var
judgeRes
=
this
.
trademarkSve
.
dao
.
judgeChannelCode
(
order
.
channelCode
);
var
judgeRes
=
this
.
trademarkSve
.
dao
.
judgeChannelCode
(
order
.
channelCode
);
if
(
judgeRes
){
if
(
judgeRes
){
if
(
order
.
channelCode
==
"gsbh5"
||
order
.
channelCode
==
"youke"
||
order
.
channelCode
==
"zhongchuan"
){
// 2020 lin 新增 gsbweb渠道 作为工商h5用
if
(
order
.
channelCode
==
"gsbh5"
||
order
.
channelCode
==
"youke"
||
order
.
channelCode
==
"zhongchuan"
||
order
.
channelCode
==
"gsbweb"
){
await
this
.
channelreceiveSve
.
pushEditChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
,
channelorder
.
data
);
//推送修改数据
await
this
.
channelreceiveSve
.
pushEditChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
,
channelorder
.
data
);
//推送修改数据
}
else
{
}
else
{
await
this
.
service
.
pushEditChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
);
//推送修改数据
await
this
.
service
.
pushEditChannelAssistTmData
(
order
.
orderNum
,
order
.
channelCode
);
//推送修改数据
...
...
fqboss/app/base/controller/impl/trademarkCtl.js
View file @
65e916df
...
@@ -169,7 +169,7 @@ class TrademarkCtl extends CtlBase {
...
@@ -169,7 +169,7 @@ class TrademarkCtl extends CtlBase {
}
//阿里的商标,则直接推送到阿里---状态:已提交阿里(待支付)
}
//阿里的商标,则直接推送到阿里---状态:已提交阿里(待支付)
// if (item.tmSourceType == "64") {
// if (item.tmSourceType == "64") {
if
(
judgeRes
)
{
if
(
judgeRes
)
{
if
(
item
.
tmSourceType
==
"1024"
||
item
.
tmSourceType
==
"2048"
||
item
.
tmSourceType
==
"4096"
){
//center-channel
if
(
item
.
tmSourceType
==
"1024"
||
item
.
tmSourceType
==
"2048"
||
item
.
tmSourceType
==
"4096"
||
item
.
tmSourceType
==
"8192"
){
//center-channel
var
pushObj
=
{
var
pushObj
=
{
orderNo
:
item
.
channelOrderNum
,
orderNo
:
item
.
channelOrderNum
,
tbCode
:
item
.
proxyCode
,
tbCode
:
item
.
proxyCode
,
...
...
fqboss/app/base/db/metadata/apps/platform.js
View file @
65e916df
...
@@ -2066,9 +2066,9 @@ module.exports = {
...
@@ -2066,9 +2066,9 @@ module.exports = {
"order_source_type"
:
{
1
:
"PC"
,
2
:
"移动商城"
,
4
:
"渠道方"
,
8
:
"beehive渠道"
,
16
:
"阿里云"
},
"order_source_type"
:
{
1
:
"PC"
,
2
:
"移动商城"
,
4
:
"渠道方"
,
8
:
"beehive渠道"
,
16
:
"阿里云"
},
"payType"
:
{
"wx"
:
"微信"
,
"zfb"
:
"支付宝"
,
"yh"
:
"银行卡"
},
"payType"
:
{
"wx"
:
"微信"
,
"zfb"
:
"支付宝"
,
"yh"
:
"银行卡"
},
"payResult"
:
{
"Fail"
:
"失败"
,
"Success"
:
"成功"
},
"payResult"
:
{
"Fail"
:
"失败"
,
"Success"
:
"成功"
},
"tmSourceType"
:
{
1
:
"PC"
,
2
:
"移动端"
,
4
:
"渠道"
,
8
:
"beehive"
,
16
:
"gsb"
,
32
:
"阿里云"
,
64
:
"1688"
,
128
:
"jd"
,
256
:
"gsbhome"
,
512
:
"bw"
,
1024
:
"gsbh5"
,
2048
:
"youke"
,
4096
:
"zhongchuan"
},
"tmSourceType"
:
{
1
:
"PC"
,
2
:
"移动端"
,
4
:
"渠道"
,
8
:
"beehive"
,
16
:
"gsb"
,
32
:
"阿里云"
,
64
:
"1688"
,
128
:
"jd"
,
256
:
"gsbhome"
,
512
:
"bw"
,
1024
:
"gsbh5"
,
2048
:
"youke"
,
4096
:
"zhongchuan"
,
8192
:
"gsbweb"
},
"tmSourceTypeToChannelCode"
:{
"64"
:
"1688"
,
"128"
:
"jd"
,
"256"
:
"gsbhome"
,
"512"
:
"bw"
,
"1024"
:
"gsbh5"
,
"2048"
:
"youke"
,
"4096"
:
"zhongchuan"
},
//商标来源对应渠道码
"tmSourceTypeToChannelCode"
:{
"64"
:
"1688"
,
"128"
:
"jd"
,
"256"
:
"gsbhome"
,
"512"
:
"bw"
,
"1024"
:
"gsbh5"
,
"2048"
:
"youke"
,
"4096"
:
"zhongchuan"
,
"8192"
:
"gsbweb"
},
//商标来源对应渠道码
"channelCodeToTmSourceType"
:{
"1688"
:
"64"
,
"jd"
:
"128"
,
"gsbhome"
:
"256"
,
"bw"
:
"512"
,
"gsbh5"
:
"1024"
,
"youke"
:
"2048"
,
"zhongchuan"
:
"4096"
},
//渠道码对应商标来源
"channelCodeToTmSourceType"
:{
"1688"
:
"64"
,
"jd"
:
"128"
,
"gsbhome"
:
"256"
,
"bw"
:
"512"
,
"gsbh5"
:
"1024"
,
"youke"
:
"2048"
,
"zhongchuan"
:
"4096"
,
"gsbweb"
:
"8192"
},
//渠道码对应商标来源
"user_show_order_status"
:
{
1
:
"显示"
,
2
:
"用户删除"
,
4
:
"系统过期删除"
},
"user_show_order_status"
:
{
1
:
"显示"
,
2
:
"用户删除"
,
4
:
"系统过期删除"
},
"order_status"
:
{
"1"
:
"未付款"
,
"2"
:
"订单取消"
,
"4"
:
"付款成功"
,
"8"
:
"退款处理中"
,
"16"
:
"已退款"
,
"32"
:
"已提报"
,
"64"
:
"审核中"
},
"order_status"
:
{
"1"
:
"未付款"
,
"2"
:
"订单取消"
,
"4"
:
"付款成功"
,
"8"
:
"退款处理中"
,
"16"
:
"已退款"
,
"32"
:
"已提报"
,
"64"
:
"审核中"
},
"msg_notice_type"
:
{
"friend"
:
"朋友"
,
"boss"
:
"老板"
},
"msg_notice_type"
:
{
"friend"
:
"朋友"
,
"boss"
:
"老板"
},
...
...
fqboss/app/base/service/impl/tmflowSve.js
View file @
65e916df
...
@@ -258,7 +258,7 @@ class TmFlowService extends ServiceBase {
...
@@ -258,7 +258,7 @@ class TmFlowService extends ServiceBase {
officialFileName
:
fileName
+
"_"
+
tm
.
tmName
+
"_"
+
tm
.
nclOneCodes
+
"."
+
fileType
,
officialFileName
:
fileName
+
"_"
+
tm
.
tmName
+
"_"
+
tm
.
nclOneCodes
+
"."
+
fileType
,
officialFileUrl
:
objItem
.
url
,
officialFileUrl
:
objItem
.
url
,
};
};
if
(
tm
.
tmSourceType
==
"1024"
||
tm
.
tmSourceType
==
"2048"
||
tm
.
tmSourceType
==
"4096"
){
//center-channel
if
(
tm
.
tmSourceType
==
"1024"
||
tm
.
tmSourceType
==
"2048"
||
tm
.
tmSourceType
==
"4096"
||
tm
.
tmSourceType
==
"8192"
){
//center-channel
var
channelPushObj
=
{
var
channelPushObj
=
{
orderNo
:
tm
.
channelOrderNum
,
orderNo
:
tm
.
channelOrderNum
,
tbCode
:
tm
.
proxyCode
,
tbCode
:
tm
.
proxyCode
,
...
...
fqboss/app/base/service/impl/trademarkSve.js
View file @
65e916df
...
@@ -184,7 +184,7 @@ class TrademarkService extends ServiceBase {
...
@@ -184,7 +184,7 @@ class TrademarkService extends ServiceBase {
+
"c.`mobile`,c.`fax`,c.`zipCode`,b.`businessLicensePic`,b.`identityCard`,b.`identityCardPic`,a.`tmFormType`,a.`voiceUrl`,a.`tmName`,a.`nclOneCodes`,a.`nclSmallCodes`,"
+
"c.`mobile`,c.`fax`,c.`zipCode`,b.`businessLicensePic`,b.`identityCard`,b.`identityCardPic`,a.`tmFormType`,a.`voiceUrl`,a.`tmName`,a.`nclOneCodes`,a.`nclSmallCodes`,"
+
"a.`picUrl`,a.`colorizedPicUrl`,a.`descUrl` "
+
"a.`picUrl`,a.`colorizedPicUrl`,a.`descUrl` "
+
" FROM `h_trade_mark` AS a,`h_tmapplier_info` AS b,`h_tmcustomer_info` AS c "
+
" FROM `h_trade_mark` AS a,`h_tmapplier_info` AS b,`h_tmcustomer_info` AS c "
+
" WHERE a.`orderNum`=b.`orderNum` AND a.`orderNum`=c.`orderNum` and a.tmSourceType IN ('16', '64', '128', '256','512','1024','2048','4096') "
+
" WHERE a.`orderNum`=b.`orderNum` AND a.`orderNum`=c.`orderNum` and a.tmSourceType IN ('16', '64', '128', '256','512','1024','2048','4096'
,'8192'
) "
+
" AND a.`deleted_at` IS NULL AND a.`tmStatus` = 'WAITCOMMIT' ORDER BY a.id ASC LIMIT "
+
pageSize
+
" OFFSET "
+
from
;
+
" AND a.`deleted_at` IS NULL AND a.`tmStatus` = 'WAITCOMMIT' ORDER BY a.id ASC LIMIT "
+
pageSize
+
" OFFSET "
+
from
;
var
tmpdbResult
=
await
this
.
dao
.
customQuery
(
sql
);
var
tmpdbResult
=
await
this
.
dao
.
customQuery
(
sql
);
...
@@ -523,7 +523,7 @@ class TrademarkService extends ServiceBase {
...
@@ -523,7 +523,7 @@ class TrademarkService extends ServiceBase {
}
else
{
}
else
{
pushObj
[
"opNotes"
]
=
"已提交"
;
pushObj
[
"opNotes"
]
=
"已提交"
;
}
}
if
(
tm
.
tmSourceType
==
"1024"
||
tm
.
tmSourceType
==
"2048"
||
tm
.
tmSourceType
==
"4096"
)
{
//center-channel
if
(
tm
.
tmSourceType
==
"1024"
||
tm
.
tmSourceType
==
"2048"
||
tm
.
tmSourceType
==
"4096"
||
tm
.
tmSourceType
==
"8192"
)
{
//center-channel
var
channelPushObj
=
{
var
channelPushObj
=
{
orderNo
:
tm
.
channelOrderNum
,
orderNo
:
tm
.
channelOrderNum
,
tbCode
:
keyCode
,
tbCode
:
keyCode
,
...
@@ -618,7 +618,7 @@ class TrademarkService extends ServiceBase {
...
@@ -618,7 +618,7 @@ class TrademarkService extends ServiceBase {
channelOrderNum
:
tm
.
channelOrderNum
,
channelOrderNum
:
tm
.
channelOrderNum
,
tmRegistNum
:
code
tmRegistNum
:
code
}
}
if
(
tm
.
tmSourceType
==
"1024"
||
tm
.
tmSourceType
==
"2048"
||
tm
.
tmSourceType
==
"4096"
)
{
//center-channel
if
(
tm
.
tmSourceType
==
"1024"
||
tm
.
tmSourceType
==
"2048"
||
tm
.
tmSourceType
==
"4096"
||
tm
.
tmSourceType
==
"8192"
)
{
//center-channel
var
channelPushObj
=
{
var
channelPushObj
=
{
orderNo
:
tm
.
channelOrderNum
,
orderNo
:
tm
.
channelOrderNum
,
tbCode
:
proxyCode
,
tbCode
:
proxyCode
,
...
...
fqboss/app/config/settings.js
View file @
65e916df
...
@@ -48,7 +48,7 @@ var settings = {
...
@@ -48,7 +48,7 @@ var settings = {
if
(
channelCode
==
"jd"
)
{
if
(
channelCode
==
"jd"
)
{
return
"https://tm.plus.jdcloud.com"
;
//"http://gsbapi.plus.jdcloud.com";
return
"https://tm.plus.jdcloud.com"
;
//"http://gsbapi.plus.jdcloud.com";
}
}
if
(
channelCode
==
"gsbh5"
||
channelCode
==
"youke"
||
channelCode
==
"zhongchuan"
)
{
if
(
channelCode
==
"gsbh5"
||
channelCode
==
"youke"
||
channelCode
==
"zhongchuan"
||
channelCode
==
"gsbweb"
)
{
return
"http://center-order-service"
;
return
"http://center-order-service"
;
}
}
if
(
channelCode
==
"AliTm"
)
{
if
(
channelCode
==
"AliTm"
)
{
...
...
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