Browse Source

上级机关业务指导处(除了顶级组织的每一级)

buzhanyi 2 years ago
parent
commit
c706970a73

+ 10 - 1
purchase-admin/src/main/java/com/ozs/web/controller/plan/MonthlyReconciliationController.java

@@ -75,6 +75,8 @@ public class MonthlyReconciliationController extends BaseController {
         }
         // 分页查询
         IPage<MonthlyReconciliation> page = monthlyReconciliationService.queryPage(vo);
+        // 采购服务站名称
+        List<SysDictData> data = dictTypeService.selectDictDataByType("purchase_services");
         if (!ObjectUtils.isEmpty(page.getRecords()) && page.getRecords().size() > 0) {
             page.setRecords(page.getRecords().stream().map(dto -> {
                 // 采购单位名称
@@ -92,7 +94,14 @@ public class MonthlyReconciliationController extends BaseController {
                         dto.setProjectStatusStr(collect.get(0).getDictLabel());
                     }
                 }
-
+                // 采购服务站名称
+                if (!ObjectUtils.isEmpty(data)) {
+                    List<SysDictData> collect = data.stream()
+                            .filter(d -> d.getDictValue().equals(vo.getPurchaseServices())).collect(Collectors.toList());
+                    if (!ObjectUtils.isEmpty(collect)) {
+                        dto.setPurchaseServicesName(collect.get(0).getDictLabel());
+                    }
+                }
                 // 报警状态
                 List<SysDictData> warnStatus = dictTypeService.selectDictDataByType(Constants.PROJECT_WARN_STATUS);
                 if (!ObjectUtils.isEmpty(warnStatus)) {