|
@@ -262,8 +262,14 @@ public class WorkerWarrantyLogic {
|
|
|
|
|
|
WorkerWarrantyDetail workerWarrantyDetail = BeanUtil.toBean(workerWarranty, WorkerWarrantyDetail.class);
|
|
|
|
|
|
- List<WorkerWarrantyRefund> workerWarrantyRefunds = workerWarrantyRefundService.lambdaQuery().eq(WorkerWarrantyRefund::getWarrantyId, warrantyId).list();
|
|
|
- List<WorkerWarrantyPay> workerWarrantyPays = workerWarrantyPayService.lambdaQuery().eq(WorkerWarrantyPay::getWarrantyId, warrantyId).list();
|
|
|
+ List<WorkerWarrantyRefund> workerWarrantyRefunds = workerWarrantyRefundService.lambdaQuery()
|
|
|
+ .eq(WorkerWarrantyRefund::getWarrantyId, warrantyId)
|
|
|
+ .orderByDesc(WorkerWarrantyRefund::getRefundTime)
|
|
|
+ .list();
|
|
|
+ List<WorkerWarrantyPay> workerWarrantyPays = workerWarrantyPayService.lambdaQuery()
|
|
|
+ .eq(WorkerWarrantyPay::getWarrantyId, warrantyId)
|
|
|
+ .orderByDesc(WorkerWarrantyPay::getPayTime)
|
|
|
+ .list();
|
|
|
|
|
|
workerWarrantyDetail.setWorkerWarrantyPays(workerWarrantyPays);
|
|
|
workerWarrantyDetail.setWorkerWarrantyRefunds(workerWarrantyRefunds);
|