自动化立体仓库 - WMS系统
#
whycq
2024-03-05 8003a29d3f510adfa971ea6ebd23af1ccd7316c1
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;
    /*
@@ -66,9 +70,18 @@
    }
    /*
    获取输送线站点
     */
    @PostMapping("/getBasDevp/noCacheShelves/auth")
    public R getBasDevpByNoCacheShelves(){
        return R.ok(agvBasDevpService.getBasDevpByNoCacheShelves());
    }
    /*
    启动入库,生成工作档
     */
    @PostMapping("/pakin/auth")
    @Synchronized
    public R pakin(@RequestBody Map<String,Object> map){
        List<String> devNos = (List<String>) map.get("devNo");
@@ -76,7 +89,7 @@
            return agvBasDevpService.selectById(devNo);
        }).collect(Collectors.toList());
        workService.createWaitPainWrkMastStart(agvBasDevpList, getUserId());
        workService.createWaitPainWrkMastStart(agvBasDevpList, getUserId(),false);
        
        return R.ok("生成工作档成功");
    }