zy-asrs-admin/src/components/order/order/orderIn.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-admin/src/views/IndexView.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskWaveTimer.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-wms/src/main/resources/application.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
zy-asrs-admin/src/components/order/order/orderIn.vue
@@ -50,14 +50,14 @@ { title: formatMessage('db.man_order.order_no', '订单编号'), dataIndex: 'orderNo', width: 140, width: 200, ellipsis: true, ...getColumnSearchProps('orderNo'), }, { title: formatMessage('db.man_order.order_time', '单据日期'), dataIndex: 'orderTime', width: 140, width: 160, ellipsis: true, ...getColumnSearchProps('orderTime'), }, zy-asrs-admin/src/views/IndexView.vue
@@ -228,7 +228,7 @@ <template> <a-flex gap="middle" horizontal> <div class="sider-style"> <a-layout-sider class="main-sider" v-model:collapsed="collapsed" :trigger="null" collapsible theme="dark"> <a-layout-sider class="main-sider" v-model:collapsed="collapsed" :trigger="null" theme="dark"> <div class="logo" /> <a-menu v-model:openKeys="openKeys" v-model:selectedKeys="selectedKeys" @select="menuSelect" theme="dark" mode="inline" > zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java
@@ -946,7 +946,7 @@ } } //库存更新逻辑 // //库存更新逻辑 List<Long> orderIds = dto.getList().stream().findFirst().get().getOrderIds(); List<OrderDetl> orderDetls = orderDetlService.list(new LambdaQueryWrapper<OrderDetl>().in(OrderDetl::getOrderId, orderIds)); orderDetls.forEach(orderDetl -> { zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java
@@ -113,7 +113,6 @@ LocDetl locDetl = JSON.parseObject(JSON.toJSONString(map), LocDetl.class); locDetls.add(locDetl); } locDetls = parseLocDetl(locDetls); List<Long> sortDirctLoc = new ArrayList<>(); zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java
@@ -134,7 +134,7 @@ if (!taskService.updateById(task)) { throw new CoolException("库存更新失败"); } else { //CacheSite 释放已被占用的通道 //CacheSite 释放已被占用的通道 //fixme 播种功能完成后,需要将这里注释掉 List<TaskDetl> detls = taskDetlService.list(new LambdaQueryWrapper<TaskDetl>().eq(TaskDetl::getTaskId, task.getId())); if (!Collections.isEmpty(detls)) { List<Long> waveIds = detls.stream().map(TaskDetl::getWaveId).collect(Collectors.toList()); @@ -163,7 +163,6 @@ Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId)); // Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc())); if (loc == null) { log.info("库位不存在" + "=======>" + task.getTargetLoc()); throw new CoolException("库位不存在"); } zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskWaveTimer.java
@@ -45,7 +45,7 @@ @Autowired private DictService dictService; @Scheduled(cron = "0/3 * * * * ? ") @Scheduled(cron = "0/15 * * * * ? ") @Transactional(rollbackFor = Exception.class) public void taskWave() { InterceptorIgnoreHelper.handle(IgnoreStrategy.builder().tenantLine(true).build()); @@ -60,6 +60,9 @@ } List<Task> taskList = taskService.list(new LambdaQueryWrapper<Task>().eq(Task::getTaskSts, TaskStsType.WAVE_SEED.id)); if (taskList.isEmpty()) { // throw new CoolException("没有可播种任务!!"); } else { for (Task task : taskList) { Long hostId = task.getHostId(); @@ -92,17 +95,18 @@ Double anfme = taskDetl.getAnfme(); for (OrderDetl orderDetl : orderDetls) { double issued = Optional.of(orderDetl.getAnfme() - orderDetl.getQty() - orderDetl.getWorkQty()).orElse(0.0D); if (issued <= 0.0D) { continue; } if (anfme <= 0.0D) { break; } double workQty = issued; if(anfme - issued < 0){ workQty = anfme; } anfme -= workQty; orderUtils.updateWorkQty(orderDetl.getId(), workQty, true); //fixme 作业中数量调整放至,生成出库任务成功后 // double issued = Optional.of(orderDetl.getAnfme() - orderDetl.getQty() - orderDetl.getWorkQty()).orElse(0.0D); // if (issued <= 0.0D) { continue; } // if (anfme <= 0.0D) { break; } // // double workQty = issued; // if(anfme - issued < 0){ // workQty = anfme; // } // anfme -= workQty; // // orderUtils.updateWorkQty(orderDetl.getId(), workQty, true); CacheSite cacheSite = cacheSiteService.getOne(new LambdaQueryWrapper<CacheSite>().eq(CacheSite::getOrderId, orderDetl.getOrderId()).eq(CacheSite::getHostId, hostId)); if (cacheSite == null) { @@ -144,6 +148,7 @@ throw new CoolException("任务更新失败"); } } } } catch (Exception e) { e.printStackTrace(); TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); zy-asrs-wms/src/main/resources/application.yml
@@ -37,7 +37,7 @@ # global-config: # field-strategy: 0 configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl map-underscore-to-camel-case: true cache-enabled: true global-config: