fix(registration): 查询选手时过滤已删除记录
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -86,6 +86,7 @@ public class MartialRegistrationOrderServiceImpl extends ServiceImpl<MartialRegi
|
|||||||
|
|
||||||
LambdaQueryWrapper<MartialAthlete> athleteWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<MartialAthlete> athleteWrapper = new LambdaQueryWrapper<>();
|
||||||
athleteWrapper.in(MartialAthlete::getOrderId, orderIds);
|
athleteWrapper.in(MartialAthlete::getOrderId, orderIds);
|
||||||
|
athleteWrapper.eq(MartialAthlete::getIsDeleted, 0);
|
||||||
List<MartialAthlete> allAthletes = athleteService.list(athleteWrapper);
|
List<MartialAthlete> allAthletes = athleteService.list(athleteWrapper);
|
||||||
|
|
||||||
Map<Long, List<MartialAthlete>> athletesByOrder = allAthletes.stream()
|
Map<Long, List<MartialAthlete>> athletesByOrder = allAthletes.stream()
|
||||||
@@ -200,6 +201,7 @@ public class MartialRegistrationOrderServiceImpl extends ServiceImpl<MartialRegi
|
|||||||
// Get athletes for this order
|
// Get athletes for this order
|
||||||
LambdaQueryWrapper<MartialAthlete> athleteWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<MartialAthlete> athleteWrapper = new LambdaQueryWrapper<>();
|
||||||
athleteWrapper.eq(MartialAthlete::getOrderId, order.getId());
|
athleteWrapper.eq(MartialAthlete::getOrderId, order.getId());
|
||||||
|
athleteWrapper.eq(MartialAthlete::getIsDeleted, 0);
|
||||||
List<MartialAthlete> athletes = athleteService.list(athleteWrapper);
|
List<MartialAthlete> athletes = athleteService.list(athleteWrapper);
|
||||||
|
|
||||||
if (!athletes.isEmpty()) {
|
if (!athletes.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user