自动化立体仓库 - WMS系统
zyx
2023-11-11 2a542491b78e75cfa0a22b4c6eb6e6087bf2746e
src/main/java/com/zy/asrs/controller/AgvMobileController.java
@@ -6,7 +6,9 @@
import com.zy.asrs.service.AgvBasDevpService;
import com.zy.asrs.service.AgvMobileService;
import com.zy.asrs.service.AgvWorkService;
import com.zy.asrs.service.OrderDetlService;
import com.zy.common.web.BaseController;
import lombok.Synchronized;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -31,6 +33,8 @@
    private AgvBasDevpService agvBasDevpService;
    @Autowired
    private AgvWorkService workService;
    @Autowired
    private OrderDetlService orderDetlService;
    /*
@@ -69,6 +73,7 @@
    启动入库,生成工作档
     */
    @PostMapping("/pakin/auth")
    @Synchronized
    public R pakin(@RequestBody Map<String,Object> map){
        List<String> devNos = (List<String>) map.get("devNo");
@@ -76,7 +81,7 @@
            return agvBasDevpService.selectById(devNo);
        }).collect(Collectors.toList());
        workService.createWaitPainWrkMastStart(agvBasDevpList, getUserId());
        workService.createWaitPainWrkMastStart(agvBasDevpList, getUserId(),false);
        
        return R.ok("生成工作档成功");
    }