| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | @ApiOperation("信息") |
| | | public Result<ItemCirculatOrderDto> getDto(Long projectId, Long circulatOrderid) { |
| | | ItemCirculatOrderDto data = itemCirculatOrderService.getDto(projectId, circulatOrderid); |
| | | if (circulatOrderid!=null) { |
| | | for (ItemCirculatOrderTechnical technical : data.getTechnicalList()) { |
| | | Long technicalId = technical.getId(); |
| | | OssDto ossDto = sysOssConfigService.getOssByBusiType(technicalId, "circulat_order"); |
| | | if (ossDto != null) { |
| | | technical.setFiles(ossDto); |
| | | } |
| | | } |
| | | } |
| | | return Result.ok(data); |
| | | } |
| | | |
| | |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @GetMapping("exportCirculatOrder") |
| | | @ApiOperation("打印物品流转单") |
| | | @LogOperation("打印物品流转单") |
| | | public void exportCirculatOrder(Long id, HttpServletRequest request, HttpServletResponse response) { |
| | | itemCirculatOrderService.exportCirculatOrder(id, request, response); |
| | | } |
| | | |
| | | } |