yangys
2024-10-30 25db770e621f1259b8d5b7fd514207f7481c2d0f
smart-man-boot/src/main/java/com/qianwen/smartman/modules/mdc/controller/ProcessParameterController.java
@@ -17,6 +17,7 @@
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;
@@ -73,14 +74,24 @@
    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"})