|
@@ -1613,7 +1613,7 @@ public class UserLogic {
|
|
|
public WorkerWarrantyDetal warranty() {
|
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat();
|
|
|
|
|
|
- WorkerWarranty workerWarranty = workerWarrantyService.lambdaQuery().eq(WorkerWarranty::getWorkerId, currentCompanyWechat.getUser())
|
|
|
+ WorkerWarranty workerWarranty = workerWarrantyService.lambdaQuery().eq(WorkerWarranty::getWorkerId, currentCompanyWechat.getUser().getUserId())
|
|
|
.last("limit 1").one();
|
|
|
|
|
|
if (workerWarranty == null)
|
|
@@ -1621,8 +1621,10 @@ public class UserLogic {
|
|
|
|
|
|
WorkerWarrantyDetal workerWarrantyDetal = BeanUtil.toBean(workerWarranty, WorkerWarrantyDetal.class);
|
|
|
|
|
|
- List<WorkerWarrantyRefund> workerWarrantyRefunds = workerWarrantyRefundService.lambdaQuery().eq(WorkerWarrantyRefund::getWarrantyId, workerWarranty.getWarrantyId()).list();
|
|
|
- List<WorkerWarrantyPay> workerWarrantyPays = workerWarrantyPayService.lambdaQuery().eq(WorkerWarrantyPay::getWarrantyId, workerWarranty.getWarrantyId()).list();
|
|
|
+ List<WorkerWarrantyRefund> workerWarrantyRefunds = workerWarrantyRefundService.lambdaQuery()
|
|
|
+ .eq(WorkerWarrantyRefund::getWarrantyId, workerWarranty.getWarrantyId()).list();
|
|
|
+ List<WorkerWarrantyPay> workerWarrantyPays = workerWarrantyPayService.lambdaQuery()
|
|
|
+ .eq(WorkerWarrantyPay::getWarrantyId, workerWarranty.getWarrantyId()).list();
|
|
|
|
|
|
List<WorkerWarrantyPrice> workerWarrantyPrices = new ArrayList<>();
|
|
|
|