记得上下班打卡 | git大法好,push需谨慎

Commit c5a041c5 authored by 胡佳晨's avatar 胡佳晨

admin 修改提交

parent fdf75669
......@@ -102,7 +102,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaQueryWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaQueryWrapper = Wrappers.lambdaQuery(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getUidRole, SlimeAuthorizationConst.PerformanceRole.CREATOR.getRole());
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getDeletedAt, null);
authorizationRecordsLambdaQueryWrapper.isNull(SlimeAuthorizationRecords::getDeletedAt);
SlimeAuthorizationRecords authorizationRecords = getOne(authorizationRecordsLambdaQueryWrapper);
// 是否已存在权限
......@@ -198,7 +198,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaQueryWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaQueryWrapper = Wrappers.lambdaQuery(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getUidRole, SlimeAuthorizationConst.PerformanceRole.AUDITOR.getRole());
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getDeletedAt, null);
authorizationRecordsLambdaQueryWrapper.isNull(SlimeAuthorizationRecords::getDeletedAt);
SlimeAuthorizationRecords authorizationRecords = getOne(authorizationRecordsLambdaQueryWrapper);
// 查询审核员
......@@ -221,7 +221,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaUpdateWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaUpdateWrapper = Wrappers.lambdaUpdate(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaUpdateWrapper
.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId)
.eq(SlimeAuthorizationRecords::getDeletedAt, null)
.isNull(SlimeAuthorizationRecords::getDeletedAt)
.eq(SlimeAuthorizationRecords::getAuthorizationRecordId, authorizationRecords.getAuthorizationRecordId());
authorizationRecordsLambdaUpdateWrapper.set(SlimeAuthorizationRecords::getUpdatedAt, authorizationRecords.getUpdatedAt());
authorizationRecordsLambdaUpdateWrapper.set(SlimeAuthorizationRecords::getDeletedAt, authorizationRecords.getDeletedAt());
......@@ -314,7 +314,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaQueryWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaQueryWrapper = Wrappers.lambdaQuery(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getUidRole, SlimeAuthorizationConst.PerformanceRole.SPONSOR.getRole());
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getDeletedAt, null);
authorizationRecordsLambdaQueryWrapper.isNull(SlimeAuthorizationRecords::getDeletedAt);
SlimeAuthorizationRecords authorizationRecords = getOne(authorizationRecordsLambdaQueryWrapper);
// 查询主办方
......@@ -337,7 +337,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaUpdateWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaUpdateWrapper = Wrappers.lambdaUpdate(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaUpdateWrapper
.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId)
.eq(SlimeAuthorizationRecords::getDeletedAt, null);
.isNull(SlimeAuthorizationRecords::getDeletedAt);
authorizationRecordsLambdaUpdateWrapper.and(wrapper -> wrapper
.eq(SlimeAuthorizationRecords::getAuthorizationRecordId, authorizationRecords.getAuthorizationRecordId())
.or(wrapper1 -> wrapper1
......@@ -445,7 +445,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaQueryWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaQueryWrapper = Wrappers.lambdaQuery(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId);
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getUidRole, SlimeAuthorizationConst.PerformanceRole.FIELDER.getRole());
authorizationRecordsLambdaQueryWrapper.eq(SlimeAuthorizationRecords::getDeletedAt, null);
authorizationRecordsLambdaQueryWrapper.isNull(SlimeAuthorizationRecords::getDeletedAt);
SlimeAuthorizationRecords authorizationRecords = getOne(authorizationRecordsLambdaQueryWrapper);
// 查询场地方
......@@ -468,7 +468,7 @@ public class SlimeAuthorizationRecordsAdminServiceImpl extends ServiceImpl<Slime
LambdaUpdateWrapper<SlimeAuthorizationRecords> authorizationRecordsLambdaUpdateWrapper = Wrappers.lambdaUpdate(SlimeAuthorizationRecords.class);
authorizationRecordsLambdaUpdateWrapper
.eq(SlimeAuthorizationRecords::getPerformanceId, performanceId)
.eq(SlimeAuthorizationRecords::getDeletedAt, null);
.isNull(SlimeAuthorizationRecords::getDeletedAt);
authorizationRecordsLambdaUpdateWrapper.and(wrapper -> wrapper
.eq(SlimeAuthorizationRecords::getAuthorizationRecordId, authorizationRecords.getAuthorizationRecordId())
.or(wrapper1 -> wrapper1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment