自动化立体仓库 - WMS系统
luxiaotao1123
2021-08-24 e004099a45b0981e1802b27b59053bf284fefdff
src/main/java/com/zy/asrs/controller/MatOutController.java
New file
@@ -0,0 +1,34 @@
package com.zy.asrs.controller;
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import com.zy.asrs.entity.param.StockOutParam;
import com.zy.asrs.service.MatOutService;
import com.zy.asrs.service.WorkService;
import com.zy.common.web.BaseController;
import com.zy.ints.service.WaitMatinService;
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 TQS on 2021/8/24
 */
@RestController
public class MatOutController extends BaseController {
    @Autowired
    private WaitMatinService waitMatinService;
    @Autowired
    private WorkService workService;
    @Autowired
    private MatOutService matOutService;
    @RequestMapping("/mat/out/start")
    @ManagerAuth(memo = "出库启动(通知档)")
    public R matOutStart(@RequestBody StockOutParam stockOutParam) {
        matOutService.startupMatOut(stockOutParam, getUserId());
        return R.ok("出库启动成功");
    }
}