@ -44,6 +44,7 @@ import com.logpm.warehouse.feign.IWarehouseUpdownGoodsClient;
import lombok.AllArgsConstructor ;
import lombok.AllArgsConstructor ;
import lombok.extern.slf4j.Slf4j ;
import lombok.extern.slf4j.Slf4j ;
import org.springblade.common.constant.DictBizConstant ;
import org.springblade.common.constant.DictBizConstant ;
import org.springblade.common.constant.RabbitConstant ;
import org.springblade.common.constant.order.OrderStockupStatusConstant ;
import org.springblade.common.constant.order.OrderStockupStatusConstant ;
import org.springblade.common.utils.CommonUtil ;
import org.springblade.common.utils.CommonUtil ;
import org.springblade.core.log.exception.ServiceException ;
import org.springblade.core.log.exception.ServiceException ;
@ -96,7 +97,6 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
private final RabbitTemplate rabbitTemplate ;
private final RabbitTemplate rabbitTemplate ;
@Override
@Override
public IPage < DistributionParcelListEntity > selectDistributionParcelListPage ( IPage < DistributionParcelListEntity > page , DistributionParcelListVO distributionParcelList ) {
public IPage < DistributionParcelListEntity > selectDistributionParcelListPage ( IPage < DistributionParcelListEntity > page , DistributionParcelListVO distributionParcelList ) {
List < BasicdataWarehouseEntity > myWatchWarehouse = basicdataWarehouseClient . getMyWatchWarehouse ( ) ;
List < BasicdataWarehouseEntity > myWatchWarehouse = basicdataWarehouseClient . getMyWatchWarehouse ( ) ;
@ -136,6 +136,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
/ * *
/ * *
* 查询备货包件信息
* 查询备货包件信息
*
* @param page
* @param page
* @param distributionParcelList
* @param distributionParcelList
* @return
* @return
@ -178,30 +179,29 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
// 上架状态
// 上架状态
}
}
@Override
@Override
public void updateGroundingStatus ( String orderPackageCode , String groundingStatus , Long warehouseId ) {
public void updateGroundingStatus ( String orderPackageCode , String groundingStatus , Long warehouseId ) {
try {
try {
updateGroundingStatus ( orderPackageCode , groundingStatus , warehouseId ) ;
// baseMapper.updateGroundingStatus(orderPackageCode,groundingStatus,warehouseId);
log . info ( ">>>>> 发送消息给MQ start 包件{}" , orderPackageCode ) ;
Map < String , Object > map = new HashMap ( ) ;
map . put ( "messageId" , CommonUtil . getUUID ( ) ) ;
map . put ( "orderPackageCode" , orderPackageCode ) ;
map . put ( "groundingStatus" , groundingStatus ) ;
map . put ( "warehouseId" , warehouseId ) ;
rabbitTemplate . convertAndSend ( RabbitConstant . ORDER_PACKAGE_STATUS_INFO_EXCHANGE , RabbitConstant . ORDER_PACKAGE_STATUS_INFO_ROUTING , map ) ;
log . info ( ">>>>> 发送消息给MQ end 包件{}" , orderPackageCode ) ;
} catch ( Exception e ) {
} catch ( Exception e ) {
log . error ( ">>>>>>> errr" , e ) ;
log . error ( "###############updateGroundingStatus: 更新上架状态失败 orderPackageCode={} warehouseId={} groundingStatus={}" , orderPackageCode , warehouseId , groundingStatus ) ;
log . error ( "###############updateGroundingStatus: 更新上架状态失败 orderPackageCode={} warehouseId={} groundingStatus={}" , orderPackageCode , warehouseId , groundingStatus ) ;
}
}
// log.info(">>>>> 发送消息给MQ start 包件{}",orderPackageCode);
//
// Map<String,Object> map = new HashMap();
// map.put("messageId", CommonUtil.getUUID());
// map.put("orderPackageCode", orderPackageCode);
// map.put("groundingStatus", groundingStatus);
// map.put("warehouseId", warehouseId);
//将消息携带绑定键值
// rabbitTemplate.convertAndSend(RabbitConstant.ORDER_PACKAGE_STATUS_INFO_EXCHANGE, RabbitConstant.ORDER_PACKAGE_STATUS_INFO_ROUTING, map);
// log.info(">>>>> 发送消息给MQ end 包件{}",orderPackageCode);
}
}
/ * *
/ * *
@ -263,6 +263,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
/ * *
/ * *
* 查询已备货的数据
* 查询已备货的数据
*
* @param stockupDTO
* @param stockupDTO
* @return
* @return
* /
* /
@ -323,6 +324,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
/ * *
/ * *
* 修改零担在库数量
* 修改零担在库数量
*
* @param distributionParcelList
* @param distributionParcelList
* @return
* @return
* /
* /
@ -370,7 +372,6 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
}
}
/ * *
/ * *
*
* @param distributionParcelList
* @param distributionParcelList
* @return
* @return
* /
* /
@ -394,6 +395,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
/ * *
/ * *
* 包件转库存品
* 包件转库存品
*
* @param distributionParcelList
* @param distributionParcelList
* @return
* @return
* /
* /
@ -548,6 +550,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
/ * *
/ * *
* 查询包件数据
* 查询包件数据
*
* @param parcelListVO
* @param parcelListVO
* @return
* @return
* /
* /
@ -687,6 +690,7 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
distributionStockListInfoService . save ( distributionStockListInfo ) ;
distributionStockListInfoService . save ( distributionStockListInfo ) ;
return distributionStockArticleEntity ;
return distributionStockArticleEntity ;
}
}
@Transactional ( rollbackFor = Exception . class )
@Transactional ( rollbackFor = Exception . class )
public DistributionStockArticleEntity addStockListByPackage ( DistributionStockArticleEntity distributionStockArticleEntity , List < Long > packageIds , Integer qu ) {
public DistributionStockArticleEntity addStockListByPackage ( DistributionStockArticleEntity distributionStockArticleEntity , List < Long > packageIds , Integer qu ) {
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient . getMyCurrentWarehouse ( ) ;
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient . getMyCurrentWarehouse ( ) ;