摘要: attr("onclick","new Calendar().show(this);") 阅读全文
posted @ 2016-05-17 15:03 神玄晓 阅读(89) 评论(0) 推荐(0) 编辑
摘要: <selectKey resultClass="string" keyProperty="partnerBindingRecordId"> SELECT to_char(sysdate,'yyyymmdd')||lpad(WLTDATA.SEQ_WLT_PARTNER_LOTTERY_LOG.nex 阅读全文
posted @ 2016-03-11 17:08 神玄晓 阅读(180) 评论(0) 推荐(0) 编辑
摘要: /** * 根据HttpServletRequest获取客户端IP地址. 包括对于设置过代理方式等情况 * * @param request * @return */public static String getIp(HttpServletRequest request) {String ip ... 阅读全文
posted @ 2015-12-03 17:29 神玄晓 阅读(161) 评论(0) 推荐(0) 编辑
摘要: /* * List传入 *公共方法 */public static boolean exportCsv(File file, List dataList) {boolean isSuccess = false;if(file == null || !file.getName().toUpperCas... 阅读全文
posted @ 2015-12-03 17:15 神玄晓 阅读(199) 评论(0) 推荐(0) 编辑
摘要: public class ZipHelper { public static void compress(InputStream is, OutputStream os, String entry) throws Exception{ byte[] bytes = new byte[1024 * 8... 阅读全文
posted @ 2015-11-24 10:27 神玄晓 阅读(130) 评论(0) 推荐(0) 编辑
摘要: HttpServletResponse response;//导出excel字段列表数组String[] header = new String[]{"日期","下单笔数","下单金额(元)", "退单笔数", "退单金额(元)"};//对应字段数组String[] attributes = new... 阅读全文
posted @ 2015-11-23 18:12 神玄晓 阅读(121) 评论(0) 推荐(0) 编辑
摘要: URLEncoder.encode(str, "UTF-8"); 阅读全文
posted @ 2015-11-23 17:57 神玄晓 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 建表:create table studentinfo( name varchar(20) , subject varchar(20), score number(3,1));插入记录:insert into studentinfo values('张三','语文',69);insert int... 阅读全文
posted @ 2015-11-20 17:05 神玄晓 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 处理千万级以上的数据提高查询速度的方法:1.应尽量避免在 where 子句中使用!=或操作符,否则将引擎放弃使用索引而进行全表扫描。2.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。3.应尽量避免在 where 子句中对字段进行 null 值... 阅读全文
posted @ 2015-11-20 17:03 神玄晓 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: var firstDate = new Date();firstDate.setDate(1); //第一天var endDate = new Date(firstDate);endDate.setMonth(firstDate.getMonth()+1);endDate.setDate(0); a... 阅读全文
posted @ 2015-11-20 17:01 神玄晓 阅读(160) 评论(0) 推荐(0) 编辑