摘要: 直接上代码// 导出excel方法 @RequestMapping("exportExcel") public void exportExcel(HttpServletRequest request, HttpServletResponse response) { L... 阅读全文
posted @ 2015-12-22 17:15 huanshare 阅读(1700) 评论(0) 推荐(0) 编辑
摘要: 具体过程不写了,直接上代码jsp代码$("#uplodefile").uploadify({ 'swf': '/statics/uploadify/uploadify.swf', 'uploader': '/contacts/method1... 阅读全文
posted @ 2015-12-17 16:49 huanshare 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 搭建SSM系统,首先要了解整个过程:1、创建spring-mvc项目2、在maven中添加要引用的jar包(使用框架都是较新的版本:)3、 jdbc.xml +spring-mybatis.xml的配置,4、Log4j的配置5、配置 spring-mvc.xml+web.xml6、配置generat... 阅读全文
posted @ 2015-12-15 14:23 huanshare 阅读(3981) 评论(2) 推荐(2) 编辑
摘要: 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null可以在n... 阅读全文
posted @ 2015-11-30 11:51 huanshare 阅读(15710) 评论(7) 推荐(5) 编辑
摘要: 让ecshop用户名、手机号、email登陆方法, 仅适用于没有做过任何平台整合的ECSHOP网站修改文件:1、includes/modules/integrates/ecshop.php$this->field_email = 'email';在以上代码下面增加$this->field_phone... 阅读全文
posted @ 2015-10-16 12:48 huanshare 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 1、首先检测支付账户是否开通快捷支付服务,如果开通后,那么公钥是否上传(支付宝问题一定要找支付宝客服解决,找其他人没有用,支付宝客服可以帮你分析底层原因)2、修改app配置文件:alipay_callback地址为/PHP/payment/alipay/sdk/notify_url.php3、还有/... 阅读全文
posted @ 2015-06-30 15:46 huanshare 阅读(658) 评论(0) 推荐(0) 编辑
摘要: Oracle分页总汇 select * from(select a.*,rownum row_num from(select * from mytable t order by t.id desc) awhere rownum= 1 order by u_age desc; select *... 阅读全文
posted @ 2015-05-28 10:46 huanshare 阅读(440) 评论(0) 推荐(0) 编辑
摘要: Sqlserver数据库分页查询一直是Sqlserver的短板,闲来无事,想出几种方法,假设有表ARTICLE,字段ID、YEAR...(其他省略),数据53210条(客户真实数据,量不大),分页查询每页30条,查询第1500页(即第45001-45030条数据),字段ID聚集索引,YEAR无索引,... 阅读全文
posted @ 2014-10-30 12:43 huanshare 阅读(7972) 评论(13) 推荐(8) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace ProjectProgress.BLL{ /// /// 分页工具类 /// /// ... 阅读全文
posted @ 2014-10-24 10:29 huanshare 阅读(9044) 评论(0) 推荐(0) 编辑
摘要: // JavaScript Document/*** js分页类* @param iAbsolute 每页显示记录数* @param sTableId 分页表格属性ID值,为String* @param sTBodyId 分页表格TBODY的属性ID值,为String,此项为要分页的主体内容* @V... 阅读全文
posted @ 2014-07-29 13:26 huanshare 阅读(4643) 评论(0) 推荐(1) 编辑