Browse Source

商家端取消BUG修复

dist.1.3.0
汤建军 6 months ago
parent
commit
fb32fd7b6d
  1. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

@ -3703,7 +3703,6 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
.eq(DistributionReservationPackageEntity::getReservationId, reservationId) .eq(DistributionReservationPackageEntity::getReservationId, reservationId)
.in(DistributionReservationPackageEntity::getStockArticleId, orderIds) .in(DistributionReservationPackageEntity::getStockArticleId, orderIds)
.ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue()) .ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue())
.ne(DistributionReservationPackageEntity::getCancelRemark, "商家端取消")
); );
if (!packageEntityList.isEmpty()) { if (!packageEntityList.isEmpty()) {
//进行包件状态恢复 //进行包件状态恢复
@ -3717,7 +3716,12 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
JSONObject jsonObject = handleLogJSONObject(myCurrentWarehouse, AuthUtil.getUser(), distributionReservationPackageEntity.getPacketBarCode(), content, WorkNodeEnums.CANCEL_DELIVERY.getCode()); JSONObject jsonObject = handleLogJSONObject(myCurrentWarehouse, AuthUtil.getUser(), distributionReservationPackageEntity.getPacketBarCode(), content, WorkNodeEnums.CANCEL_DELIVERY.getCode());
logList.add(jsonObject); logList.add(jsonObject);
} }
List<Long> packageIds = packageEntityList.stream().map(DistributionReservationPackageEntity::getId).collect(Collectors.toList());
distributionReservationPackageService.update(Wrappers.<DistributionReservationPackageEntity>update().lambda()
.in(DistributionReservationPackageEntity::getId,packageIds)
.set(DistributionReservationPackageEntity::getCancelRemark,"商家端取消")
.set(DistributionReservationPackageEntity::getPacketBarStatus,ReservationPackageStatusConstant.quxiao.getValue())
);
} }

Loading…
Cancel
Save