|
|
|
@ -106,6 +106,7 @@ import org.springblade.core.tool.api.R;
|
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springblade.system.cache.DictBizCache; |
|
|
|
|
import org.springblade.system.entity.User; |
|
|
|
|
import org.springblade.system.feign.IDictBizClient; |
|
|
|
@ -3720,6 +3721,14 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
// distributionNodeWorkService.planDelivery(deliveryListEntity, AuthUtil.getUser(), BizOperationEnums.MODIFY);
|
|
|
|
|
|
|
|
|
|
NodeFanoutMsg<DistributionTaskVO> nodeFanoutMsg = buildNodeFanoutMsgForPlan(deliveryListEntity, AuthUtil.getUser(), BizOperationEnums.MODIFY); |
|
|
|
|
DistributionTaskVO main = nodeFanoutMsg.getMain(); |
|
|
|
|
List<ReservationVO> reservationVOList = main.getReservationVOList(); |
|
|
|
|
if (reservationVOList.isEmpty()) { |
|
|
|
|
for (ReservationVO reservationVO : reservationVOList) { |
|
|
|
|
NodeFanoutMsg<ReservationVO> msgByReservation = buildNodeFanoutMsgByReservation(reservationVO,BizOperationEnums.MODIFY); |
|
|
|
|
distributionNodeWorkService.planReservation(nodeFanoutMsg,AuthUtil.getUser(), myCurrentWarehouse); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
distributionNodeWorkService.planDelivery(nodeFanoutMsg, AuthUtil.getUser()); |
|
|
|
|
|
|
|
|
|
trunklinePackageTrackLogClient.addPackageTrackLog(logs); |
|
|
|
@ -3727,6 +3736,19 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
public NodeFanoutMsg<ReservationVO> buildNodeFanoutMsgByReservation(ReservationVO reservationVO, BizOperationEnums bizOperation,BasicdataWarehouseEntity warehouse) { |
|
|
|
|
NodeFanoutMsg<ReservationVO> nodeFanoutMsg = new NodeFanoutMsg<>(); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setNode(WorkNodeEnums.PLANNED_RESERVATION); |
|
|
|
|
nodeFanoutMsg.setBizOperation(bizOperation); |
|
|
|
|
nodeFanoutMsg.setOperator(AuthUtil.getNickName()); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouse.getName()); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouse.getId()); |
|
|
|
|
nodeFanoutMsg.setTenantId(AuthUtil.getTenantId()); |
|
|
|
|
nodeFanoutMsg.setMain(reservationVO); |
|
|
|
|
return nodeFanoutMsg; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public NodeFanoutMsg<DistributionTaskVO> buildNodeFanoutMsgForPlan(DistributionDeliveryListEntity distributionDeliveryListEntity, BladeUser user, BizOperationEnums bizOperation) { |
|
|
|
|