Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-serivce
/
glsx-insurance-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7c3d689d
authored
Nov 25, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改设备登录日志接口
1 parent
f10a1c64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
app/service/biz/devices.js
app/service/biz/devices.js
View file @
7c3d689
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: chenwq
* @Author: chenwq
* @Date: 2020-06-16 10:02:39
* @Date: 2020-06-16 10:02:39
* @Last Modified by: huyue
* @Last Modified by: huyue
* @Last Modified time: 2020-11-25 1
4:23:10
* @Last Modified time: 2020-11-25 1
6:01:28
* 设备信息
* 设备信息
*/
*/
...
@@ -71,8 +71,7 @@ class DevicesService extends Service {
...
@@ -71,8 +71,7 @@ class DevicesService extends Service {
}]
}]
likeArr
.
map
(
item
=>
{
likeArr
.
map
(
item
=>
{
if
(
searcher
[
item
.
name
])
{
if
(
searcher
[
item
.
name
])
{
console
.
log
(
searcher
[
item
.
name
])
where
[
item
.
sqlName
]
=
{
where
[
searcher
[
item
.
sqlName
]]
=
{
[
Op
.
like
]:
`%
${
searcher
[
item
.
name
]}
%`
[
Op
.
like
]:
`%
${
searcher
[
item
.
name
]}
%`
}
}
}
}
...
@@ -111,6 +110,9 @@ class DevicesService extends Service {
...
@@ -111,6 +110,9 @@ class DevicesService extends Service {
offset
,
offset
,
limit
:
+
size
,
limit
:
+
size
,
where
,
where
,
order
:
[
[
"active_time"
,
"DESC"
]
],
raw
:
true
,
raw
:
true
,
// include: [{
// include: [{
// model: this.MDSM,
// model: this.MDSM,
...
@@ -145,8 +147,6 @@ class DevicesService extends Service {
...
@@ -145,8 +147,6 @@ class DevicesService extends Service {
timeout
:
3000
,
timeout
:
3000
,
})
})
let
data
=
result
.
data
.
split
(
'\n'
)
let
data
=
result
.
data
.
split
(
'\n'
)
console
.
log
(
'---------'
)
console
.
log
(
result
.
data
,
data
)
let
datalist
=
[]
let
datalist
=
[]
if
(
data
[
1
])
{
if
(
data
[
1
])
{
// 有数据,去掉头尾
// 有数据,去掉头尾
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment