bluejay
2025-04-12 643514ba15be4c373bfdf35e2d7c64e4cbda60a4
aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsPartPlanController.java
@@ -45,6 +45,21 @@
    public TableDataInfo list(ApsPartPlan apsPartPlan) {
//        startPage();
        List<ApsPartPlan> list = apsPartPlanService.selectApsPartPlanList(apsPartPlan);
        List<SysDictData> suspendedDic = DictUtils.getDictCache("aps_is_suspended");
        List<SysDictData> businessTypeDic = DictUtils.getDictCache("aps_business_type");
        List<SysDictData> documentStatusDic = DictUtils.getDictCache("aps_document_status");
        List<SysDictData> accountDic = DictUtils.getDictCache("aps_account");
        list.parallelStream().forEach(plan->{
             documentStatusDic.stream().filter(x -> x.getDictValue().equals( plan.getDocumentStatus().trim()))
                     .findFirst().ifPresent(sysDictData -> plan.setDocumentStatus(sysDictData.getDictLabel()));
             accountDic.stream().filter(x -> x.getDictValue().equals( plan.getAccount().trim()))
                     .findFirst().ifPresent(sysDictData -> plan.setAccount(sysDictData.getDictLabel()));
             businessTypeDic.stream().filter(x -> x.getDictValue().equals(plan.getBusinessType().trim()))
                     .findFirst().ifPresent(sysDictData -> plan.setBusinessType(sysDictData.getDictLabel()));
             suspendedDic.stream().filter(x -> x.getDictValue().equals( plan.getIsSuspended()))
                     .findFirst().ifPresent(sysDictData -> plan.setIsSuspended(sysDictData.getDictLabel()));
        });
        return getDataTable(list);
    }
@@ -182,8 +197,8 @@
    * @Author: wwj
    * @Date: 2025/4/9
    */
    @GetMapping("/confirmPart")
    public AjaxResult confirmPart(ApsPartPlanTemp apsPartPlanTemp) {
    @PostMapping("/confirmPart")
    public AjaxResult confirmPart(@RequestBody ApsPartPlanTemp apsPartPlanTemp) {
        return toAjax(apsPartPlanService.confirmPart(apsPartPlanTemp));
    }