| | |
| | | @Autowired |
| | | private LWhProcureModelService lWhProcureModelService; |
| | | @Resource |
| | | private LWarehouseFlowService lWarehouseFlowService; |
| | | private LWarehouseFlowService lWarehouseFlowServiceImpl; |
| | | |
| | | /** |
| | | * @Description 新增出库单 |
| | |
| | | } |
| | | try { |
| | | Field fieldDatas = GenericPager.class.getDeclaredField("datas"); |
| | | // fieldDatas.setAccessible(true); |
| | | // fieldDatas.set(genericPager, resultList); |
| | | ReflectUtil.setFieldValue(genericPager, fieldDatas, resultList); |
| | | } catch (Exception e) { |
| | | logger.error("查询出库单列表失败", e); |
| | |
| | | @ApiOperation(value = "根据id查询详情", notes = "根据id查询详情") |
| | | @ApiImplicitParam(name = "id", value = "出库单id", required = true, dataType = "Long", paramType = "query") |
| | | @GetMapping("/detail") |
| | | public ResponseValue getById(Long id) throws IllegalAccessException { |
| | | public ResponseValue getById(Long id) throws Exception { |
| | | if (id == null) { |
| | | return ResponseValue.error("出库单id为空"); |
| | | } |
| | |
| | | return ResponseValue.error("登录用户信息不存在"); |
| | | } |
| | | formOutputQry.setAgencyId(Long.valueOf(currentUser.getTenantId())); |
| | | PageUtil genericPager = lWarehouseFlowService.queryAllBusinessFlow(formOutputQry); |
| | | PageUtil genericPager = lWarehouseFlowServiceImpl.queryAllBusinessFlow(formOutputQry); |
| | | return ResponseValue.success(genericPager); |
| | | } |
| | | |
| | | @ApiOperation(value = "出库单导出", notes = "出库单导出") |
| | | @ApiImplicitParam(name = "id", value = "出库单id", required = true, dataType = "Long", paramType = "query") |
| | | @GetMapping("/list/export") |
| | | public ResponseValue<String> export(Long id, HttpServletResponse response) throws Exception { |
| | | public ResponseValue export(Long id, HttpServletResponse response) throws Exception { |
| | | FinSysTenantUser sysInfo = this.getSysInfo(); |
| | | if (sysInfo == null) { |
| | | throw new RuntimeException("登录用户信息不存在"); |
| | |
| | | map.put("totalAmount", totalAmount); |
| | | |
| | | Workbook workbook = ExcelExportUtil.exportExcel(params, OutputExcelTemplate.class, exportList, map); |
| | | return ResponseValue.success(downLoadExcel("出库单", response, workbook)); |
| | | String filePath = downLoadExcel("出库单", workbook); |
| | | return ResponseValue.success("导出成功", filePath); |
| | | |
| | | } |
| | | |