diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java b/blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java index 9d8e48b0d..cfce22cc1 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/LauncherConstant.java @@ -93,7 +93,7 @@ public interface LauncherConstant { /** * 本地登录 dev地址 */ - String APPLICATION_DEV_LOGIN_ADDR = "192.168.3.2:13000"; + String APPLICATION_DEV_LOGIN_ADDR = "127.0.0.1:13000"; /** * 本地登录 test地址 */ diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java index 863f0fbb9..4d27b918a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java @@ -314,10 +314,9 @@ public class DistributionDeliveryListController extends BladeController { @GetMapping("/export-distributionDeliveryList") @ApiOperationSupport(order = 9) @ApiOperation(value = "导出数据", notes = "传入distributionDeliveryList") - public R exportDistributionDeliveryList(@ApiIgnore @RequestParam Map distributionDeliveryList, BladeUser bladeUser, HttpServletResponse response) { + public void exportDistributionDeliveryList(@ApiIgnore @RequestParam Map distributionDeliveryList, BladeUser bladeUser, HttpServletResponse response) { List list = distributionDeliveryListService.exportDistributionDeliveryList(distributionDeliveryList); ExcelUtil.export(response, "配送管理数据" + DateUtil.time(), "配送管理数据表", list, DistributionDeliveryListExcel.class); - return R.status(true); } /** diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionSignforClient.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionSignforClient.java index 5f949c6c6..ed3aa21d3 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionSignforClient.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/feign/DistributionSignforClient.java @@ -103,151 +103,16 @@ public class DistributionSignforClient implements IDistributionSignforClient { } + /** + * 推送老系统签收 + * @param id + * @return + */ @Override public Boolean clerkCheckPushData(Long id) { - try { - log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 推送老系统签收队列"); - //得到审核的任务ID - if (ObjectUtil.isEmpty(id)) { - log.info(">>>>>>>>>>>>> clerkCheckPushDataHandler 签收ID为空"); - return false; - } - - //得到签收对象 - DistributionSignforEntity distributionSignforEntity = distributionSignforMapper.selectById(id); - - //需要检测文员是否进行复核了 - - if (ObjectUtil.isEmpty(distributionSignforEntity)) { - log.info(">>>>>>>>>>>> clerkCheckPushDataHandler distributionSignforEntity {}", distributionSignforEntity); - return false; - } - // 得到配送计划 - DistributionDeliveryListEntity distributionDeliveryListEntity = distributionDeliveryListMapper.selectById(distributionSignforEntity.getDeliveryId()); - if (ObjectUtil.isEmpty(distributionDeliveryListEntity)) { - log.info(">>>>>>>>>>> clerkCheckPushDataHandler distributionDeliveryListEntity {}", distributionDeliveryListEntity); - return false; - } - - // 得到配送客户 - DistributionReservationEntity distributionReservationEntity = distributionReservationMapper.selectById(distributionSignforEntity.getReservationId()); - if (ObjectUtil.isEmpty(distributionReservationEntity)) { - log.info(">>>>>>>>>>>> clerkCheckPushDataHandler distributionReservationEntity {}", distributionReservationEntity); - return false; - } - - - //组合配送信息 - SignPushDataDTO delivery = distributionDeliveryListMapper.selectPushOldDelivery(distributionSignforEntity.getReservationId(), distributionSignforEntity.getDeliveryId()); - - WarehouseEntity warehouseEntity = warehouseClient.findByName(distributionReservationEntity.getWarehouseName()); - if (ObjectUtils.isNotNull(warehouseEntity)) { - // 需要增加老系统的仓库ID - delivery.setWarehouseId(Long.parseLong(warehouseEntity.getId() + "")); - delivery.setWarehouseName(warehouseEntity.getTitle()); - } - - - //还需要配送的出库人、配送人、操作人信息 - if (Func.isNotEmpty(delivery)) { - if ("1".equals(delivery.getKind())) { - //自主配送 - DistributionDeliverySelfEntity distributionDeliverySelfEntity = distributionDeliverySelfMapper.selectOne(Wrappers.query().lambda() - .eq(DistributionDeliverySelfEntity::getDeliveryId, delivery.getId()) - .eq(DistributionDeliverySelfEntity::getIsMaster, 2) - ); - if (Func.isNotEmpty(distributionDeliverySelfEntity)) { - delivery.setOutId(Long.parseLong(distributionDeliverySelfEntity.getDriverId())); - delivery.setOutName(distributionDeliverySelfEntity.getDriverName()); - delivery.setOutPhone(distributionDeliverySelfEntity.getDriverPhone()); - } - } else { - //外协 - DistributionDeliveryTripartiteEntity distributionDeliveryTripartiteEntity = distributionDeliveryTripartiteMapper.selectOne(Wrappers.query().lambda().eq(DistributionDeliveryTripartiteEntity::getDeliveryId, delivery.getId())); - if (Func.isNotEmpty(distributionDeliveryTripartiteEntity)) { - delivery.setOutName(distributionDeliveryTripartiteEntity.getDriverName()); - delivery.setOutPhone(distributionDeliveryTripartiteEntity.getDriverPhone()); - } - } - R userR = userClient.userInfoById(delivery.getAdministratorsId()); - if (Func.isNotEmpty(userR)) { - User user = userR.getData(); - delivery.setAdministratorsName(user.getName()); - delivery.setAdministratorsPhone(user.getPhone()); - } - DistributionStockupEntity distributionStockupEntity = distributionReservationMapper.selectStockup(distributionSignforEntity.getReservationId()); - if (Func.isNotEmpty(distributionStockupEntity)) { - if (distributionStockupEntity.getAssignStatus().equals(StockAssignStatusConstant.yizhipai.getValue())) { - delivery.setOutToId(distributionStockupEntity.getStockupUserId()); - delivery.setOutToName(distributionStockupEntity.getStockupUser()); - } - - } - - //查询客户信息 - List customer = distributionReservationMapper.selectPushOldCustomer(distributionSignforEntity.getReservationId()); - if (Func.isNotEmpty(customer)) { - //查询客户订单 - List signPushDataUnitDTOS = new ArrayList<>(); - if (distributionReservationEntity.getReservationNum() > 0) { - //查询包件扫描签收 - //查询包件扫描签收 - List pushOldPackageLoading = distributionSignforMapper.selectPushOldPackageLoading(distributionSignforEntity.getReservationId(), distributionSignforEntity.getDeliveryId()); - List pushOldPackageSigning = distributionSignforMapper.selectPushOldPackageSigning(distributionSignforEntity.getReservationId(), distributionSignforEntity.getDeliveryId()); - if (Func.isNotEmpty(pushOldPackageLoading)) { - buildNameAndPhone(pushOldPackageLoading); - signPushDataUnitDTOS.addAll(pushOldPackageLoading); - } - if (Func.isNotEmpty(pushOldPackageSigning)) { - buildNameAndPhone(pushOldPackageSigning); - signPushDataUnitDTOS.addAll(pushOldPackageSigning); - } - } - - if (distributionReservationEntity.getReservationStockListNum() > 0) { - //查询库存品扫描签收 - List loadingPushOldInventory = distributionSignforMapper.selectLoadingPushOldInventory(distributionSignforEntity.getReservationId(), distributionSignforEntity.getDeliveryId()); - List signingPushOldInventory = distributionSignforMapper.selectSigningPushOldInventory(distributionSignforEntity.getReservationId(), distributionSignforEntity.getDeliveryId()); - if (Func.isNotEmpty(loadingPushOldInventory)) { - buildNameAndPhone(loadingPushOldInventory); - signPushDataUnitDTOS.addAll(loadingPushOldInventory); - } - - if (Func.isNotEmpty(signingPushOldInventory)) { - buildNameAndPhone(signingPushOldInventory); - signPushDataUnitDTOS.addAll(signingPushOldInventory); - } - } - //查询签收图片 - List distributionSignPrintVOS = distributionSignforMapper.selectSignImgsUrl(distributionReservationEntity.getId()); - - if (Func.isNotEmpty(signPushDataUnitDTOS)) { - SignPushDataContactDTO signPushDataContactDTO = customer.get(0); - signPushDataContactDTO.setSignPushDataUnitDTOs(signPushDataUnitDTOS); - if (Func.isNotEmpty(distributionSignPrintVOS)) { - String urls = distributionSignPrintVOS.stream().map(DistributionSignPrintVO::getUrlRoute).collect(Collectors.joining(",")); - signPushDataContactDTO.setImage(urls); - } - if (Func.isNotEmpty(distributionSignforEntity.getClerkSignRemarks())) { - signPushDataContactDTO.setContact(distributionSignforEntity.getClerkSignRemarks()); - } - } - buildReservationNameAndPhone(customer); - //完成客户信息添加 - delivery.setSignPushDataContactDTOs(customer); - } - } - - - log.info(">>>> clerkCheckPushData SignPushDataDTO :{}",delivery); - Boolean b = oldSystemDataPushClient.pushOldSystemSignInfo(delivery); - return b; - } catch (Exception e) { - log.error(">>>>> 推送老系统签收信息报错", e); - } + return distributionSignforService.clerkCheckPushData(id); - return false; } private void buildNameAndPhone(List pushOldPackageSigning) { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml index e9d25114c..d13af6896 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml @@ -319,7 +319,7 @@ SELECT ldbl.id, - ldbl.warehouse_id AS warehouseId, + lww.old_id AS warehouseId, lww.name AS warehouseName, 3 AS type, 3 AS finishState, @@ -843,7 +843,7 @@