change location format for GetUutInfo
This commit is contained in:
parent
a74c7193c4
commit
232a076b67
BIN
APIServer.exe
BIN
APIServer.exe
Binary file not shown.
@ -417,7 +417,7 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
|
|||||||
//Get Location Information
|
//Get Location Information
|
||||||
loc, locTime := "", ""
|
loc, locTime := "", ""
|
||||||
if last != "" {
|
if last != "" {
|
||||||
qry := dbo.QueryRow(fmt.Sprintf(`SELECT CONCAT_WS('-',line,col,row,num) AS loc, update_time FROM locinfo WHERE mac='%s'`, ul.MAC))
|
qry := dbo.QueryRow(fmt.Sprintf(`SELECT CONCAT_WS(' ', line, CONCAT_WS('-',col,row,num)) AS loc, update_time FROM locinfo WHERE mac='%s'`, ul.MAC))
|
||||||
qry.Scan(&loc, &locTime)
|
qry.Scan(&loc, &locTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user