|
|
|
@ -2602,7 +2602,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
if (Func.isNotEmpty(reservationStockarticleEntityList) && reservationStockarticleEntityList.size() > 0) { |
|
|
|
|
reservationStockarticleEntityList.forEach(rs -> { |
|
|
|
|
rs.setStockArticleStatus(ReservationOrderStatusConstant.quxiao.getValue()); |
|
|
|
|
distributionReservationStockarticleService.updateById(rs); |
|
|
|
|
// distributionReservationStockarticleService.updateById(rs);
|
|
|
|
|
if (rs.getIsZero().equals(IsOrNoConstant.no.getValue())) { |
|
|
|
|
//订制品
|
|
|
|
|
//需要进行包件的预约状态维护
|
|
|
|
@ -2647,6 +2647,8 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
} else { |
|
|
|
|
log.error("######################预约订单isZero字段维护错误,reservation_stockarticle的ID为:{}", rs.getId()); |
|
|
|
|
} |
|
|
|
|
//取消配送订单
|
|
|
|
|
distributionReservationStockarticleService.updateById(rs); |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleService.getById(rs.getStockArticleId()); |
|
|
|
|
distributionStockArticleService.maintenanceOrderInfo(stockArticleEntity.getOrderCode(),stockArticleEntity.getWarehouseId()); |
|
|
|
|
|
|
|
|
@ -3747,4 +3749,21 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
public List<DistributionStockupOrderListVO> selectStockupZeroOrderList(Long reservationId) { |
|
|
|
|
return baseMapper.selectStockupZeroOrderList(reservationId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param params |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public void maintenanceCancelReservation(String params) { |
|
|
|
|
LambdaQueryWrapper<DistributionReservationEntity> lambda = Wrappers.<DistributionReservationEntity>query().lambda(); |
|
|
|
|
if (Func.isNotBlank(params)){ |
|
|
|
|
List<Long> list = Func.toLongList(params); |
|
|
|
|
lambda.eq(DistributionReservationEntity::getWarehouseId,list); |
|
|
|
|
} |
|
|
|
|
List<DistributionReservationEntity> reservationEntityList = this.list(lambda); |
|
|
|
|
for (DistributionReservationEntity reservationEntity : reservationEntityList) { |
|
|
|
|
this.maintenanceReservationInfo(reservationEntity.getId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|