yangys
2024-03-29 4b479381a65bd3ef526cb92631d3550f2aa17459
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
package com.qianwen.smartman.modules.fms.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.qianwen.core.boot.ctrl.BladeController;
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
import com.qianwen.core.tool.api.R;
import com.qianwen.smartman.modules.fms.service.IFmsScheduleService;
import com.qianwen.smartman.modules.fms.vo.ManualTrayVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
@ApiResource({"blade-fms/schedule"})
@Api(value = "fms调度", tags = {"fms调度"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/fms/controller/FmsScheduleController.class */
public class FmsScheduleController extends BladeController {
    private final IFmsScheduleService fmsScheduleService;
 
    public FmsScheduleController(final IFmsScheduleService fmsScheduleService) {
        this.fmsScheduleService = fmsScheduleService;
    }
 
    @PostMapping({"/manual-drag/check"})
    @ApiOperation("校验前端拖动数据")
    public R<Boolean> check(@RequestBody ManualTrayVO manualTrayVO) {
        return R.data(this.fmsScheduleService.check(manualTrayVO));
    }
 
    @PostMapping({"/manual-drag"})
    @ApiOperation("手动托盘移动")
    public R<Boolean> manualDrag(@RequestBody ManualTrayVO manualTrayVO) {
        return R.data(this.fmsScheduleService.manualDrag(manualTrayVO));
    }
}