diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.java index 5e09d7a64..4980df8f8 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.java @@ -51,4 +51,12 @@ public interface DistributionLoadscanAbnormalMapper extends BaseMapper exportDistributionLoadscanAbnormal(@Param("ew") Wrapper queryWrapper); + /** + * 装车关闭装车异常 + * @param orderPackageCode + * @param warehouseId + * @param reservationId + * @param username + */ + void completeLoadingAbnormal(@Param("orderPackageCode") String orderPackageCode,@Param("warehouseId") Long warehouseId,@Param("reservationId") Long reservationId,@Param("username") String username); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.xml index 289530bad..d898c64fa 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionLoadscanAbnormalMapper.xml @@ -40,6 +40,20 @@ + + UPDATE logpm_distribution_loadscan_abnormal + SET auditing_user = #{username}, + auditing_time = now(), + complete = 1, + auditing_status = 4, + remarks = '扫描装车关闭异常' + WHERE + package_code = #{orderPackageCode} + AND warehouse_id = #{warehouseId} + AND reservation_id = #{reservationId} + AND is_deleted = 0 + AND loading_id is null +