From 394f392c6747a60b70581f92b0396fdc3f7d5928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=8E=E5=85=B4?= <2220574228@qq.com> Date: Mon, 1 Jun 2026 13:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=80=E8=B4=A7=E5=9B=BE?= =?UTF-8?q?=E7=89=87;=E5=87=BA=E5=BA=93=E5=8D=95=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=8A=A5=E9=94=99;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/ReservationStockInOrder.java | 4 + .../po/ReservationStockInOrderPO.java | 3 + .../todo/ReservationStockInOrderDO.java | 3 + .../todo/ReservationStockInOrderDTO.java | 3 + .../ReservationStockInOrderMapper.xml | 16 +-- .../ReserveStockInOrderMapper.xml | 10 +- .../mapper/MaterialInventoryMapper.java | 3 + .../service/ShiftManageDomainService.java | 23 +++- .../stockInOrder/entity/StockInOrder.java | 3 + .../repository/po/StockInOrderPO.java | 3 + .../repository/todo/StockInOrderDO.java | 3 + .../dto/stockInOrder/StockInOrderDTO.java | 3 + .../MaterialInventoryMapper.xml | 111 ++++++++++++++++++ .../stockInOrder/StockInOrderMapper.xml | 3 +- 14 files changed, 177 insertions(+), 14 deletions(-) diff --git a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/entity/ReservationStockInOrder.java b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/entity/ReservationStockInOrder.java index a322551bf..8d443c0c4 100644 --- a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/entity/ReservationStockInOrder.java +++ b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/entity/ReservationStockInOrder.java @@ -145,6 +145,10 @@ public class ReservationStockInOrder extends BaseVOEntity { @Excel(name = "附件url") private String annexUrl; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; + @ApiModelProperty("物料种数") @Excel(name = "物料种数") private Integer materialQuantity; diff --git a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/po/ReservationStockInOrderPO.java b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/po/ReservationStockInOrderPO.java index f34692a71..9dc9998e7 100644 --- a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/po/ReservationStockInOrderPO.java +++ b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/po/ReservationStockInOrderPO.java @@ -445,5 +445,8 @@ public class ReservationStockInOrderPO extends BaseVOEntity { @ApiModelProperty("推送人姓名") private String pushByName; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDO.java b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDO.java index 7dfe0afcb..55678eb48 100644 --- a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDO.java +++ b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDO.java @@ -444,4 +444,7 @@ public class ReservationStockInOrderDO extends BaseVOEntity { @ApiModelProperty("推送人姓名") private String pushByName; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDTO.java b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDTO.java index ccf463949..e2173dc74 100644 --- a/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDTO.java +++ b/mhd_oms/src/main/java/com/mhd/oms/domain/reservationStockInOrder/repository/todo/ReservationStockInOrderDTO.java @@ -442,4 +442,7 @@ public class ReservationStockInOrderDTO extends ReservationStockInOrderBaseDTO { @ApiModelProperty("推送人姓名") private String pushByName; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml b/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml index 80a8f4398..47a25b4ac 100644 --- a/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml +++ b/mhd_oms/src/main/resources/mapper/reservationStockInOrder/ReservationStockInOrderMapper.xml @@ -97,6 +97,8 @@ + + @@ -124,7 +126,7 @@ - a.weight_limit, a.volume_limit, a.cancel_order, a.cancel_remark, a.cancel_by, + a.weight_limit, a.volume_limit, a.cancel_order, a.cancel_remark, a.cancel_by,a.PICTURE_URL, a.cancel_by_name, a.cancel_time, a.close_order, a.close_remark, a.close_by, a.close_by_name, a.close_time, a.remark, a.create_time, a.create_by, a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag, over_stock_id, over_stock_status, over_stock_type, a."TO", a.CONTACT_PERSON, a.VEHICLE_INFO, a.CONSIGNMENT_NO, a.TEL, a.DRIVER_SIGNATURE, a.FAX, a.DECLARATION_AREA, a.MANUFACTURER, @@ -457,26 +459,26 @@ diff --git a/mhd_oms/src/main/resources/mapper/reserveStockInOrder/ReserveStockInOrderMapper.xml b/mhd_oms/src/main/resources/mapper/reserveStockInOrder/ReserveStockInOrderMapper.xml index 4df467410..21b1504a4 100644 --- a/mhd_oms/src/main/resources/mapper/reserveStockInOrder/ReserveStockInOrderMapper.xml +++ b/mhd_oms/src/main/resources/mapper/reserveStockInOrder/ReserveStockInOrderMapper.xml @@ -689,22 +689,22 @@ diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/materialInventory/repository/mapper/MaterialInventoryMapper.java b/mhd_wms/src/main/java/com/mhd/wms/domain/materialInventory/repository/mapper/MaterialInventoryMapper.java index 5a42b31a8..013aca6f3 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/materialInventory/repository/mapper/MaterialInventoryMapper.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/materialInventory/repository/mapper/MaterialInventoryMapper.java @@ -1,6 +1,7 @@ package com.mhd.wms.domain.materialInventory.repository.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mhd.wms.domain.inventoryAdjustmentRecord.entity.InventoryAdjustmentRecord; import com.mhd.wms.domain.materialInventory.entity.MaterialInventory; import com.mhd.wms.domain.materialInventory.repository.po.MaterialInventoryPO; import com.mhd.wms.domain.materialInventory.repository.po.MaterialInventoryQueryListPO; @@ -103,4 +104,6 @@ public interface MaterialInventoryMapper extends BaseMapper * @return 库存信息 */ MaterialInventoryPO selectByIdWithBatchAttributes(@Param("materialInventoryId") Long materialInventoryId); + + public void insertReservationInventoryAdjustmentRecord(com.mhd.wms.domain.inventoryAdjustmentRecord.entity.InventoryAdjustmentRecord inventoryAdjustmentRecord); } \ No newline at end of file diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/shiftManage/service/ShiftManageDomainService.java b/mhd_wms/src/main/java/com/mhd/wms/domain/shiftManage/service/ShiftManageDomainService.java index c9bb54635..86aa5996c 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/shiftManage/service/ShiftManageDomainService.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/shiftManage/service/ShiftManageDomainService.java @@ -9,6 +9,8 @@ import com.mhd.common.core.exception.ServiceException; import com.mhd.common.core.utils.OrderSequence; import com.mhd.common.core.utils.bean.BeanUtils; import com.mhd.common.security.utils.SecurityUtils; +import com.mhd.system.api.OmsServiceFeign; +import com.mhd.system.api.domain.MaterialInventoryOmsParamDO; import com.mhd.system.api.domain.cache.AssociationWarehouseCacheDO; import com.mhd.system.api.domain.cache.SystemServiceCacheUtil; import com.mhd.system.api.model.LoginUser; @@ -77,6 +79,8 @@ public class ShiftManageDomainService { private IDeliveTaskService deliveTaskService; @Autowired private SystemServiceFeign systemServiceFeign; + @Autowired + private OmsServiceFeign omsServiceFeign; /** @@ -787,6 +791,23 @@ public class ShiftManageDomainService { materialInventoryDOOld.setVolume(shiftMaterialDetailPO.getVolume()); materialInventoryDOOld.setArea(shiftMaterialDetailPO.getArea()); materialInventoryOldList.add(materialInventoryDOOld); + + //同步oms +// MaterialInventoryOmsParamDO materialInventoryOmsParamDO = new MaterialInventoryOmsParamDO(); +// materialInventoryOmsParamDO.setLotNumber(materialInventoryOldDb.getLotNumber()); +// materialInventoryOmsParamDO.setWarehouseId(materialInventoryOldDb.getWarehouseId()); +// materialInventoryOmsParamDO.setMaterialBaseInfoId(materialInventoryOldDb.getMaterialBaseInfoId()); +// materialInventoryOmsParamDO.setBatchNumber(materialInventoryOldDb.getBatchNumber()); +// materialInventoryOmsParamDO.setInOrderNumber(materialInventoryOldDb.getInOrderNumber()); +// materialInventoryOmsParamDO.setType("6"); +// +// materialInventoryOmsParamDO.setQuantity(shiftQuantity); +// materialInventoryOmsParamDO.setNetWeight(shiftMaterialDetailPO.getNetWeight()); +// materialInventoryOmsParamDO.setGrossWeight(shiftMaterialDetailPO.getGrossWeight()); +// materialInventoryOmsParamDO.setVolume(shiftMaterialDetailPO.getVolume()); +// materialInventoryOmsParamDO.setArea(shiftMaterialDetailPO.getArea()); +// +// omsServiceFeign.omsEdit(materialInventoryOmsParamDO); } //目标库位 需要增加的库存 @@ -1052,4 +1073,4 @@ public class ShiftManageDomainService { } return d; } -} +} \ No newline at end of file diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/entity/StockInOrder.java b/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/entity/StockInOrder.java index b6b086a4f..c7a528686 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/entity/StockInOrder.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/entity/StockInOrder.java @@ -365,4 +365,7 @@ public class StockInOrder extends BaseVOEntity { @ApiModelProperty("oms入库单id") @Excel(name = "oms入库单id") private String omsStockInOrderId; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/po/StockInOrderPO.java b/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/po/StockInOrderPO.java index c8e6957c4..a65f25e26 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/po/StockInOrderPO.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/po/StockInOrderPO.java @@ -425,5 +425,8 @@ public class StockInOrderPO extends BaseVOEntity { @ApiModelProperty("oms入库单id") @Excel(name = "oms入库单id") private String omsStockInOrderId; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/todo/StockInOrderDO.java b/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/todo/StockInOrderDO.java index 0b3b6a4fa..f7dff7243 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/todo/StockInOrderDO.java +++ b/mhd_wms/src/main/java/com/mhd/wms/domain/stockInOrder/repository/todo/StockInOrderDO.java @@ -394,4 +394,7 @@ public class StockInOrderDO extends BaseVOEntity { @ApiModelProperty("oms入库单id") @Excel(name = "oms入库单id") private String omsStockInOrderId; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_wms/src/main/java/com/mhd/wms/interfaces/dto/stockInOrder/StockInOrderDTO.java b/mhd_wms/src/main/java/com/mhd/wms/interfaces/dto/stockInOrder/StockInOrderDTO.java index bd07f9946..000367b55 100644 --- a/mhd_wms/src/main/java/com/mhd/wms/interfaces/dto/stockInOrder/StockInOrderDTO.java +++ b/mhd_wms/src/main/java/com/mhd/wms/interfaces/dto/stockInOrder/StockInOrderDTO.java @@ -392,4 +392,7 @@ public class StockInOrderDTO extends StockInOrderBaseDTO { @ApiModelProperty("oms入库单id") @Excel(name = "oms入库单id") private String omsStockInOrderId; + @ApiModelProperty("附件url") + @Excel(name = "附件url") + private String pictureUrl; } \ No newline at end of file diff --git a/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml b/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml index 64b1b5548..0cf5d975e 100644 --- a/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml +++ b/mhd_wms/src/main/resources/mapper/materialInventory/MaterialInventoryMapper.xml @@ -1367,4 +1367,115 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM material_inventory WHERE material_inventory_id = #{materialInventoryId} AND del_flag = 1 + + + + INSERT INTO "NGWL_TEST_OMS"."RESERVATION_INVENTORY_ADJUSTMENT_RECORD" + + ORGANIZATION_ID, + ORGANIZATION_NAME, + TOP_ORGANIZATION_ID, + MATERIAL_INVENTORY_ID, + MATERIAL_BASE_INFO_ID, + MATERIAL_CODE, + MATERIAL_NAME, + BAR_CODE, + SHIPPER_ID, + SHIPPER_NAME, + WAREHOUSE_ID, + WAREHOUSE_CODE, + WAREHOUSE_NAME, + STORAGE_SECTION_ID, + STORAGE_CODE, + STORAGE_NAME, + STORAGE_LOCATION_ID, + STORAGE_LOCATION_CODE, + STORAGE_LOCATION_NAME, + ADJUST_TYPE, + ADJUST_DIRECTION, + ADJUST_BEFORE_STATUS_CODE, + ADJUST_BEFORE_STATUS_NAME, + ADJUST_AFTER_STATUS_CODE, + ADJUST_AFTER_STATUS_NAME, + INVENTORY_BEFORE_QUANTITY, + ALLOCATION_BEFORE_QUANTITY, + FREEZE_BEFORE_QUANTITY, + INVENTORY_AFTER_QUANTITY, + ALLOCATION_AFTER_QUANTITY, + FREEZE_AFTER_QUANTITY, + CREATE_TIME, + CREATE_BY, + CREATE_BY_NAME, + UPDATE_TIME, + UPDATE_BY, + UPDATE_BY_NAME, + DEL_FLAG, + ADJUST_ACTION, + RELATE_NO, + NET_WEIGHT, + GROSS_WEIGHT, + VOLUME, + AREA, + ADJUSTED_NET_WEIGHT, + ADJUSTED_GROSS_WEIGHT, + ADJUSTED_VOLUME, + ADJUSTED_AREA, + IN_ORDER_NUMBER, + LOT_NUMBER, + BATCH_NUMBER, + + + #{organizationId}, + #{organizationName}, + #{topOrganizationId}, + #{materialInventoryId}, + #{materialBaseInfoId}, + #{materialCode}, + #{materialName}, + #{barCode}, + #{shipperId}, + #{shipperName}, + #{warehouseId}, + #{warehouseCode}, + #{warehouseName}, + #{storageSectionId}, + #{storageCode}, + #{storageName}, + #{storageLocationId}, + #{storageLocationCode}, + #{storageLocationName}, + #{adjustType}, + #{adjustDirection}, + #{adjustBeforeStatusCode}, + #{adjustBeforeStatusName}, + #{adjustAfterStatusCode}, + #{adjustAfterStatusName}, + #{inventoryBeforeQuantity}, + #{allocationBeforeQuantity}, + #{freezeBeforeQuantity}, + #{inventoryAfterQuantity}, + #{allocationAfterQuantity}, + #{freezeAfterQuantity}, + #{createTime}, + #{createBy}, + #{createByName}, + #{updateTime}, + #{updateBy}, + #{updateByName}, + #{delFlag}, + #{adjustAction}, + #{relateNo}, + #{netWeight}, + #{grossWeight}, + #{volume}, + #{area}, + #{adjustedNetWeight}, + #{adjustedGrossWeight}, + #{adjustedVolume}, + #{adjustedArea}, + #{inOrderNumber}, + #{lotNumber}, + #{batchNumber}, + + \ No newline at end of file diff --git a/mhd_wms/src/main/resources/mapper/stockInOrder/StockInOrderMapper.xml b/mhd_wms/src/main/resources/mapper/stockInOrder/StockInOrderMapper.xml index 234081d08..3c3e82f8e 100644 --- a/mhd_wms/src/main/resources/mapper/stockInOrder/StockInOrderMapper.xml +++ b/mhd_wms/src/main/resources/mapper/stockInOrder/StockInOrderMapper.xml @@ -86,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -103,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.audit_status, a.audit_remark, a.audit_by, a.audit_by_name, a.audit_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code, a.shipper_name, a.order_type_code, a.order_type_name, a.supplier_id, a.supplier_code, a.supplier_name, a.expect_time, a.supply_chain_number, a.priority_level_code, a.priority_level_name, a.direct_warehouse, a.annex_url, a.material_quantity, a.quantity,a.billing_json,a.SETTLEMENT_CURRENCY, - a.SALESMAN_ID,a.SALESMAN_NAME, + a.SALESMAN_ID,a.SALESMAN_NAME,a.PICTURE_URL, -- 计划入库数量:入库明细表 in_material_detail 的 quantity 汇总 (select ifnull(sum(imd.quantity), 0) from in_material_detail imd