删除
This commit is contained in:
@@ -9,8 +9,6 @@ import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import top.wms.admin.common.constant.CacheConstants;
|
||||
import top.wms.admin.open.mapper.AppMapper;
|
||||
import top.wms.admin.open.model.entity.AppDO;
|
||||
import top.wms.admin.system.mapper.*;
|
||||
import top.wms.admin.system.model.entity.*;
|
||||
import top.continew.starter.cache.redisson.util.RedisUtils;
|
||||
@@ -44,7 +42,6 @@ public class DemoEnvironmentJob {
|
||||
private final MenuMapper menuMapper;
|
||||
private final DeptMapper deptMapper;
|
||||
|
||||
private final AppMapper appMapper;
|
||||
private final ClientMapper clientsMapper;
|
||||
|
||||
private static final Long DELETE_FLAG = 10000L;
|
||||
@@ -82,8 +79,6 @@ public class DemoEnvironmentJob {
|
||||
this.log(menuCount, "菜单");
|
||||
Long deptCount = deptMapper.lambdaQuery().gt(DeptDO::getId, DEPT_FLAG).count();
|
||||
this.log(deptCount, "部门");
|
||||
Long appCount = appMapper.lambdaQuery().gt(AppDO::getId, DELETE_FLAG).count();
|
||||
this.log(appCount, "应用");
|
||||
Long clientCount = clientsMapper.lambdaQuery().gt(ClientDO::getId, DELETE_FLAG).count();
|
||||
this.log(clientCount, "终端");
|
||||
InterceptorIgnoreHelper.handle(IgnoreStrategy.builder().blockAttack(true).build());
|
||||
@@ -117,7 +112,6 @@ public class DemoEnvironmentJob {
|
||||
.gt(MenuDO::getId, DELETE_FLAG)
|
||||
.remove());
|
||||
this.clean(deptCount, "部门", null, () -> deptMapper.lambdaUpdate().gt(DeptDO::getId, DEPT_FLAG).remove());
|
||||
this.clean(appCount, "应用", null, () -> appMapper.lambdaUpdate().gt(AppDO::getId, DEPT_FLAG).remove());
|
||||
this.clean(clientCount, "终端", null, () -> clientsMapper.lambdaUpdate()
|
||||
.gt(ClientDO::getId, DEPT_FLAG)
|
||||
.remove());
|
||||
|
||||
Reference in New Issue
Block a user