摘要: 1,在pom.xml中注意添加poi依赖 <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.1</version> </dependency> 2,//Controller 阅读全文
posted @ 2020-02-27 14:27 唯恐不及 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 查询时注意: (模糊查询 a.device_id LIKE CONCAT('%',#{deviceId},'%')) 1,查询时尽量不要用select * ,查询到精确的字段 2,查询结果只要一条或最大最小值时,添加 limit 1; //可以在查到数据后避免接下来不必要的查询 3,where条件语 阅读全文
posted @ 2020-02-27 12:13 唯恐不及 阅读(382) 评论(0) 推荐(0) 编辑
摘要: //Controller /** * 修改 */ @ResponseBody @RequestMapping("/update") @RequiresPermissions("xxx:detail:update") public R update(@RequestBody DetailEntity 阅读全文
posted @ 2020-02-27 11:34 唯恐不及 阅读(400) 评论(0) 推荐(0) 编辑
摘要: Controller层 /** * 删除 */ @ResponseBody @RequestMapping("/delete") @RequiresPermissions("xxxx:detail:delete") public R delete(@RequestBody Integer[] ids 阅读全文
posted @ 2020-02-27 10:25 唯恐不及 阅读(719) 评论(0) 推荐(0) 编辑