| | |
| | | p1.getUnit(), |
| | | p1.getTrackCode(), |
| | | p1.getFieldsIndex(), |
| | | Math.round((p1.getAnfme() + p2.getAnfme()) * 100) / 100.0, |
| | | Math.round((p1.getAnfme() + p2.getAnfme())* 1000000) / 1000000.0, |
| | | p1.getWorkQty(), |
| | | p1.getTenantId(), |
| | | p1.getStatus(), |
| | |
| | | |
| | | return waveItems; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @param id |
| | | * @return |
| | | * @author Ryan |
| | | * @description 完成出库单 |
| | | * @time 2025/4/25 10:07 |
| | | */ |
| | | @Override |
| | | public R completeOutOrderById(Long id) { |
| | | WkOrder order = this.getById(id); |
| | | if (Objects.isNull(order)) { |
| | | return R.error("出库单不存在!!"); |
| | | } |
| | | order.setExceStatus(AsnExceStatus.OUT_STOCK_STATUS_TASK_DONE.val); |
| | | if (!this.updateById(order)) { |
| | | throw new CoolException("完成出库单失败!!"); |
| | | } |
| | | return R.ok("完成出库单成功!!"); |
| | | } |
| | | } |