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
8f9a97f1
Commit
8f9a97f1
authored
Sep 08, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tmInfo
parent
b7205feb
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 @
8f9a97f1
...
@@ -294,8 +294,8 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -294,8 +294,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
};
if
(
ab
.
excelName
)
{
// 商标名称
if
(
ab
.
excelName
)
{
// 商标名称
...
@@ -310,13 +310,13 @@ class TrademarktransactionService extends ServiceBase {
...
@@ -310,13 +310,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
};
}
}
var
count
=
await
this
.
dao
.
findCount
({
where
:
countObj
});
var
count
=
await
this
.
dao
.
findCount
({
where
:
countObj
});
var
list
=
await
this
.
dao
.
model
.
findAll
({
var
list
=
await
this
.
dao
.
model
.
findAll
({
...
...
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