|
|
|
@ -41,7 +41,7 @@ import java.util.Map;
|
|
|
|
|
* @author zhy |
|
|
|
|
*/ |
|
|
|
|
@Slf4j |
|
|
|
|
@RabbitListener(queues = RabbitConstant.CLERK_CHECK_PUSH_DATA_QUEUE) |
|
|
|
|
@RabbitListener(queues = RabbitConstant.TEST_RECEIVE_INFO_QUEUE) |
|
|
|
|
@Component |
|
|
|
|
public class ClerkCheckPushDataQueueHandler { |
|
|
|
|
|
|
|
|
@ -68,6 +68,8 @@ public class ClerkCheckPushDataQueueHandler {
|
|
|
|
|
@RabbitHandler |
|
|
|
|
public void clerkCheckPushDataHandler(Map map, Message message, Channel channel) { |
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 推送老系统签收队列"); |
|
|
|
|
//得到审核的任务ID
|
|
|
|
|
DistributionSignforDTO distributionStockEntity = (DistributionSignforDTO) map.get("messageData"); |
|
|
|
|
Long signfor_id = distributionStockEntity.getId(); |
|
|
|
@ -101,7 +103,6 @@ public class ClerkCheckPushDataQueueHandler {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//组合配送信息
|
|
|
|
|
SignPushDataDTO delivery = distributionDeliveryListMapper.selectPushOldDelivery(distributionSignforEntity.getReservationId(),distributionSignforEntity.getDeliveryId()); |
|
|
|
|
//还需要配送的出库人、配送人、操作人信息
|
|
|
|
@ -128,7 +129,7 @@ public class ClerkCheckPushDataQueueHandler {
|
|
|
|
|
R<User> userR = userClient.userInfoById(delivery.getAdministrators_id()); |
|
|
|
|
if (Func.isNotEmpty(userR)){ |
|
|
|
|
User user = userR.getData(); |
|
|
|
|
delivery.setAdministrators_name(user.getName()); |
|
|
|
|
// delivery.setAdministrators_name(user.getName());
|
|
|
|
|
} |
|
|
|
|
DistributionStockupEntity distributionStockupEntity = distributionReservationMapper.selectStockup(distributionSignforEntity.getReservationId()); |
|
|
|
|
if (Func.isNotEmpty(distributionStockupEntity)){ |
|
|
|
@ -146,17 +147,17 @@ public class ClerkCheckPushDataQueueHandler {
|
|
|
|
|
List<SignPushDataUnitDTO> signPushDataUnitDTOS = new ArrayList<>(); |
|
|
|
|
if(distributionReservationEntity.getReservationNum()>0){ |
|
|
|
|
//查询包件扫描签收
|
|
|
|
|
SignPushDataUnitDTO pushOldPackage = distributionSignforMapper.selectPushOldPackage(distributionSignforEntity.getReservationId(),distributionSignforEntity.getDeliveryId()); |
|
|
|
|
List<SignPushDataUnitDTO> pushOldPackage = distributionSignforMapper.selectPushOldPackage(distributionSignforEntity.getReservationId(),distributionSignforEntity.getDeliveryId()); |
|
|
|
|
if (Func.isNotEmpty(pushOldPackage)){ |
|
|
|
|
signPushDataUnitDTOS.add(pushOldPackage); |
|
|
|
|
signPushDataUnitDTOS.addAll(pushOldPackage); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (distributionReservationEntity.getReservationStockListNum() > 0){ |
|
|
|
|
//查询库存品扫描签收
|
|
|
|
|
SignPushDataUnitDTO pushOldInventory = distributionSignforMapper.selectPushOldInventory(distributionSignforEntity.getReservationId(),distributionSignforEntity.getDeliveryId()); |
|
|
|
|
List<SignPushDataUnitDTO> pushOldInventory = distributionSignforMapper.selectPushOldInventory(distributionSignforEntity.getReservationId(),distributionSignforEntity.getDeliveryId()); |
|
|
|
|
if (Func.isNotEmpty(pushOldInventory)){ |
|
|
|
|
signPushDataUnitDTOS.add(pushOldInventory); |
|
|
|
|
signPushDataUnitDTOS.addAll(pushOldInventory); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(signPushDataUnitDTOS)){ |
|
|
|
@ -170,10 +171,11 @@ public class ClerkCheckPushDataQueueHandler {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Boolean b = oldSystemDataPushClient.pushOldSystemSignInfo(delivery); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|