package com.hotent.project.controller;


import com.hotent.base.annotation.ApiGroup;
import com.hotent.base.constants.ApiGroupConsts;
import com.hotent.common.CrudService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.hotent.base.model.CommonResult;
import com.hotent.base.util.StringUtil;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RestController;
import com.hotent.base.controller.BaseController;
import com.hotent.project.model.CostProjectScenario;
import com.hotent.project.manager.CostProjectScenarioManager;

/**
 * 监审工作方案 前端控制器
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-09-26
 */
@RestController
@RequestMapping("/api/costProjectScenario/v1/")
@Api(tags = "监审工作方案")
@ApiGroup(group = {ApiGroupConsts.GROUP_COST})
public class CostProjectScenarioController extends BaseController<CostProjectScenarioManager, CostProjectScenario> {

	// 创建通用服务实例
	private final CrudService crudService = new CrudService();
	/**
	 * 根据id获取监审工作方案数据详情
	 * @param projectId
	 * @return
	 * @throws Exception 
	 * ModelAndView
	 */
	@GetMapping(value="/getDetail")
	@ApiOperation(value="根据项目id获取监审工作方案数据详情",httpMethod = "GET",notes = "根据项目id获取监审工作方案数据详情")
	public CommonResult<CostProjectScenario> getDetail(@ApiParam(name="projectId",value="项目id", required = true)@RequestParam(required=true) String projectId) throws Exception{
		return CommonResult.<CostProjectScenario>ok().value(baseService.getDetail(projectId));
	}

}
