![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
部分项目记录
文章平均质量分 72
待良人
旧人不覆,良人未归
展开
-
记一次(mybatis)sql传map,list,参数小结
1.简单的map传参map的键值传参只需要在sql中注明#key#,设置parameterClass="Map"即可select id from table where name=#id#2.list参数像list,array参数一般结合in使用,即需要在语句中遍历出来,网上看了下一般使用<foreach>标签(使用foreach标签,参数#{}里面...原创 2017-09-05 13:30:43 · 3613 阅读 · 0 评论 -
折线图+(饼图、柱状图)
遍历数据格式$.each(ajDataNew, function(key, val) { yset.push( val.thickmin); name = val.station; xset.push([val.inspectingdate +'/'+val.inspectingunit]) ;//为x轴数组赋值 growth += va原创 2017-07-17 14:50:07 · 890 阅读 · 0 评论 -
uploadify文件上传以及预览
1.项目中uploadify上传js格式$('#file_upload').uploadify({ 'swf' : '${ctx}/js/uploadify3.2.1/uploadify.swf', 'uploader':'${ctx}/upload/uploadAction!uploadFile?jsessionid='+"", 'buttonText' : '添原创 2017-07-17 14:31:29 · 563 阅读 · 0 评论 -
excel表格导入数据库后台JAVA方法
1.判断文件类型public class ReadExcal { /** * 对外提供读取excel 的方法 * */ public List> readExcel(File file) throws IOException { String fileName = file.getName(); System.out.prin原创 2017-07-17 14:19:39 · 871 阅读 · 0 评论 -
利用poi将数据库数据导出excel
spring+springmvc+mybatis1.控制层controller@Controller @RequestMapping("/user") public class UserController { @Autowired private UserService userService; /** * 用于导出excel的查询结果 * @param queryJ原创 2017-07-17 14:04:22 · 548 阅读 · 0 评论