package com.goldenwater.slaj.hidd.controller;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.goldenwater.common.core.controller.BaseController;
import com.goldenwater.common.core.domain.AjaxResult;
import com.goldenwater.slaj.hidd.service.IBisOrgMonRepPeriService;

/**
 * 月报树形数据
 */
@RestController
@RequestMapping("/hidd/month")
public class HiddMonthTreeController extends BaseController {
    @Autowired
    private IBisOrgMonRepPeriService bisOrgMonRepPeriService;

    /**
     * 月报树形数据
     */
    @GetMapping("/reptree")
    public AjaxResult getRepTree(@RequestParam(required = false) String parentGuid) {
        List<Map<String, Object>> tree = bisOrgMonRepPeriService.selectRepTreeData(parentGuid);
        return AjaxResult.success(tree);
    }
}
