摘要: 使用easyUI框架在页面做动态加载select下拉框的option时,会出现值已经通过ajax取到并且可以alert弹出但无法追加到指定id的select下。 解决办法: 1、页面select加class="easyui-combobox" 2、js文件内容 阅读全文
posted @ 2018-01-31 16:35 shuzu渊 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 原因: MySQL 5.7.5及以上功能依赖检测功能。如果启用了ONLY_FULL_GROUP_BY SQL模式(默认情况下),MySQL将拒绝选择列表,HAVING条件或ORDER BY列表的查询引用在GROUP BY子句中既未命名的非集合列,也不在功能上依赖于它们。(5.7.5之前,MySQL没 阅读全文
posted @ 2018-01-31 16:15 shuzu渊 阅读(194) 评论(0) 推荐(0) 编辑
摘要: //系统当前时间var now = new Date();var year = now.getFullYear();var month = now.getMonth() + 1;var day = now.getDate();var currentime = year + "-" + month + 阅读全文
posted @ 2017-10-27 18:20 shuzu渊 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 方法一: select * from 表名 where dict_value = #{dictValue} order by 字段*1 asc 方法二: select * from 表名 where dict_value = #{dictValue} order by 字段+0 asc 阅读全文
posted @ 2017-10-27 18:14 shuzu渊 阅读(162) 评论(0) 推荐(0) 编辑
摘要: /** * 导出Word表格 * @author Saffi */ @RequestMapping("exportWord.action") public void exportWord(HttpServletResponse response) throws IOException { try { 阅读全文
posted @ 2017-10-27 17:46 shuzu渊 阅读(659) 评论(0) 推荐(0) 编辑
摘要: /** * 导出Excel * @author Saffi */ @RequestMapping("exportExcel.action") public void exportExcel(HttpServletResponse response) throws IOException { try 阅读全文
posted @ 2017-10-27 17:35 shuzu渊 阅读(2272) 评论(1) 推荐(0) 编辑
摘要: select * from table where name not in ('小花',小草') 阅读全文
posted @ 2017-10-25 10:53 shuzu渊 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: select * from table where name in('小明','小红') 阅读全文
posted @ 2017-10-25 10:45 shuzu渊 阅读(4391) 评论(0) 推荐(1) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date;/** * @author Saffi * @date 2017- 阅读全文
posted @ 2017-10-25 10:16 shuzu渊 阅读(5593) 评论(1) 推荐(0) 编辑
摘要: 1、FileToZip接口类 /** * */ package com.sale.util; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import ja 阅读全文
posted @ 2017-10-17 12:20 shuzu渊 阅读(4318) 评论(2) 推荐(0) 编辑