| | |
| | | @Log(title = "钣金冗余工单报表", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/redundantOrderListExport") |
| | | public void redundantOrderListExport(HttpServletResponse response, ApsPlatePlan apsPlatePlan) { |
| | | List<ApsPlatePlan> planList = apsPlatePlanService.selectApsPlatePlanList(apsPlatePlan); |
| | | List<ApsPlatePlan> planList = apsPlatePlanService.selectPlateRedundantOrderList(apsPlatePlan); |
| | | List<ApsPlatePlanExport> planListExport = new ArrayList<>(); |
| | | for (ApsPlatePlan plan : planList) { |
| | | ApsPlatePlanExport planExport = new ApsPlatePlanExport(); |
| | |
| | | util.exportExcel(response, planListExport, "钣金冗余工单报表数据"); |
| | | } |
| | | |
| | | /** |
| | | * 将钣金子单数据存到redis中 |
| | | * @return |
| | | */ |
| | | @PostMapping("/setPlateSubPlansToRedis") |
| | | public AjaxResult setPlateSubPlansToRedis() { |
| | | try { |
| | | apsPlatePlanService.setSubPlansToRedis(); |
| | | return success(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return error(); |
| | | } |
| | | } |
| | | |
| | | } |