Commit 7c3d689d by 胡悦

修改设备登录日志接口

1 parent f10a1c64
......@@ -2,7 +2,7 @@
* @Author: chenwq
* @Date: 2020-06-16 10:02:39
* @Last Modified by: huyue
* @Last Modified time: 2020-11-25 14:23:10
* @Last Modified time: 2020-11-25 16:01:28
* 设备信息
*/
......@@ -71,8 +71,7 @@ class DevicesService extends Service {
}]
likeArr.map(item => {
if (searcher[item.name]) {
console.log(searcher[item.name])
where[searcher[item.sqlName]] = {
where[item.sqlName] = {
[Op.like]: `%${searcher[item.name]}%`
}
}
......@@ -111,6 +110,9 @@ class DevicesService extends Service {
offset,
limit: +size,
where,
order: [
["active_time", "DESC"]
],
raw: true,
// include: [{
// model: this.MDSM,
......@@ -145,8 +147,6 @@ class DevicesService extends Service {
timeout: 3000,
})
let data = result.data.split('\n')
console.log('---------')
console.log(result.data, data)
let datalist = []
if (data[1]) {
// 有数据,去掉头尾
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!