yangys
2024-04-02 b773661de485d9748386bfdd15a7ac7cd399be36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.qianwen.smartman.modules.visual.controller;
 
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.qianwen.core.boot.ctrl.BladeController;
import com.qianwen.core.scanner.modular.annotation.GetResource;
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
import com.qianwen.core.tool.api.R;
import com.qianwen.smartman.modules.visual.service.IVisualDataSourceService;
import com.qianwen.smartman.modules.visual.vo.DropDownVO;
import com.qianwen.smartman.modules.visual.vo.WorkStationTreeVO;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@ApiResource({"blade-visual/data-source"})
@Api(value = "可视化数据源接口", tags = {"可视化数据接口"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/visual/controller/VisualDataSourceController.class */
public class VisualDataSourceController extends BladeController {
    private final IVisualDataSourceService visualDataSourceService;
 
    public VisualDataSourceController(final IVisualDataSourceService visualDataSourceService) {
        this.visualDataSourceService = visualDataSourceService;
    }
 
    @ApiOperationSupport(order = 1)
    @GetResource({"/workstation"})
    @ApiOperation(value = "工位工位组数据源", notes = "工位工位组数据源")
    public R<List<WorkStationTreeVO>> workstationDataSource() {
        return R.data(this.visualDataSourceService.workstationDataSource());
    }
 
    @ApiOperationSupport(order = 2)
    @GetResource({"/time-level"})
    @ApiOperation(value = "时间等级数据源接口", notes = "时间等级数据源接口")
    public R<List<DropDownVO>> timeType() {
        return R.data(this.visualDataSourceService.timeLevelDataSource());
    }
 
    @ApiOperationSupport(order = 3)
    @GetResource({"/shift-system"})
    @ApiOperation(value = "班制数据源接口", notes = "班制数据源接口")
    public R<List<DropDownVO>> shiftSystem() {
        return R.data(this.visualDataSourceService.shiftSystem());
    }
 
    @ApiOperationSupport(order = 4)
    @GetResource({"/shift-workstation"})
    @ApiOperation(value = "班制设备数据源接口", notes = "班制设备数据源接口")
    public R<List<WorkStationTreeVO>> shiftWorkStation(@RequestParam Long shift) {
        return R.data(this.visualDataSourceService.shiftWorkStation(shift));
    }
}