From 2f10da83d8087ed1b47b8edc9ff29ca5248f504d Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@192.168.10.26> Date: 星期一, 15 十月 2018 14:31:52 +0800 Subject: [PATCH] 基站统计 --- gx_tieta/src/com/fgkj/dao/impl/Batt_attentionImpl.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/gx_tieta/src/com/fgkj/dao/impl/Batt_attentionImpl.java b/gx_tieta/src/com/fgkj/dao/impl/Batt_attentionImpl.java index dc13c8c..f04b312 100644 --- a/gx_tieta/src/com/fgkj/dao/impl/Batt_attentionImpl.java +++ b/gx_tieta/src/com/fgkj/dao/impl/Batt_attentionImpl.java @@ -86,6 +86,14 @@ }else{ baseSql+=station1SqlF; } + //鐢ㄤ簬甯傜骇绛涢�� + String station2SqlT=" and stationname2!=? ";//鍏ㄩ儴 + String station2SqlF=" and stationname2=? "; + if(binf.getStationName2().equals("")){ + baseSql+=station2SqlT; + }else{ + baseSql+=station2SqlF; + } //鐢ㄤ簬鏈烘埧绔欑偣 String stationSqlT=" and stationname!=? ";//鍏ㄩ儴 String stationSqlF=" and stationname=? "; @@ -118,7 +126,7 @@ //System.out.println(sql); List<BattInf> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{ binf.getNum() - ,binf.getStationName1(),binf.getStationName(),binf.getBattGroupId(),binf.getMonNum() + ,binf.getStationName1(),binf.getStationName2(),binf.getStationName(),binf.getBattGroupId(),binf.getMonNum() ,(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() { public List getResults(ResultSet rs) { -- Gitblit v1.9.1