摘要: public void downLoad(HttpServletResponse response, HttpServletRequest request) { String id = request.getParameter("id");// id CownExcel cownExcel = cu 阅读全文
posted @ 2017-02-14 11:16 JLCUI 阅读(228) 评论(0) 推荐(0) 编辑
摘要: private void exportExcel(String fileName, List<Customer> customers) { WritableWorkbook wwb; FileOutputStream fos; try { String savePath = ConfigUtil.p 阅读全文
posted @ 2017-02-14 11:14 JLCUI 阅读(947) 评论(0) 推荐(0) 编辑
摘要: <task:scheduled ref="ExcelController" method="customerExcel" cron="0 0 0 0 1/1 ?"/> 类名:ExcelController 方法:customerExcel 自动任务时间选择:cron(网上可以查到匹配参数) 阅读全文
posted @ 2017-02-14 11:08 JLCUI 阅读(186) 评论(0) 推荐(0) 编辑
摘要: $('#dg').datagrid({ url:'<%=request.getContextPath()%>/customer/customerExcelList', toolbar:$('#toolbar'), rownumbers:true, columns : [[{field:'id',hi 阅读全文
posted @ 2017-02-14 10:12 JLCUI 阅读(764) 评论(0) 推荐(0) 编辑
摘要: GSON josn =new Gson() IllegalCity illegalCity = new Gson().fromJson(result, IllegalCity.class); 阅读全文
posted @ 2017-02-10 15:26 JLCUI 阅读(170) 评论(0) 推荐(0) 编辑
摘要: MYSQL JAVA int INTEGER decimal BigDecimal datetime Date timestmap Date (默认值 CURRENT_TIMESTAMP) varchar String bigint Long tinyint Byte 阅读全文
posted @ 2017-01-20 17:10 JLCUI 阅读(427) 评论(0) 推荐(0) 编辑
摘要: private String[] getDateArrByWeek(Date startDate, Date endDate) { Calendar c = Calendar.getInstance(); List<String> list = new ArrayList<String>(); Si 阅读全文
posted @ 2017-01-20 10:28 JLCUI 阅读(153) 评论(0) 推荐(0) 编辑
摘要: useGeneratedKeys="true" //ID自增长 keyProperty="id" //返回主键ID <insert id="insertSelective" parameterType="net.joystart.activity.entity.Activities" useGene 阅读全文
posted @ 2017-01-19 11:21 JLCUI 阅读(1287) 评论(0) 推荐(0) 编辑
摘要: 原TITLE: <title>注册</title>修改结果:var activityids; $(function(){ activityids = getUrlParam("activityID"); var path = '../../../bagechuxing/customer/activi 阅读全文
posted @ 2017-01-18 09:41 JLCUI 阅读(7951) 评论(0) 推荐(0) 编辑
摘要: asyUI form的submit接口中没有提供error回调函数,网上一种解决方案是串联.success(function(){}).error(function(){}),然后通过jqXHR进行统一处理;但是我发现这种方案不论服务端返回正确还是异常,都会调用.error(),而且这样写代码也有点 阅读全文
posted @ 2017-01-13 11:53 JLCUI 阅读(1986) 评论(0) 推荐(0) 编辑