自动化立体仓库 - WMS系统
zyx
2023-09-09 8ebc61c8453cda67166571bc1f8cbd5e019082ad
src/main/java/com/zy/asrs/controller/AgvWorkController.java
@@ -1,32 +1,35 @@
package com.zy.asrs.controller;
import com.alibaba.fastjson.JSONArray;
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import com.zy.asrs.entity.AgvWaitPakin;
import com.zy.asrs.entity.WaitPakin;
import com.zy.asrs.entity.param.FullStoreParam;
import com.zy.asrs.entity.AgvBasDevp;
import com.zy.asrs.service.AgvWorkService;
import com.zy.common.model.StartupDto;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("agvWork")
@RequestMapping("agv")
public class AgvWorkController extends BaseController {
    @Autowired
    private AgvWorkService workService;
    //TODO 移动到AgvBasDevpController下面
    @RequestMapping("/create/waitPain/wrkMast/start")
    @ManagerAuth(memo = "生成任务")
    public R createWaitPainWrkMastStart(@RequestBody List<AgvWaitPakin> list) {
        //StartupDto startupDto = workService.createWaitPainWrkMastStart(list, getUserId());
    public R createWaitPainWrkMastStart(@RequestParam String param) {
        List<AgvBasDevp> agvBasDevpList = JSONArray.parseArray(param, AgvBasDevp.class);
        workService.createWaitPainWrkMastStart(agvBasDevpList, getUserId());
        //return R.ok("任务号:" + startupDto.getWorkNo() + ";目标库位:" + startupDto.getLocNo());
        return null;
        return R.ok("生成入库工作档成功");
    }
}