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

Merge pull request !77 from C_VS/master
This commit is contained in:
芋道源码 2022-02-10 17:17:27 +00:00 committed by Gitee
commit 28cb66b971
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -112,7 +112,7 @@ public class DeptServiceImpl implements DeptService {
if (maxUpdateTime == null) { // 如果更新时间为空说明 DB 一定有新数据
log.info("[loadMenuIfUpdate][首次加载全量部门]");
} else { // 判断数据库中是否有更新的部门
if (deptMapper.selectExistsByUpdateTimeAfter(maxUpdateTime) != null) {
if (deptMapper.selectExistsByUpdateTimeAfter(maxUpdateTime) == null) {
return null;
}
log.info("[loadMenuIfUpdate][增量加载全量部门]");