摘要: String where = "where 1=1"; if(PERSON != null && !"".equals(PERSON)&& PERSON!=""){ where += " and p.PERSON like '%" + PERSON + "%'"; } if(PRO_NAME != null &&!"".equals(PRO_NAME)&&PRO_NAME!="" 阅读全文
posted @ 2013-08-27 11:17 seiya05 阅读(233) 评论(0) 推荐(0)
摘要: 1、servlet ConnectionFactory factory = ConnectionFactory.getInstance(); ConnectionPool Pool = factory.getConnectionPool(); Connection conn = null; Statement stat = null; ResultSet rs = null; List list = new ArrayList(); try{ conn = Pool.getConnecti... 阅读全文
posted @ 2013-08-27 11:07 seiya05 阅读(321) 评论(0) 推荐(0)
摘要: Calendar cal = Calendar.getInstance(); // 获取数据库中rs结果集的日期字段 cal.setTime(rs.getDate("borrow_time")); if("一周".equals(rs.getString("BORROW_DEADLINE"))){ time=7; }else if("一个月".equals(rs.getString("BORROW_DEADLINE"))){ time=30; ... 阅读全文
posted @ 2013-08-27 10:57 seiya05 阅读(116) 评论(0) 推荐(0)