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
303d4fd1
Commit
303d4fd1
authored
May 21, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getApplyNameByChannelOrderNo
parent
26d28db6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
+31
-1
fqboss/app/base/api/impl/tmsub.js
+17
-0
fqboss/app/base/service/impl/trademarkSve.js
+14
-1
No files found.
fqboss/app/base/api/impl/tmsub.js
View file @
303d4fd1
...
...
@@ -545,5 +545,22 @@ class TmSub {
}
}
//**********批量更新支付状态---结束 */
//根据渠道订单号获取申请人信息(渠道订单号非渠道交付单号)
async
getApplyNameByChannelOrderNo
(
pobj
){
try
{
var
result
=
await
this
.
trademarkS
.
getApplyNameByChannelOrderNo
(
pobj
);
return
result
;
}
catch
(
e
)
{
//日志记录
logCtl
.
error
({
optitle
:
"根据渠道订单号获取申请人信息异常---error"
,
op
:
"base/api/impl/tmsub/getApplyNameByChannelOrderNo"
,
content
:
e
.
stack
,
clientIp
:
""
});
return
{
code
:
-
200
,
err
:
e
.
stack
};
}
}
}
module
.
exports
=
TmSub
;
fqboss/app/base/service/impl/trademarkSve.js
View file @
303d4fd1
...
...
@@ -1590,7 +1590,20 @@ class TrademarkService extends ServiceBase {
}
//----------------------------------1688商标状态修改 结束----------------------------------------------------------------
async
getApplyNameByChannelOrderNo
(
pobj
){
if
(
!
pobj
||
!
pobj
.
channelOrderNo
){
return
{
code
:
-
100
,
msg
:
"channelOrderNo is empty!"
}
}
var
tm
=
await
this
.
dao
.
model
.
findOne
({
where
:
{
channelOrderListInfo
:{[
this
.
db
.
Op
.
like
]:
"%"
+
pobj
.
channelOrderNo
+
"%"
}},
attributes
:[
"applyName"
],
raw
:
true
});
if
(
tm
&&
tm
.
applyName
){
return
{
code
:
1
,
data
:
tm
.
applyName
}
}
return
{
code
:
-
101
,
msg
:
"未知申请人"
};
}
}
module
.
exports
=
TrademarkService
;
// var task = new TrademarkService();
...
...
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