|
|
@@ -107,13 +107,14 @@ public class GxtMonthScoreServiceImpl implements IGxtMonthScoreService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<GxtWorkOrder> getWorkOrderByMonth(String model, String inspectionTypeId, Long pid, String monthPeriod) {
|
|
|
+ public List<GxtWorkOrder> getWorkOrderByMonth(Long userId, String model, String inspectionTypeId, Long pid, String monthPeriod) {
|
|
|
GxtWorkOrder workOrder = new GxtWorkOrder();
|
|
|
workOrder.setModel(model);
|
|
|
workOrder.setInspectionType(inspectionTypeId);
|
|
|
workOrder.setPcsStationPid(pid);
|
|
|
workOrder.setMonthPeriod(monthPeriod);
|
|
|
workOrder.setWorkOrderStatus("archived");
|
|
|
+ workOrder.setUserId(userId);
|
|
|
addBusinessDataScopeFilter(workOrder);
|
|
|
List<GxtWorkOrder> list = gxtWorkOrderMapper.selectGxtWorkOrderListByMonth(workOrder);
|
|
|
if (!list.isEmpty()) {
|
|
|
@@ -493,12 +494,13 @@ public class GxtMonthScoreServiceImpl implements IGxtMonthScoreService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<GxtRepairOrder> getRepairOrderByMonth(String maintenanceType, Long pid, String monthPeriod) {
|
|
|
+ public List<GxtRepairOrder> getRepairOrderByMonth(Long userId, String maintenanceType, Long pid, String monthPeriod) {
|
|
|
GxtRepairOrder repairOrder = new GxtRepairOrder();
|
|
|
repairOrder.setMaintenanceType(maintenanceType);
|
|
|
repairOrder.setPcsStationPid(pid);
|
|
|
repairOrder.setMonthPeriod(monthPeriod);
|
|
|
repairOrder.setWorkOrderStatus("archived");
|
|
|
+ repairOrder.setUserId(userId);
|
|
|
addBusinessDataScopeFilter(repairOrder);
|
|
|
return gxtRepairOrderMapper.selectGxtRepairOrderListByMonth(repairOrder);
|
|
|
}
|
|
|
@@ -632,6 +634,12 @@ public class GxtMonthScoreServiceImpl implements IGxtMonthScoreService
|
|
|
GxtMonthFanInspection monthFanInspection = new GxtMonthFanInspection();
|
|
|
monthFanInspection.setDeptId(deptId);
|
|
|
monthFanInspection.setMonthPeriod(monthPeriod);
|
|
|
+
|
|
|
+ Long userOnly = null;
|
|
|
+ if (rtType==0) {
|
|
|
+ userOnly = userId;
|
|
|
+ monthFanInspection.setUserId(userId);
|
|
|
+ }
|
|
|
List<GxtMonthFanInspection> monthFanInspections = gxtMonthFanInspectionMapper.selectGxtMonthFanInspectionListByTwice(monthFanInspection);
|
|
|
List<GxtMonthFanInspection> fanInspectionList = new ArrayList<>();
|
|
|
if (!monthFanInspections.isEmpty()) {
|
|
|
@@ -678,7 +686,7 @@ public class GxtMonthScoreServiceImpl implements IGxtMonthScoreService
|
|
|
List<GxtWorkOrder> workOrderList = new ArrayList<>();
|
|
|
if (!monthFanInspections.isEmpty()) {
|
|
|
GxtMonthFanInspection fanInspection = monthFanInspections.get(0);
|
|
|
- workOrderList = getWorkOrderByMonth(fanInspection.getModel(),fanInspection.getInspectionTypeId(),deptId,monthPeriod);
|
|
|
+ workOrderList = getWorkOrderByMonth(userOnly, fanInspection.getModel(),fanInspection.getInspectionTypeId(),deptId,monthPeriod);
|
|
|
}
|
|
|
monthScore.setWorkOrderList(workOrderList);
|
|
|
|
|
|
@@ -686,6 +694,9 @@ public class GxtMonthScoreServiceImpl implements IGxtMonthScoreService
|
|
|
GxtMonthRepairProject monthRepairProject = new GxtMonthRepairProject();
|
|
|
monthRepairProject.setDeptId(deptId);
|
|
|
monthRepairProject.setMonthPeriod(monthPeriod);
|
|
|
+ if (rtType==0) {
|
|
|
+ monthRepairProject.setUserId(userId);
|
|
|
+ }
|
|
|
List<GxtMonthRepairProject> monthRepairProjects = gxtMonthRepairProjectMapper.selectGxtMonthRepairProjectListByTwice(monthRepairProject);
|
|
|
monthScore.setMonthRepairProjects(monthRepairProjects);
|
|
|
|
|
|
@@ -693,7 +704,7 @@ public class GxtMonthScoreServiceImpl implements IGxtMonthScoreService
|
|
|
List<GxtRepairOrder> repairOrderList = new ArrayList<>();
|
|
|
if (!monthRepairProjects.isEmpty()) {
|
|
|
GxtMonthRepairProject repairProject = monthRepairProjects.get(0);
|
|
|
- repairOrderList = getRepairOrderByMonth(repairProject.getMaintenanceType(), deptId, monthPeriod);
|
|
|
+ repairOrderList = getRepairOrderByMonth(userOnly, repairProject.getMaintenanceType(), deptId, monthPeriod);
|
|
|
}
|
|
|
monthScore.setRepairOrderList(repairOrderList);
|
|
|
|