|
|
|
@ -70,10 +70,7 @@ import org.springblade.common.constant.billLading.BillLadingStatusConstant;
|
|
|
|
|
import org.springblade.common.constant.common.IsOrNoConstant; |
|
|
|
|
import org.springblade.common.constant.delivery.DeliveryLoadingStatusConstant; |
|
|
|
|
import org.springblade.common.constant.delivery.DeliveryStatusConstant; |
|
|
|
|
import org.springblade.common.constant.loading.LoadScanSigningStatusConstant; |
|
|
|
|
import org.springblade.common.constant.loading.LoadingAbnormalAuditingStatusConstant; |
|
|
|
|
import org.springblade.common.constant.loading.LoadingIsInsertConstant; |
|
|
|
|
import org.springblade.common.constant.loading.LoadingStatusConstant; |
|
|
|
|
import org.springblade.common.constant.loading.*; |
|
|
|
|
import org.springblade.common.constant.orderpackage.*; |
|
|
|
|
import org.springblade.common.constant.reservation.*; |
|
|
|
|
import org.springblade.common.constant.signing.SignforDriverSigningStatusConstant; |
|
|
|
@ -1710,6 +1707,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<DeliveryNodeVo> handleStockUp(DistributionStockupEntity distributionStockupEntity) { |
|
|
|
|
List<DeliveryNodeVo> nodeVos = new ArrayList<>(); |
|
|
|
|
try { |
|
|
|
@ -2498,6 +2497,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Long> packageLockIds = new ArrayList<>(); |
|
|
|
|
try { |
|
|
|
|
|
|
|
|
@ -3335,6 +3335,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
distributionLoadscanEntity.setReservationId(distrilbutionloadingscanDTO.getReservationId()); |
|
|
|
|
distributionLoadscanEntity.setDeliveryId(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
distributionLoadscanEntity.setScanStatus(LoadingStatusConstant.buluzhuangche.getValue()); |
|
|
|
|
distributionLoadscanEntity.setSignforType(LoadScanSigningTypeStatusConstant.sijiqianshou.getValue()); |
|
|
|
|
distributionLoadscanEntity.setScanUser(AuthUtil.getUser().getNickName()); |
|
|
|
|
distributionLoadscanEntity.setSigningUser(AuthUtil.getUser().getNickName()); |
|
|
|
|
distributionLoadscanEntity.setSigningUserId(AuthUtil.getUser().getUserId()); |
|
|
|
@ -3920,6 +3921,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
List<DistributionStockArticleEntity> distributionStockArticleEntities = distributionStockArticleService.listByIds(orderIds); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DistributionReservationStockarticleEntity> reservationOrders = distributionReservationStockarticleService.list(Wrappers.<DistributionReservationStockarticleEntity>query().lambda() |
|
|
|
|
.eq(DistributionReservationStockarticleEntity::getReservationId, distributionDeliveryList.getReservationId()) |
|
|
|
|
.in(DistributionReservationStockarticleEntity::getStockArticleId, orderIds) |
|
|
|
@ -4059,7 +4061,6 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 寻找预约单中订单 |
|
|
|
|
* |
|
|
|
|
* @param reservationOrders |
|
|
|
|
* @param id |
|
|
|
|
* @return |
|
|
|
@ -5233,6 +5234,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
loadscanEntity.setReservationId(distributionSignforEntity.getReservationId()); |
|
|
|
|
loadscanEntity.setScanUser(user.getNickName()); |
|
|
|
|
loadscanEntity.setScanTime(signingTime); |
|
|
|
|
loadscanEntity.setSignforType(LoadScanSigningTypeStatusConstant.sijipiliangqianshou.getValue()); |
|
|
|
|
|
|
|
|
|
loadscanEntity.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
|
loadscanEntity.setWarehouseName(myCurrentWarehouse.getName()); |
|
|
|
|
loadscanEntity.setPackageNub(parcelListEntity.getQuantity()); |
|
|
|
@ -5291,6 +5294,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
loadscanEntities.setReceivedQuantity(parcelListEntity.getQuantity()); |
|
|
|
|
loadscanEntities.setOneClick(1); |
|
|
|
|
loadscanEntities.setOneQclick(2); |
|
|
|
|
loadscanEntities.setSignforType(LoadScanSigningTypeStatusConstant.sijipiliangqianshou.getValue()); |
|
|
|
|
loadscanEntities.setSigningUser(user.getNickName()); |
|
|
|
|
loadscanEntities.setSigningUserId(user.getUserId()); |
|
|
|
|
loadscanEntities.setReceivedQuantity(parcelListEntity.getQuantity()); |
|
|
|
@ -6023,6 +6027,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
distributionLoadscanEntity.setScanTime(simpleDateFormat.format(new Date())); |
|
|
|
|
distributionLoadscanEntity.setSigningUser(user.getNickName()); |
|
|
|
|
distributionLoadscanEntity.setSigningUserId(user.getUserId()); |
|
|
|
|
distributionLoadscanEntity.setSignforType(LoadScanSigningTypeStatusConstant.sijiqianshou.getValue()); |
|
|
|
|
distributionLoadscanEntity.setSigningTime(simpleDateFormat.format(new Date())); |
|
|
|
|
distributionLoadscanEntity.setSigningUser(user.getNickName()); |
|
|
|
|
loadingNumber += distributionLoadscanEntity.getLoadedNub(); |
|
|
|
@ -6363,6 +6368,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
return selectDistributionSignforPageCount; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -6629,10 +6635,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
//维护相关的订单信息
|
|
|
|
|
distributionStockArticleService.maintenanceOrderInfoByIds(orderIds); |
|
|
|
|
return R.success("异常驳回成功"); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void buildNameAndPhone(List<SignPushDataUnitDTO> pushOldPackageSigning) { |
|
|
|
|
for (SignPushDataUnitDTO signPushDataUnitDTO : pushOldPackageSigning) { |
|
|
|
|
User user = bladeRedis.get(RedisKeyConstant.USER_NAME_PHONE_KEY + signPushDataUnitDTO.getAdministratorsId()); |
|
|
|
@ -6662,10 +6666,11 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void buildReservationNameAndPhone(List<SignPushDataContactDTO> customers) { |
|
|
|
|
for (SignPushDataContactDTO signPushDataUnitDTO : customers) { |
|
|
|
|
User user = bladeRedis.get(RedisKeyConstant.USER_NAME_PHONE_KEY + signPushDataUnitDTO.getSignUserId()); |
|
|
|
|
log.info("buildNameAndPhone >>> 获取缓存的中的用户信息{}", user); |
|
|
|
|
log.info("buildNameAndPhone >>> 获取缓存的中的用户信息{}",user); |
|
|
|
|
if (user == null) { |
|
|
|
|
R<User> userT = userClient.userInfoById(signPushDataUnitDTO.getSignUserId()); |
|
|
|
|
if (userT.isSuccess()) { |
|
|
|
@ -6676,13 +6681,13 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (ObjectUtils.isNotNull(user)) { |
|
|
|
|
assert user != null; |
|
|
|
|
signPushDataUnitDTO.setSignUserName(user.getName()); |
|
|
|
|
if (ObjectUtils.isNotEmpty(user.getPhone())) { |
|
|
|
|
if (ObjectUtils.isNotEmpty(user.getPhone())){ |
|
|
|
|
signPushDataUnitDTO.setSignUserPhone(user.getPhone()); |
|
|
|
|
} else { |
|
|
|
|
if (ObjectUtils.isNotEmpty(user.getAccount())) { |
|
|
|
|
}else { |
|
|
|
|
if (ObjectUtils.isNotEmpty(user.getAccount())){ |
|
|
|
|
signPushDataUnitDTO.setSignUserPhone(user.getAccount()); |
|
|
|
|
} else { |
|
|
|
|
log.info("用户无电话号码且账号信息为空>>用户名称:{}", user.getName()); |
|
|
|
|
}else { |
|
|
|
|
log.info("用户无电话号码且账号信息为空>>用户名称:{}",user.getName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|