|
@@ -104,6 +104,7 @@ public class CommissionRecordService {
|
|
|
List<Withdraw> withdraws = withdrawRepo.findAllByUserId(userId);
|
|
List<Withdraw> withdraws = withdrawRepo.findAllByUserId(userId);
|
|
|
withdraws.forEach(withdraw ->
|
|
withdraws.forEach(withdraw ->
|
|
|
my.add(CommissionRecordDTO.builder()
|
|
my.add(CommissionRecordDTO.builder()
|
|
|
|
|
+ .id(withdraw.getId())
|
|
|
.userId(userId)
|
|
.userId(userId)
|
|
|
.amount(withdraw.getAmount().negate())
|
|
.amount(withdraw.getAmount().negate())
|
|
|
.createdAt(withdraw.getCreatedAt())
|
|
.createdAt(withdraw.getCreatedAt())
|
|
@@ -112,6 +113,7 @@ public class CommissionRecordService {
|
|
|
.withdrawStatus(withdraw.getStatus())
|
|
.withdrawStatus(withdraw.getStatus())
|
|
|
.build()
|
|
.build()
|
|
|
));
|
|
));
|
|
|
|
|
+ my.sort((a, b) -> b.getCreatedAt().compareTo(a.getCreatedAt()));
|
|
|
return my;
|
|
return my;
|
|
|
|
|
|
|
|
}
|
|
}
|