| | |
| | | { |
| | | return toAjax(apsPartRouteStatService.insertApsPartRouteStat(apsPartRouteStat)); |
| | | } |
| | | |
| | | /** |
| | | * 修改零件统计表 |
| | | */ |
| | |
| | | { |
| | | return toAjax(apsPartRouteStatService.updateApsPartRouteStat(apsPartRouteStat)); |
| | | } |
| | | |
| | | /** |
| | | * 删除零件统计表 |
| | | */ |
| | |
| | | { |
| | | return toAjax(apsPartRouteStatService.deleteApsPartRouteStatByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 1.根据现有零件计划 和工艺路线、资源池信息 更新统计表 |
| | | * */ |
| | | @PostMapping("/updateStat") |
| | | public AjaxResult updateStat() |
| | | { |
| | | apsPartRouteStatService.updatePartRoutPlanDate(); |
| | | return success(); |
| | | } |
| | | |
| | | /*** |
| | | * 2. 根据日期、工艺路线、资源池信息 查询统计表 |
| | | * */ |
| | | @GetMapping("/query") |
| | | public AjaxResult query() |
| | | { |
| | | return apsPartRouteStatService.selectResourceDateStat(); |
| | | } |
| | | |
| | | @GetMapping("/exportExcel") |
| | | public void exportExcel(HttpServletResponse response) |
| | | { |
| | | apsPartRouteStatService.exportExcel(response); |
| | | } |
| | | |
| | | } |