Commit 28cb66b971e14d441e227661968b539068a00769

Authored by 芋道源码
Committed by Gitee
2 parents bfe7cf01 67df0026

!77 修复部门更新后本地缓存不更新问题

Merge pull request !77 from C_VS/master
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java
@@ -112,7 +112,7 @@ public class DeptServiceImpl implements DeptService { @@ -112,7 +112,7 @@ public class DeptServiceImpl implements DeptService {
112 if (maxUpdateTime == null) { // 如果更新时间为空,说明 DB 一定有新数据 112 if (maxUpdateTime == null) { // 如果更新时间为空,说明 DB 一定有新数据
113 log.info("[loadMenuIfUpdate][首次加载全量部门]"); 113 log.info("[loadMenuIfUpdate][首次加载全量部门]");
114 } else { // 判断数据库中是否有更新的部门 114 } else { // 判断数据库中是否有更新的部门
115 - if (deptMapper.selectExistsByUpdateTimeAfter(maxUpdateTime) != null) { 115 + if (deptMapper.selectExistsByUpdateTimeAfter(maxUpdateTime) == null) {
116 return null; 116 return null;
117 } 117 }
118 log.info("[loadMenuIfUpdate][增量加载全量部门]"); 118 log.info("[loadMenuIfUpdate][增量加载全量部门]");