自动化立体仓库 - WMS系统
Junjie
3 天以前 ca2a6d455604056ce628f296911f6abac85a7598
src/main/java/com/zy/nc/task/PlanOrderTask.java
@@ -46,12 +46,19 @@
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute1() {
        List<String> ids = storeTypeService.listOwn();
        List<String> Ids = nccSaleXsfhmxWmsService.selectXsfh(ids);
        List<String> warehouseIds = storeTypeService.listOwn();
        List<String> Ids = nccSaleXsfhmxWmsService.selectXsfh(warehouseIds);
        for (String id : Ids) {
            List<NccSaleXsfhmxWms> wmsFlag = nccSaleXsfhmxWmsService.selectList(new EntityWrapper<NccSaleXsfhmxWms>().eq("vbillcode", id).ne("wms_flag", 1).eq("fstatusflag", 2).eq("hdr", 0).eq("bdr", 0));
            List<NccSaleXsfhmxWms> wmsFlag = nccSaleXsfhmxWmsService.selectList(new EntityWrapper<NccSaleXsfhmxWms>()
                    .eq("vbillcode", id)
                    .ne("wms_flag", 1)
                    .eq("fstatusflag", 2)
                    .eq("hdr", 0)
                    .eq("bdr", 0)
                    .in("fhckbm",warehouseIds)
            );
            if (wmsFlag == null || wmsFlag.isEmpty()) {
                return;
                continue;
            }
            ReturnT<String> returnT = planOrderHandler.start1(wmsFlag);
            if (!returnT.isSuccess()) {
@@ -99,11 +106,12 @@
    }
    /**
     * 转库
     * 转库-出库
     * 不同步,转库出库由WMS直接发起
     *
     * @return
     */
    @Scheduled(cron = "0/3 * * * * ? ")
//    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute2_2() {
        List<String> ids = storeTypeService.listOwn();
        List<String> strings = nccScZkmxbWmsService.selectZkOut(ids);