From 7f953d9aa0e7d4fcbe3c366c7f9f0b3f847f12bd Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.137.1> Date: 星期六, 19 一月 2019 09:16:08 +0800 Subject: [PATCH] Merge branch 'dev_lxw' of https://gitlab.com/whyclxw1/gx_tieta.git into dev_lxw --- gx_tieta/src/com/fgkj/dao/impl/BattMap_informationImpl.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/gx_tieta/src/com/fgkj/dao/impl/BattMap_informationImpl.java b/gx_tieta/src/com/fgkj/dao/impl/BattMap_informationImpl.java index 2430d17..de58699 100644 --- a/gx_tieta/src/com/fgkj/dao/impl/BattMap_informationImpl.java +++ b/gx_tieta/src/com/fgkj/dao/impl/BattMap_informationImpl.java @@ -51,7 +51,14 @@ binformation.getAddress(),binformation.getLongitude(),binformation.getLatitude()}); return bl; } - + //9.1褰曞叆鏈烘埧淇℃伅(鎵嬫満绔�) + public boolean replace(Object obj) { + BattMap_information binformation=(BattMap_information) obj; + String sql="replace into web_site.tb_battmap_information(StationId,StationName,address,longitude,latitude) values(?,?,?,?,?)"; + Boolean bl=DAOHelper.executeUpdate(DBUtil.getConn(), sql, new Object[]{binformation.getStationId(),binformation.getStationName(), + binformation.getAddress(),binformation.getLongitude(),binformation.getLatitude()}); + return bl; + } public boolean update(Object obj) { BattMap_information binformation=(BattMap_information) obj; String sql="update web_site.tb_battmap_information set StationId=?,StationName=?,address=?,longitude=?,latitude=?,information=? where num=?"; -- Gitblit v1.9.1