| | |
| | | package com.aps.core.controller.mainPlan; |
| | | |
| | | import com.aps.common.core.constant.SecurityConstants; |
| | | import com.aps.common.core.domain.R; |
| | | import com.aps.common.core.utils.poi.ExcelUtil; |
| | | import com.aps.common.core.web.controller.BaseController; |
| | | import com.aps.common.core.web.domain.AjaxResult; |
| | |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.core.domain.ApsStandardProcessRouteHeader; |
| | | import com.aps.core.service.IApsStandardProcessRouteHeaderService; |
| | | import com.aps.system.api.RemoteJobService; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | { |
| | | @Autowired |
| | | private IApsStandardProcessRouteHeaderService apsStandardProcessRouteHeaderService; |
| | | |
| | | @Autowired |
| | | private RemoteJobService remoteJobService; |
| | | |
| | | /** |
| | | * 查询标准工艺路线Header列表 |
| | |
| | | { |
| | | return toAjax(apsStandardProcessRouteHeaderService.deleteApsStandardProcessRouteHeaderByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 刷新全量工艺路线数据 |
| | | */ |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteHeader:refreshProcessRouteData") |
| | | @PostMapping("/refreshProcessRouteData") |
| | | public AjaxResult refreshProcessRouteData() |
| | | { |
| | | R<Boolean> res = remoteJobService.refreshProcessRouteData(SecurityConstants.INNER); |
| | | if (R.isSuccess(res)) |
| | | { |
| | | return success(); |
| | | } |
| | | return error(); |
| | | } |
| | | |
| | | @PostMapping("/test") |
| | | public void test() |
| | | { |
| | | apsStandardProcessRouteHeaderService.setProcessRouteDataToRedis("FORTUNA"); |
| | | } |
| | | } |