| | |
| | | import com.qianwen.core.tool.api.R; |
| | | import com.qianwen.smartman.modules.cps.dto.WorkstationWcsDmpDTO; |
| | | import com.qianwen.smartman.modules.cps.entity.GlobalWcs; |
| | | import com.qianwen.smartman.modules.mdc.dto.DatapointDTO; |
| | | import com.qianwen.smartman.modules.mdc.dto.ProcessParameterRealVO; |
| | | import com.qianwen.smartman.modules.mdc.service.IProcessParameterService; |
| | | import com.qianwen.smartman.modules.mdc.vo.AllShiftTimeDetail; |
| | |
| | | import com.qianwen.smartman.modules.mdc.vo.ShiftTimeVO; |
| | | import com.qianwen.smartman.modules.mdc.vo.WorkstationShiftSearchVO; |
| | | import com.qianwen.smartman.modules.mdc.vo.excel.ProcessParamExcelVO; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | @ApiResource({"blade-mdc/process-parameter"}) |
| | | @RestController |
| | | public class ProcessParameterController { |
| | | private final IProcessParameterService processParameterService; |
| | | @Autowired |
| | | private IProcessParameterService processParameterService; |
| | | |
| | | public ProcessParameterController(final IProcessParameterService processParameterService) { |
| | | this.processParameterService = processParameterService; |
| | | } |
| | | |
| | | @ApiOperationSupport(order = 1) |
| | | @PostResource({"/chart"}) |
| | |
| | | public R<List<GlobalWcs>> listGlobalWcs() { |
| | | return R.data(this.processParameterService.listGlobalWcs()); |
| | | } |
| | | |
| | | /* |
| | | @ApiOperationSupport(order = RegionCache.VILLAGE_LEVEL) |
| | | @GetResource({"/param"}) |
| | | @ApiOperation("参数选择") |
| | | @PreAuth |
| | | //TODO 调试新过程参数展示后删除 |
| | | public R<List<WorkstationWcsDmpDTO>> processParam(@RequestParam("workstationId") String workstationId) { |
| | | return R.data(this.processParameterService.processParam(workstationId)); |
| | | } |
| | | */ |
| | | |
| | | @ApiOperationSupport(order = RegionCache.VILLAGE_LEVEL) |
| | | @GetResource({"/params"}) |
| | | @ApiOperation("展示数据点列表") |
| | | @PreAuth |
| | | public R<List<DatapointDTO>> params(@RequestParam("workstationId") String workstationId) { |
| | | return R.data(this.processParameterService.processParams(workstationId)); |
| | | } |
| | | |
| | | @ApiOperationSupport(order = 6) |
| | | @PostResource({"/excel/export"}) |