| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.swing.*; |
| | | import java.text.SimpleDateFormat; |
| | |
| | | @ApiOperation("信息") |
| | | public Result<EnvironDto> getDto(Long environId, Long projectId) { |
| | | EnvironDto data = environService.getDto(environId, projectId); |
| | | if (environId != null) { |
| | | OssDto ossDto = sysOssConfigService.getOssByBusiType(environId, "test_environt_diagram"); |
| | | List<SysOss> sysOss1 =sysOssService.getSysOssByBusiIdAnd(environId,"test_environt_diagram"); |
| | | String Url = ""; |
| | | for (SysOss sysOss: sysOss1){ |
| | | Url=sysOss.getUrl(); |
| | | } |
| | | if (ossDto != null) { |
| | | data.setFiles(ossDto); |
| | | data.setUrl(Url); |
| | | } |
| | | } |
| | | return Result.ok(data); |
| | | } |
| | | |
| | |
| | | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @GetMapping("exportEnviron") |
| | | @ApiOperation("打印测试环境建立确认表") |
| | | @LogOperation("打印测试环境建立确认表") |
| | | public void exportEnviron(Long id, HttpServletRequest request, HttpServletResponse response) { |
| | | environService.exportEnviron(id, request, response); |
| | | } |
| | | } |