xuhy
2025-07-17 ca41616d33308050c52612177e515115f543de1b
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/YcFinancialManagementController.java
@@ -72,6 +72,10 @@
    @Log(title = "财务管理-添加", businessType = BusinessType.INSERT)
    @PostMapping(value = "/add")
    public R<Boolean> add(@RequestBody YcFinancialManagement dto) {
        YcRevenueExpenditureType ycRevenueExpenditureType = ycRevenueExpenditureTypeService.getById(dto.getTypeId());
        if(Objects.nonNull(ycRevenueExpenditureType)){
            dto.setRevenueType(ycRevenueExpenditureType.getRevenueType());
        }
        return R.ok(ycFinancialManagementService.save(dto));
    }