fix modbus api error

This commit is contained in:
Jay 2017-03-27 16:26:58 +08:00
parent 37d854334d
commit 57c8083012

View File

@ -350,7 +350,7 @@ router
res.db.database = config.db.db5; res.db.database = config.db.db5;
res.db.connect(); res.db.connect();
let query = "select count(*) sa c from ??.?? i \ let query = "select count(*) as c from ??.?? i \
left join ??.?? i2 \ left join ??.?? i2 \
on i2.`type` = i.`type` \ on i2.`type` = i.`type` \
and i2.`addr` = ? \ and i2.`addr` = ? \