|
|
|
@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
|
|
|
|
|
|
import javax.annotation.security.PermitAll; |
|
|
|
|
import javax.validation.constraints.*; |
|
|
|
|
import javax.validation.*; |
|
|
|
|
import javax.servlet.http.*; |
|
|
|
@ -67,7 +68,7 @@ public class CompanyInfoController { |
|
|
|
|
@GetMapping("/get") |
|
|
|
|
@Operation(summary = "获得公司信息") |
|
|
|
|
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|
|
|
|
@PreAuthorize("@ss.hasPermission('cjy:company-info:query')") |
|
|
|
|
@PermitAll |
|
|
|
|
public CommonResult<CompanyInfoRespVO> getCompanyInfo(@RequestParam("id") Integer id) { |
|
|
|
|
CompanyInfoDO companyInfo = companyInfoService.getCompanyInfo(id); |
|
|
|
|
return success(BeanUtils.toBean(companyInfo, CompanyInfoRespVO.class)); |
|
|
|
|