|
|
|
@ -17,6 +17,8 @@ package org.energy.modules.system.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.dayu.daf.core.tool.constant.DafConstant; |
|
|
|
|
import org.energy.modules.inspection.entity.InspectionTasks; |
|
|
|
|
import org.energy.modules.inspection.service.IInspectionTasksService; |
|
|
|
|
import org.energy.modules.leger.entity.EquipmentLedger; |
|
|
|
|
import org.energy.modules.leger.entity.ToolInventoryRecord; |
|
|
|
|
import org.energy.modules.leger.service.IEquipmentLedgerService; |
|
|
|
@ -66,6 +68,8 @@ public class RoleDataServiceImpl implements IRoleDataService { |
|
|
|
|
private IMaterialService materialService; |
|
|
|
|
@Autowired |
|
|
|
|
private IWorkOrderService workOrderService; |
|
|
|
|
@Autowired |
|
|
|
|
private IInspectionTasksService inspectionTasksService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public HomePageVO findCurrHomePageInfo() { |
|
|
|
@ -125,6 +129,12 @@ public class RoleDataServiceImpl implements IRoleDataService { |
|
|
|
|
qw9.lambda().eq(WorkOrder::getIsDeleted, DafConstant.DB_NOT_DELETED); |
|
|
|
|
hp.setWorkOrderAudit(workOrderService.list(qw9)); |
|
|
|
|
|
|
|
|
|
// Inspection Tasks Service
|
|
|
|
|
QueryWrapper<InspectionTasks> qw10 = new QueryWrapper<>(); |
|
|
|
|
qw10.lambda().eq(InspectionTasks::getTaskStatus, 1); |
|
|
|
|
qw10.lambda().eq(InspectionTasks::getIsDeleted, DafConstant.DB_NOT_DELETED); |
|
|
|
|
hp.setInspectionTasksAudit(inspectionTasksService.list(qw10)); |
|
|
|
|
|
|
|
|
|
return hp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|