fix for put lamp
This commit is contained in:
1 parent
31c46b4a4a
commit
4abe8817e8
1 file changed
+6
-4
@@ -47,10 +47,12 @@ public class GisDbApi {
|
||||
}
|
||||
|
||||
public int putLamp(long id, double x, double y) {
|
||||
PUT_LAMP = PUT_LAMP.replaceFirst("@", Long.toString(id));
|
||||
PUT_LAMP = PUT_LAMP.replaceFirst("@", Double.toString(x));
|
||||
PUT_LAMP = PUT_LAMP.replaceFirst("@", Double.toString(y));
|
||||
return gisJdbcTemplate.update(PUT_LAMP, x, y);
|
||||
String sql = String.copyValueOf(PUT_LAMP.toCharArray());
|
||||
sql = sql.replaceFirst("@", Long.toString(id));
|
||||
sql = sql.replaceFirst("@", Double.toString(x));
|
||||
sql = sql.replaceFirst("@", Double.toString(y));
|
||||
System.out.print(PUT_LAMP);
|
||||
return gisJdbcTemplate.update(sql);
|
||||
}
|
||||
|
||||
//public Lamp get
|
||||
|
||||
Reference in new issue
Block a user