|
@@ -122,7 +122,7 @@ public class ReportService extends ServiceImpl<ReportMapper, Report> {
|
|
Integer id = loginUtils.getId();
|
|
Integer id = loginUtils.getId();
|
|
List<Integer> departIds = outInterfaceService.getDutyDepartsFromPCS(id);
|
|
List<Integer> departIds = outInterfaceService.getDutyDepartsFromPCS(id);
|
|
LambdaQueryWrapper<Report> queryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<Report> queryWrapper = new LambdaQueryWrapper<>();
|
|
- queryWrapper.ne(Report::getId,0);
|
|
|
|
|
|
+ queryWrapper.ne(Report::getId, 0);
|
|
if (reportVO.getName() != null) {
|
|
if (reportVO.getName() != null) {
|
|
queryWrapper.like(Report::getName, reportVO.getName());
|
|
queryWrapper.like(Report::getName, reportVO.getName());
|
|
}
|
|
}
|
|
@@ -139,7 +139,7 @@ public class ReportService extends ServiceImpl<ReportMapper, Report> {
|
|
List<Report> reports = this.page(new Page<>(reportVO.getCurrent(), reportVO.getSize()), queryWrapper).getRecords();
|
|
List<Report> reports = this.page(new Page<>(reportVO.getCurrent(), reportVO.getSize()), queryWrapper).getRecords();
|
|
reports = this.reportData(reports);
|
|
reports = this.reportData(reports);
|
|
SecurityUtils.startDataScope("/pcs/report/query");
|
|
SecurityUtils.startDataScope("/pcs/report/query");
|
|
- Long count = this.count(queryWrapper);
|
|
|
|
|
|
+ Long count = this.count(queryWrapper);
|
|
return Response.success(reports, DataUtils.setPageColumn(reportVO.getSize(), reportVO.getCurrent(), Math.toIntExact(count)));
|
|
return Response.success(reports, DataUtils.setPageColumn(reportVO.getSize(), reportVO.getCurrent(), Math.toIntExact(count)));
|
|
} else {
|
|
} else {
|
|
SecurityUtils.startDataScope("/pcs/report/query");
|
|
SecurityUtils.startDataScope("/pcs/report/query");
|
|
@@ -211,6 +211,9 @@ public class ReportService extends ServiceImpl<ReportMapper, Report> {
|
|
if (mapDeaprt.size() != 0) {
|
|
if (mapDeaprt.size() != 0) {
|
|
item.setDepartmentName(mapDeaprt.get(0).get("departName").toString());
|
|
item.setDepartmentName(mapDeaprt.get(0).get("departName").toString());
|
|
}
|
|
}
|
|
|
|
+ if (item.getClientId() == null) {
|
|
|
|
+ item.setClientId(0);
|
|
|
|
+ }
|
|
//装载客户
|
|
//装载客户
|
|
List<Map<String, Object>> mapClient = mapClients.stream().filter(tem -> tem.get("clientId").toString().equals(item.getClientId().toString())).collect(Collectors.toList());
|
|
List<Map<String, Object>> mapClient = mapClients.stream().filter(tem -> tem.get("clientId").toString().equals(item.getClientId().toString())).collect(Collectors.toList());
|
|
if (mapClient.size() != 0) {
|
|
if (mapClient.size() != 0) {
|