gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/actions/BattInfAction.classBinary files differ
gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/dao/impl/BattInfImpl.classBinary files differ
gx_tieta/WebRoot/WEB-INF/classes/com/fgkj/services/BattInfServices.classBinary files differ
gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -396,7 +396,13 @@ result = ActionUtil.tojson(model); return SUCCESS; } //批量设置放电参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组 public String serchByDischarge(){ BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class); ServiceModel model = service.serchByDischarge(binf); result = ActionUtil.tojson(model); return SUCCESS; } //跨域访问获取所有电池组的信息<-------跨域-----------> public String searchInform_ky(){ //isAllowHeaders(); //允许跨域访问 gx_tieta/src/com/fgkj/dao/impl/BattInfImpl.java
@@ -4377,13 +4377,15 @@ //批量设置放电参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组 public List serchByDischarge(Object obj) { BattInf binf=(BattInf) obj; Page page=binf.getPage(); Connection conn=DBUtil.getConn(); String numberSql=" SELECT FOUND_ROWS() number"; String sql=" select SQL_CALC_FOUND_ROWS * from db_battinf.tb_battinf " + " where StationName1 like ? and StationName2 like ? and StationName3 like ? and StationName5 like ? " + " and GroupIndexInFBSDevice=? and MonVolStd=? " + " order by StationId asc,GroupIndexInFBSDevice asc "; List<BattInf> list=DAOHelper.executeQueryLimit(sql, conn, new Object[] {"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName3()+"%","%"+binf.getStationName5()+"%",binf.getGroupIndexInFBSDevice(),binf.getMonVolStd()}, new CallBack() { + " order by StationId asc,GroupIndexInFBSDevice asc " + " limit ?,? "; List<BattInf> list=DAOHelper.executeQueryLimit(sql, conn, new Object[] {"%"+binf.getStationName1()+"%","%"+binf.getStationName2()+"%","%"+binf.getStationName3()+"%","%"+binf.getStationName5()+"%",binf.getGroupIndexInFBSDevice(),binf.getMonVolStd(),(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() { @Override public List getResults(ResultSet rs) { gx_tieta/src/com/fgkj/services/BattInfServices.java
@@ -1028,6 +1028,20 @@ model.setData(battgroupid); return model; } //批量设置放电参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组 public ServiceModel serchByDischarge(Object obj){ List list=((BattInfImpl)dao).serchByDischarge(obj); if (list != null && list.size() > 0) { model.setCode(1); model.setData(list); model.setMsg("查询成功!"); }else{ model.setCode(0); model.setMsg("查询失败!"); } return model; } public static void main(String[] args) { //new BattInfServices().findMenu(); BattInf b=new BattInf();