diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/WorkNodeEnums.java b/blade-biz-common/src/main/java/org/springblade/common/constant/WorkNodeEnums.java index fdb7aa2fa..2662ebec6 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/WorkNodeEnums.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/WorkNodeEnums.java @@ -60,13 +60,16 @@ public enum WorkNodeEnums implements Serializable { PLANNED_RESERVATION(301010, "计划预约"), PLAN_DELIVERY(301020, "计划配送"), + DISTRIBUTION_EDIT(301025, "配送计划编辑"), CANCEL_DELIVERY(301030, "计划取消"), PLAN_BILLOFLADING(301040, "计划自提"), + EDIT_BILLOFLADING(301045, "自提计划编辑"), CANCEL_BILLOFLADING(301050, "取消自提"), SIGN_BILLOFLADING(301080, "自提签收"), PLAN_DISTRIBUTION(301060, "计划配车"), CANCEL_DISTRIBUTION(301070, "取消配车"), + DISTRIBUTION_LOADING(302010, "配送装车"), DISTRIBUTION_ABNORMAL_LOADING(302020, "异常装车"), DISTRIBUTION_CANCEL_LOADING(302030, "取消装车"), diff --git a/blade-biz-common/src/main/java/org/springblade/common/constant/broadcast/FanoutConstants.java b/blade-biz-common/src/main/java/org/springblade/common/constant/broadcast/FanoutConstants.java index 852a02c3a..8c504beb8 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/constant/broadcast/FanoutConstants.java +++ b/blade-biz-common/src/main/java/org/springblade/common/constant/broadcast/FanoutConstants.java @@ -162,6 +162,13 @@ public abstract class FanoutConstants { * 配送 */ public interface distribution { + // 配送计划 + // bianji' + + + + + interface signfor{ String EXCHANGE = "fanout.distribution.signfor" + ModuleNameConstant.DEVAUTH; interface QUEUE { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml index b1aca42d6..113fbc0a2 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistrilbutionBillLadingMapper.xml @@ -80,7 +80,6 @@ - GROUP BY dbl2.pickup_batch, ldpl2.SECOND @@ -95,7 +94,6 @@ LEFT JOIN ( SELECT CASE - WHEN k.id IS NULL THEN m.id @@ -172,11 +170,11 @@ and dbl.pickup_batch like concat('%',#{param.pickupBatch},'%') - and - DATE_FORMAT(pick_up_time,'%y%m%d') = DATE_FORMAT(#{param.pickUpTime},'%y%m%d') + + AND DATE_FORMAT(dbl.pick_up_time,'%y%m%d') = DATE_FORMAT(#{param.pickUpTime},'%y%m%d') - and - AND DATE_FORMAT(pick_up_time,'%y%m%d') BETWEEN DATE_FORMAT(#{param.pickUpTimeStart},'%y%m%d') AND DATE_FORMAT(#{param.pickUpTimeEnd},'%y%m%d') + + AND DATE_FORMAT(dbl.pick_up_time,'%y%m%d') BETWEEN DATE_FORMAT(#{param.pickUpTimeStart},'%y%m%d') AND DATE_FORMAT(#{param.pickUpTimeEnd},'%y%m%d') and dbl.warehouse_id in diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index fecf4a1e7..1b5178c30 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -639,6 +639,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl pushList = new ArrayList<>(); @@ -1083,7 +1087,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionAppStockArticleVOS = baseMapper.selectDistributionAppDeliveryOrderO(distributionAppDeliveryListVO); List deliveryStockArticleInfo = distributionDeliveryListMapper.getDeliveryStockArticleInfo(distributionAppDeliveryListVO.getId()); -// deliveryStockArticleInfo.forEach(); List distributionReservationEntities = distributionDeliveryListMapper.selectReservationByDeliveryListId(distributionAppDeliveryListVO.getId()); distributionReservationEntities.forEach(r -> { List reservationStockarticleEntityList = distributionReservationMapper.selectStockArticleByReservationId(r.getId()); @@ -5969,14 +5968,15 @@ public class DistributionSignforServiceImpl extends BaseServiceImplupdate().lambda() + .eq(DistributionSignforEntity::getReservationId, distributionSignfor.getReservationId()) + .set(DistributionSignforEntity::getDriverSigning, "2") + .set(!Objects.isNull(distributionSignfor.getDriverRemarks()), DistributionSignforEntity::getDriverRemarks, "2") + ); log.info("执行批量保存 {}", distributionSignPrintList); return iDistributionSignPrintService.saveBatch(distributionSignPrintList); } - this.update(Wrappers.update().lambda() - .eq(DistributionSignforEntity::getReservationId, distributionSignfor.getReservationId()) - .set(DistributionSignforEntity::getDriverSigning, "2") - .set(!Objects.isNull(distributionSignfor.getDriverRemarks()), DistributionSignforEntity::getDriverRemarks, "2") - ); + } return false;