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
9337228e
Commit
9337228e
authored
Dec 04, 2019
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmt api
parent
2128f4f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
igirl-web/app/base/api/impl/tmtransactionApi.js
+30
-0
No files found.
igirl-web/app/base/api/impl/tmtransactionApi.js
0 → 100644
View file @
9337228e
var
System
=
require
(
"../../system"
);
var
settings
=
require
(
"../../../config/settings"
);
const
ApiBase
=
require
(
"../api.base"
);
const
logCtl
=
System
.
getObject
(
"web.oplogCtl"
);
class
TmtransactionApi
extends
ApiBase
{
constructor
()
{
super
();
this
.
trademarktransactionSve
=
System
.
getObject
(
"service.trademarktransactionSve"
);
this
.
companyS
=
System
.
getObject
(
"service.companySve"
);
};
//获取某类型的交易商标 post
async
findByTmType
(
obj
){
if
(
!
obj
.
company_id
){
//获取当前域名
var
hostname
=
"jiaoyi.gongsibao.com"
;
// console.log("xccccccccccccccccccccccccccccccccccccccc", hostname);
//按照hostname去查找公司站点信息
var
companytmp
=
await
this
.
companyS
.
findOne
({
domainname
:
hostname
,
isEnabled
:
true
});
if
(
companytmp
){
obj
.
company_id
=
companytmp
.
id
;
}
}
try
{
return
this
.
trademarktransactionSve
.
findByTmType
(
obj
);
}
catch
(
error
)
{
return
{
code
:
-
200
,
msg
:
"操作失败"
};
}
}
}
module
.
exports
=
TmtransactionApi
;
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