|
|
|
@ -34,6 +34,7 @@ import org.springblade.core.mp.support.BladePage;
|
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
@ -391,4 +392,20 @@ public class DistributionParcelListClient implements IDistributionParcelListClie
|
|
|
|
|
|
|
|
|
|
return distributionParcelListService.list(queryWrapper); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionParcelListEntity> findPackagesByAdvanceIdsAndNoStock(List<Long> advanceIds, Long warehouseId) { |
|
|
|
|
return distributionParcelListService.findPackagesByAdvanceIdsAndNoStock(advanceIds,warehouseId); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Override |
|
|
|
|
public List<String> findAllOrderCodesAndDeleteByAdvanceIds(List<Long> advanceIds, Long warehouseId) { |
|
|
|
|
List<String> orderCodes = distributionParcelListService.findAllOrderCodesByAdvanceIds(advanceIds, warehouseId); |
|
|
|
|
distributionParcelListService.removePakcageByAdvanceIds(advanceIds,warehouseId); |
|
|
|
|
|
|
|
|
|
distributionStockArticleService.updateOrdersInfo(orderCodes,warehouseId); |
|
|
|
|
|
|
|
|
|
return orderCodes; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|