摘要: #防止sql注入,但是会把里面的内容默认为是字符串 $使用场景:如果条件查询要加入数据权限判断,那么久需要使用$符号而不是#符号 阅读全文
posted @ 2021-10-28 17:59 LHX2018 阅读(237) 评论(0) 推荐(0) 编辑
摘要: xxxQueryWrapper.eq("is_deleted","0").apply(deptUser.getDeptId() != null,"dept_id = '"+deptUser.getDeptId()+"' or FIND_IN_SET ( dept_id , '"+deptUser.g 阅读全文
posted @ 2021-10-28 17:50 LHX2018 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://blog.csdn.net/weixin_44162337/article/details/107828366 1.最常见:根据id更新,xxxService.updateById(user); 2.1条件构造器,比如说根据订单编号更新 UpdateWrapper<Orde 阅读全文
posted @ 2021-10-28 17:46 LHX2018 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: 和其他的定时任务框架比较: 有网页端,可以很方便的修改时间 在线查看日志 本篇文章只讲述如何在开发环境安装XXL-JOB,后续会在 软件安装教程 发布<如何使用Docker安装XXL-JOB>. 参考文档:https://www.jianshu.com/p/fc19b2dfef0e 1.下载XXL- 阅读全文
posted @ 2021-10-28 17:37 LHX2018 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 使用场景: 定时任务报错 消息推送 日志报错提醒 1.导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependenc 阅读全文
posted @ 2021-10-28 17:21 LHX2018 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://www.cnblogs.com/hongdada/p/9259965.html https://blog.csdn.net/qq_41890954/article/details/113994681 导入依赖: <dependency> <groupId>com.squa 阅读全文
posted @ 2021-10-28 17:15 LHX2018 阅读(968) 评论(0) 推荐(0) 编辑
摘要: LocalDateTime.now().plusDays(-1).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) 阅读全文
posted @ 2021-10-28 17:06 LHX2018 阅读(977) 评论(0) 推荐(0) 编辑
摘要: 使用Hutool的工具类NumberUtil String custRatio = NumberUtil.decimalFormat("#.##%", saleRatio); 参考文档:https://www.bookstack.cn/read/hutool/1ac79ebaf52a0372.md 阅读全文
posted @ 2021-10-28 17:05 LHX2018 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 解决方法: spring: main: allow-bean-definition-overriding: true 参考博客:https://www.cnblogs.com/lifelikeplay/p/14085256.html 阅读全文
posted @ 2021-10-28 17:01 LHX2018 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 创建了两个远程调用类,一个是调用退款的,一个是调用折扣的 但是两个调用类是调用的同一个微服务 都叫@FeignClient(value = "xxx-shop") 如何解决:同一个服务的接口,不要分散的写在多个接口类中,而是放到同一个接口类中定义调用 参看博客: https://blog 阅读全文
posted @ 2021-10-28 16:59 LHX2018 阅读(864) 评论(0) 推荐(0) 编辑