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
8e5e3b66
Commit
8e5e3b66
authored
Sep 14, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmInfo update
parent
3a1a0af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
+7
-7
No files found.
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
View file @
8e5e3b66
...
@@ -343,8 +343,8 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -343,8 +343,8 @@ class TrademarktransactionService extends ServiceBase {
// if (!ab.channel_code) {
// if (!ab.channel_code) {
// return system.getResultFail(-104, "渠道码不能为空");
// return system.getResultFail(-104, "渠道码不能为空");
// }
// }
var
limit
=
ab
.
PageSize
?
Number
(
ab
.
P
ageSize
)
:
10
;
var
limit
=
ab
.
pageSize
?
Number
(
ab
.
p
ageSize
)
:
10
;
var
offset
=
ab
.
PageNumber
?
(
Number
(
ab
.
P
ageNumber
)
-
1
)
*
limit
:
0
var
offset
=
ab
.
pageNumber
?
(
Number
(
ab
.
p
ageNumber
)
-
1
)
*
limit
:
0
// var countObj = { channel_code: ab.channel_code };
// var countObj = { channel_code: ab.channel_code };
// var whereObj = { channel_code: ab.channel_code };
// var whereObj = { channel_code: ab.channel_code };
var
countObj
=
{
};
var
countObj
=
{
};
...
@@ -361,13 +361,13 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -361,13 +361,13 @@ class TrademarktransactionService extends ServiceBase {
whereObj
[
"channel_name"
]
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
ab
.
channel_name
+
"%"
};
whereObj
[
"channel_name"
]
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
ab
.
channel_name
+
"%"
};
countObj
[
"channel_name"
]
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
ab
.
channel_name
+
"%"
};
countObj
[
"channel_name"
]
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
ab
.
channel_name
+
"%"
};
}
}
if
(
ab
.
stdate
&&
ab
.
endate
)
{
// 专用期限
if
(
ab
.
tm_start_day
&&
ab
.
tm_end_day
)
{
// 专用期限
// whereObj["created_at"] = { [this.db.Op.between]: [ab.stdate, ab.endate] };
// whereObj["created_at"] = { [this.db.Op.between]: [ab.stdate, ab.endate] };
// countObj["created_at"] = { [this.db.Op.between]: [ab.stdate, ab.endate] };
// countObj["created_at"] = { [this.db.Op.between]: [ab.stdate, ab.endate] };
whereObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
stdate
};
whereObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
tm_start_day
};
whereObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
endate
};
whereObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
tm_end_day
};
countObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
stdate
};
countObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
tm_start_day
};
countObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
endate
};
countObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
tm_end_day
};
}
}
if
(
ab
.
tmList
)
{
// 申请主体
if
(
ab
.
tmList
)
{
// 申请主体
whereObj
[
"id"
]
=
{
[
this
.
db
.
Op
.
in
]:
ab
.
tmList
};
whereObj
[
"id"
]
=
{
[
this
.
db
.
Op
.
in
]:
ab
.
tmList
};
...
...
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