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
239618a9
Commit
239618a9
authored
Sep 09, 2020
by
v_vdywang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
4bd5d396
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
+8
-8
center-tmtransaction/app/base/utils/execClient.js
+1
-1
No files found.
center-tmtransaction/app/base/service/impl/tm/trademarktransactionSve.js
View file @
239618a9
...
...
@@ -294,8 +294,8 @@ class TrademarktransactionService extends ServiceBase {
if
(
!
ab
.
channel_code
)
{
return
system
.
getResultFail
(
-
104
,
"渠道码不能为空"
);
}
var
limit
=
ab
.
pageSize
?
Number
(
ab
.
p
ageSize
)
:
10
;
var
offset
=
ab
.
pageNumber
?
(
Number
(
ab
.
p
ageNumber
)
-
1
)
*
limit
:
0
var
limit
=
ab
.
PageSize
?
Number
(
ab
.
P
ageSize
)
:
10
;
var
offset
=
ab
.
PageNumber
?
(
Number
(
ab
.
P
ageNumber
)
-
1
)
*
limit
:
0
var
countObj
=
{
channel_code
:
ab
.
channel_code
};
var
whereObj
=
{
channel_code
:
ab
.
channel_code
};
if
(
ab
.
excelName
)
{
// 商标名称
...
...
@@ -310,13 +310,13 @@ class TrademarktransactionService extends ServiceBase {
whereObj
[
"channel_name"
]
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
ab
.
channel_name
+
"%"
};
countObj
[
"channel_name"
]
=
{
[
this
.
db
.
Op
.
like
]:
"%"
+
ab
.
channel_name
+
"%"
};
}
if
(
ab
.
tm_start_day
&&
ab
.
tm_end_day
)
{
// 专用期限
if
(
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] };
whereObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
tm_start_day
};
whereObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
tm_end_day
};
countObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
tm_start_day
};
countObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
tm_end_day
};
whereObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
stdate
};
whereObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
endate
};
countObj
[
"tm_start_day"
]
=
{
[
this
.
db
.
Op
.
gte
]:
ab
.
stdate
};
countObj
[
"tm_end_day"
]
=
{
[
this
.
db
.
Op
.
lte
]:
ab
.
endate
};
}
var
count
=
await
this
.
dao
.
findCount
({
where
:
countObj
});
var
list
=
await
this
.
dao
.
model
.
findAll
({
...
...
@@ -634,7 +634,7 @@ class TrademarktransactionService extends ServiceBase {
tmNumber
:
tminfos
[
i
].
code
}
sources
.
push
(
source
);
}
}
/tmtransaction/
action
/
trademarktransaction
/
springBoard
var
newdate
=
new
Date
();
var
strdate
=
""
if
(
newdate
.
getHours
()
>
12
)
{
...
...
center-tmtransaction/app/base/utils/execClient.js
View file @
239618a9
...
...
@@ -224,7 +224,7 @@ class ExecClient {
}
else
{
data
=
params
;
}
var
cmdStr
=
"curl -k -H 'Content-type:"
+
ContentType
+
"'"
;
var
cmdStr
=
"curl -
-user admines:adminGSBes. -
k -H 'Content-type:"
+
ContentType
+
"'"
;
if
(
headData
)
{
var
headDataKeys
=
Object
.
keys
(
headData
);
if
(
headDataKeys
.
length
>
0
)
{
...
...
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