package com.hotent.enterpriseDeclare.controller.material;

import com.hotent.base.annotation.ApiGroup;
import com.hotent.base.constants.ApiGroupConsts;
import com.hotent.base.model.CommonResult;
import com.hotent.project.manager.CostProjectProccessManager;
import com.hotent.project.resp.CostProjectProccessResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 监审工作流程列表
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-01-27
 */
@RestController
@RequestMapping("/api/taskProccess/v1/")
@Api(tags = "成本调查表")
@ApiGroup(group = {ApiGroupConsts.GROUP_COST})
public class CostProjectTaskProccessNodeController {


    @Autowired
    private CostProjectProccessManager costProjectProccessManager;

    @GetMapping(value = "listByProjectId")
    @ApiOperation(value = "根据项目id获取详情", httpMethod = "GET", notes = "根据项目id获 取详情")
    public CommonResult<CostProjectProccessResp> getDetail(@ApiParam(value = "项目id", required = true) @RequestParam String projectId) {
        return CommonResult.<CostProjectProccessResp>ok().value(costProjectProccessManager.getDetail(projectId));
    }
}

