From 9dc2284659816c2a73e8483a44e8977d090f65c1 Mon Sep 17 00:00:00 2001 From: hdw <hdw@192.168.7.127> Date: 星期四, 10 一月 2019 14:52:23 +0800 Subject: [PATCH] 批量核容测试中去除单体数量和标称单体电压添加负载电流和在线电压 --- 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