| | |
| | | import com.aps.common.log.enums.BusinessType; |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.core.domain.ApsPlate.ApsPlateProcessShopStat; |
| | | import com.aps.core.service.ApsPlanTaskService; |
| | | import com.aps.core.service.ApsPlate.IApsPlateProcessShopStatService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | { |
| | | @Autowired |
| | | private IApsPlateProcessShopStatService apsPlateProcessShopStatService; |
| | | |
| | | @Resource |
| | | ApsPlanTaskService apsPlanTaskService; |
| | | |
| | | /** |
| | | * 导出钣金车间统计列表 |
| | |
| | | |
| | | @Operation(summary = "钣金计划大表", description = "更新统计数据") |
| | | @Log(title = "钣金车间统计", businessType = BusinessType.UPDATE) |
| | | @RequiresPermissions("plateProcessShopStat:update") |
| | | //@RequiresPermissions("plateProcessShopStat:update") |
| | | @PostMapping("/update") |
| | | public AjaxResult update() |
| | | { |
| | | apsPlateProcessShopStatService.saveShopStat(); |
| | | return toAjax(true); |
| | | try { |
| | | |
| | | return apsPlanTaskService.generatorPlatePlanTable(); |
| | | } catch (Exception e) { |
| | | return AjaxResult.error("更新失败!"+e.getMessage()); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |