fix(产品):添加用户需求公开接口
This commit is contained in:
parent
f460559674
commit
e1f73ed177
|
|
@ -3,16 +3,19 @@ package com.microservices.pms.common.controller;
|
|||
import com.microservices.common.core.utils.html.EscapeUtil;
|
||||
import com.microservices.common.core.web.controller.BaseController;
|
||||
import com.microservices.common.core.web.domain.AjaxResult;
|
||||
import com.microservices.common.log.annotation.Log;
|
||||
import com.microservices.common.log.enums.BusinessType;
|
||||
import com.microservices.common.security.annotation.RequiresPermissions;
|
||||
import com.microservices.pms.product.domain.vo.ProductReqSpecsInputVo;
|
||||
import com.microservices.pms.product.service.IPmsProductRequirementService;
|
||||
import com.microservices.pms.specialArea.service.SoftwareFactStatisticsServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author otto
|
||||
|
|
@ -28,6 +31,9 @@ public class OpenController extends BaseController {
|
|||
|
||||
@Autowired
|
||||
private SoftwareFactStatisticsServiceImpl softwareFactStatisticsService;
|
||||
|
||||
@Autowired
|
||||
private IPmsProductRequirementService pmsProductRequirementService;
|
||||
/**
|
||||
* 查询项目管理企业列表
|
||||
*/
|
||||
|
|
@ -50,4 +56,17 @@ public class OpenController extends BaseController {
|
|||
public AjaxResult theEnterpriseProductPlanSituation(@PathVariable String enterpriseIdentifier) {
|
||||
return AjaxResult.success(softwareFactStatisticsService.productPlanSituation(enterpriseIdentifier));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增需求
|
||||
*/
|
||||
@RequiresPermissions("pms:pmsProductRequirement:add")
|
||||
@Log(title = "需求", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/{enterpriseIdentifier}/productRequirementSpecs")
|
||||
@ApiOperation(value = "新增需求")
|
||||
public AjaxResult add(@PathVariable String enterpriseIdentifier,
|
||||
@RequestBody @Validated ProductReqSpecsInputVo productReqSpecsInputVo) {
|
||||
productReqSpecsInputVo.setEnterpriseIdentifier(enterpriseIdentifier);
|
||||
return AjaxResult.success(pmsProductRequirementService.insertReqSpecs(productReqSpecsInputVo));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue