自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-13 22c2a272694c485f7fb86239fcd25b2b7356c5d8
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
package com.zy.asrs.controller;
 
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import com.zy.asrs.entity.param.FullStoreParam;
import com.zy.asrs.service.BasDevpService;
import com.zy.asrs.service.WorkService;
import com.zy.common.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * 工作流接口控制器
 * Created by vincent on 2020/6/10
 */
@RestController
public class WorkController extends BaseController {
 
    @Autowired
    private WorkService workService;
    @Autowired
    private BasDevpService basDevpService;
 
    @RequestMapping("/available/put/site")
    @ManagerAuth(memo = "获取有效的入库站点")
    public R availablePutSite(){
        return R.ok().add(basDevpService.getAvailableDevp());
    }
 
    @RequestMapping("/available/take/site")
    @ManagerAuth(memo = "获取有效的出库站点")
    public R availableTakeSite(){
        return R.ok().add(basDevpService.getAvailableDevp());
    }
 
    @RequestMapping("/full/store/start")
    @ManagerAuth(memo = "全板入库")
    public R start(@RequestBody FullStoreParam fullStoreParam) {
        workService.startupFullStore(fullStoreParam,getUserId());
        return R.ok();
    }
 
}