| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.config.RuoYiConfig; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.file.FileUtils; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderAttachmentVo; |
| | | import com.ruoyi.cwgl.domain.vo.DispatchOrderItemVo; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import com.ruoyi.cwgl.service.IDispatchOrderService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * 调度单Controller |
| | |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('cwgl:dispatchOrder:attachment')") |
| | | @GetMapping("/downAttachment") |
| | | public void downAttachment(String no, HttpServletResponse response) throws Exception { |
| | | String filePath = dispatchOrderService.downAttachment(no); |
| | | response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); |
| | | FileUtils.setAttachmentResponseHeader(response, FileUtils.getName(filePath)); |
| | | FileUtils.writeBytes(filePath, response.getOutputStream()); |
| | | } |
| | | |
| | | /** |
| | | * 导出调度单列表 |
| | | * @param dispatchOrder 查询条件对象 |
| | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取调度单详细信息 |
| | | */ |