|
|
@ -70,7 +70,7 @@ public class ConsigneeArriveReportListener { |
|
|
|
.set(QualityDeliverEntity::getArrivePositioning, null) |
|
|
|
.set(QualityDeliverEntity::getArrivePositioning, null) |
|
|
|
.eq(QualityDeliverEntity::getLoadLicensePlate, vo.getVehicleName()) |
|
|
|
.eq(QualityDeliverEntity::getLoadLicensePlate, vo.getVehicleName()) |
|
|
|
.eq(QualityDeliverEntity::getLoadTrainNumber, vo.getTrainNumber()) |
|
|
|
.eq(QualityDeliverEntity::getLoadTrainNumber, vo.getTrainNumber()) |
|
|
|
.eq(QualityDeliverEntity::getPlanReservationCode, vo.getReservationCode()) |
|
|
|
.eq(QualityDeliverEntity::getBizCode, vo.getReservationCode()) |
|
|
|
.ne(QualityDeliverEntity::getBizStatus, 110); |
|
|
|
.ne(QualityDeliverEntity::getBizStatus, 110); |
|
|
|
qualityDeliverService.update(wrapper); |
|
|
|
qualityDeliverService.update(wrapper); |
|
|
|
} |
|
|
|
} |
|
|
@ -85,62 +85,10 @@ public class ConsigneeArriveReportListener { |
|
|
|
.set(QualityDeliverEntity::getArriveAddress, vo.getAddress()) |
|
|
|
.set(QualityDeliverEntity::getArriveAddress, vo.getAddress()) |
|
|
|
.set(QualityDeliverEntity::getArrivePositioning, vo.getPositioning()) |
|
|
|
.set(QualityDeliverEntity::getArrivePositioning, vo.getPositioning()) |
|
|
|
.eq(QualityDeliverEntity::getLoadTrainNumber, vo.getTrainNumber()) |
|
|
|
.eq(QualityDeliverEntity::getLoadTrainNumber, vo.getTrainNumber()) |
|
|
|
.eq(QualityDeliverEntity::getPlanReservationCode, vo.getReservationCode()) |
|
|
|
.eq(QualityDeliverEntity::getBizCode, vo.getReservationCode()) |
|
|
|
.ne(QualityDeliverEntity::getBizStatus, 110); |
|
|
|
.ne(QualityDeliverEntity::getBizStatus, 110); |
|
|
|
qualityDeliverService.update(wrapper); |
|
|
|
qualityDeliverService.update(wrapper); |
|
|
|
} |
|
|
|
} |
|
|
|
// if (BizOperationEnums.MODIFY.equals(bizOperation) || BizOperationEnums.DELETE.equals(bizOperation)) {
|
|
|
|
|
|
|
|
// // 根据预约单号查询出所有这个预约单下的数据 先置空
|
|
|
|
|
|
|
|
// LambdaUpdateWrapper<QualityDeliverEntity> wrapper = Wrappers.<QualityDeliverEntity>lambdaUpdate()
|
|
|
|
|
|
|
|
// .set(QualityDeliverEntity::getLoadUserName, null)
|
|
|
|
|
|
|
|
// .set(QualityDeliverEntity::getLoadTime, null)
|
|
|
|
|
|
|
|
// .set(QualityDeliverEntity::getLoadLicensePlate, null)
|
|
|
|
|
|
|
|
// .set(QualityDeliverEntity::getLoadNum, null)
|
|
|
|
|
|
|
|
// .ne(QualityDeliverEntity::getBizStatus, 110);
|
|
|
|
|
|
|
|
// qualityDeliverService.update(wrapper);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List<PackageData> details = new ArrayList<>();
|
|
|
|
|
|
|
|
// if (CollUtil.isNotEmpty(details)) {
|
|
|
|
|
|
|
|
// for (PackageData detail : details) {
|
|
|
|
|
|
|
|
// QualityDeliverEntity qualityDeliverEntity = QualityDeliverEntity.builder()
|
|
|
|
|
|
|
|
// .warehouseName(bean.getWarehouse())
|
|
|
|
|
|
|
|
// .warehouseId(warehouseId)
|
|
|
|
|
|
|
|
// .startCarUserName(bean.getOperator())
|
|
|
|
|
|
|
|
// .startCarTime(bean.getOperatorTime())
|
|
|
|
|
|
|
|
// .build();
|
|
|
|
|
|
|
|
// if (ObjectUtil.equals(detail.getPackageType(), PackageTypeEnums.CMP)) {
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setConditions(1);
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setLoadNum(1);
|
|
|
|
|
|
|
|
// sendReport(bizOperation, qualityDeliverEntity);
|
|
|
|
|
|
|
|
// } else if (ObjectUtil.equals(detail.getPackageType(), PackageTypeEnums.LTL)) {
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setOrderCode(detail.getOrderCode());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setCostCategory(detail.getProductName());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setRevenueCategory(detail.getProductName());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setConditions(2);
|
|
|
|
|
|
|
|
// sendReport(bizOperation, qualityDeliverEntity);
|
|
|
|
|
|
|
|
// } else if (ObjectUtil.equals(detail.getPackageType(), PackageTypeEnums.INV)) {
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setIncomingBatch(detail.getPickupBatch());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setMallName(detail.getMallName());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setMaterielCode(detail.getMaterialCode());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setMaterielName(detail.getMaterialName());
|
|
|
|
|
|
|
|
// qualityDeliverEntity.setConditions(3);
|
|
|
|
|
|
|
|
// sendReport(bizOperation, qualityDeliverEntity);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void sendReport(BizOperationEnums bizOperation, QualityDeliverEntity qualityDeliverEntity) { |
|
|
|
|
|
|
|
if (BizOperationEnums.ADD.equals(bizOperation) || BizOperationEnums.MODIFY.equals(bizOperation)) { |
|
|
|
|
|
|
|
ReportQualityDeliverDTO dto = ReportQualityDeliverDTO.builder().data(JSONUtil.toJsonStr(qualityDeliverEntity)).operation(BizOperationEnums.MODIFY).build(); |
|
|
|
|
|
|
|
factoryDataClient.sendMessage(SendMsg.builder() |
|
|
|
|
|
|
|
.exchange(ReportConstants.REPORT_QUALITY_DELIVER_EXCHANGE) |
|
|
|
|
|
|
|
.routingKey(ReportConstants.REPORT_QUALITY_DELIVER_ROUTINGKEY) |
|
|
|
|
|
|
|
.message(JSONUtil.toJsonStr(dto)) |
|
|
|
|
|
|
|
.delay(3000) |
|
|
|
|
|
|
|
.build()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|