Browse Source

签收PDA客户信息调整

dist.1.3.0
汤建军 7 months ago
parent
commit
e27f9b00f9
  1. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java
  2. 1
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml
  3. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionDeliveryListService.java
  4. 20
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java

@ -423,8 +423,8 @@ public class DistributionDeliveryListController extends BladeController {
@GetMapping("/judgmentOrderRemove")
@ApiOperationSupport(order = 2)
@ApiOperation(value = "判断是否可以在商配计划中移除", notes = "customArgs")
public R<Boolean> judgmentOrderRemove(@RequestParam Long deliveryId,@RequestParam Long orderId) {
boolean result = distributionDeliveryListService.judgmentOrderRemove(deliveryId,orderId);
public R<Boolean> judgmentOrderRemove(@RequestParam Long deliveryId,@RequestParam String orderIds) {
boolean result = distributionDeliveryListService.judgmentOrderRemove(deliveryId,orderIds);
return R.data(result);
}

1
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml

@ -733,6 +733,7 @@
logpm_distribution_signfor lds
JOIN logpm_distribution_reservation ldr ON ldr.id = lds.reservation_id
WHERE lds.is_deleted = 0 AND lds.delivery_id = #{id}
GROUP BY lds.reservation_id
</select>
<select id="selectord" resultType="com.logpm.distribution.vo.app.DistributionAppStockArticleVO">
SELECT distinct

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionDeliveryListService.java

@ -401,7 +401,7 @@ public interface IDistributionDeliveryListService extends BaseService<Distributi
* @param orderId
* @return
*/
boolean judgmentOrderRemove(Long deliveryId, Long orderId);
boolean judgmentOrderRemove(Long deliveryId, String orderIds);
/**
* 维护配送任务的配送数量

20
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -2442,19 +2442,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
reservationStockarticleEntityList.forEach(rs -> {
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleService.getById(rs.getStockArticleId());
DistributionStockArticleVO distributionStockArticleVO = DistributionStockArticleWrapper.build().entityVO(stockArticleEntity);
// if (rs.getIsZero().equals(IsOrNoConstant.no.getValue())) {
//// List<DistributionReservationPackageEntity> reservationPackageEntityList = distributionReservationPackageService.list(Wrappers.<DistributionReservationPackageEntity>query().lambda().eq(DistributionReservationPackageEntity::getReservationId, rs.getReservationId()).eq(DistributionReservationPackageEntity::getStockArticleId, stockArticleEntity.getId()).ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue()));
//// if (Func.isNotEmpty(reservationPackageEntityList)) {
//// ArrayList<DistributionParcelListVO> distributionParcelListVOS = new ArrayList<>();
//// reservationPackageEntityList.forEach(rp -> {
//// DistributionParcelListEntity parcelListEntity = distributionParcelListService.getById(rp.getParceListId());
//// DistributionParcelListVO distributionParcelListVO = DistributionParcelListWrapper.build().entityVO(parcelListEntity);
//// distributionParcelListVOS.add(distributionParcelListVO);
//// });
//// distributionStockArticleVO.setPackageList(distributionParcelListVOS);
//// distributionStockArticleVO.setParcelListVOS(DistributionParcelListWrapper.build().listVO(distributionParcelListService.getBaseMapper().selectList(Wrappers.<DistributionParcelListEntity>query().lambda().eq(DistributionParcelListEntity::getStockArticleId, rs.getStockArticleId()))));
//// }
// }
distributionStockArticleVO.setReservationNum(rs.getReservationNum());
distributionStockArticleVOS.add(distributionStockArticleVO);
});
@ -7015,14 +7002,15 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
}
@Override
public boolean judgmentOrderRemove(Long deliveryId, Long orderId) {
public boolean judgmentOrderRemove(Long deliveryId, String orderIds) {
List<Long> list = Func.toLongList(orderIds);
List<DistributionLoadscanEntity> loadscanEntityList = distributionLoadscanService.list(Wrappers.<DistributionLoadscanEntity>query().lambda()
.eq(DistributionLoadscanEntity::getDeliveryId, deliveryId)
.in(DistributionLoadscanEntity::getOrderId, list)
.ne(DistributionLoadscanEntity::getScanStatus, LoadingStatusConstant.quxiao.getValue())
);
if (Func.isNotEmpty(loadscanEntityList)) {
Map<Long, DistributionLoadscanEntity> loadingOrderMap = loadscanEntityList.stream().collect(Collectors.toMap(DistributionLoadscanEntity::getOrderId, Function.identity(), (k1, k2) -> k2));
return !Func.isNotEmpty(loadingOrderMap.get(orderId));
return false;
}
return true;
}

Loading…
Cancel
Save