如何修改语句,使其除了当前登录的用户之外,还能获得每个用户的lat和lon?
我的代码如下:
var getLocationStatement = WL.Server.createSQLStatement("SELECT lat, lon FROM fieldservice.location WHERE userId = ?");
function getLocation(userId) {
return WL.Server.invokeSQLStatement({
preparedStatement : getLocationStatement,
parameters : [userId]
});
}