diff --git a/blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java b/blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java index 7d5c44bb6..2749bc113 100644 --- a/blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java +++ b/blade-biz-common/src/main/java/org/springblade/common/launch/LauncherServiceImpl.java @@ -41,10 +41,10 @@ public class LauncherServiceImpl implements LauncherService { PropsUtil.setProperty(props, "spring.cloud.nacos.config.server-addr", LauncherConstant.nacosAddr(profile)); - PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.username","nacos"); - PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.password","Nacos123123"); - PropsUtil.setProperty(props, "spring.cloud.nacos.config.username","nacos"); - PropsUtil.setProperty(props, "spring.cloud.nacos.config.password","Nacos123123"); +// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.username","nacos"); +// PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.password","Nacos123123"); +// PropsUtil.setProperty(props, "spring.cloud.nacos.config.username","nacos"); +// PropsUtil.setProperty(props, "spring.cloud.nacos.config.password","Nacos123123"); PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile)); diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionDeliveryInfoVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionDeliveryInfoVO.java index 76f3113b1..914edc28f 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionDeliveryInfoVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionDeliveryInfoVO.java @@ -361,6 +361,11 @@ public class DistributionDeliveryInfoVO extends DistributionDeliveryInfoEntity { */ private String isHaveAbnormalPackage; + /** + * 簽收人 + */ + private String signeeName; + // /** diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java index c43421331..b3622a502 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java @@ -424,6 +424,13 @@ public class DistributionSignforController extends BladeController { } + @PostMapping("/signforackPC") + @ApiOperationSupport(order = 2) + @ApiOperation(value = "PC图片上传", notes = "传入ids") + public R signforackPC(@Valid @RequestBody DistributionSignforDTO distributionSignfor) { + R msg = distributionSignforService.signforackPC(distributionSignfor); + return msg; + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml index 9b0b91b4b..61bd18ca2 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryInfoMapper.xml @@ -92,6 +92,7 @@ lds.reservation_id reservationId, lds.received_quantity receivedQuantity, lds.is_have_abnormal_package isHaveAbnormalPackage, + lds.signee_name signeeName, (SELECT ldss.forklift_name FROM @@ -115,8 +116,8 @@ else '已审核' END signingStatus, CASE - WHEN lds.driver_signing ='1' THEN '未签收' - else '已签收' + WHEN lds.driver_signing ='1' THEN '未完成' + else '已完成' END driverSigning FROM logpm_distribution_signfor lds @@ -649,6 +650,7 @@ FROM lds.reservation_id reservationId, lds.received_quantity receivedQuantity, lds.is_have_abnormal_package isHaveAbnormalPackage, + lds.signee_name signeeName, (SELECT ldss.forklift_name FROM @@ -672,8 +674,8 @@ FROM else '已审核' END signingStatus, CASE - WHEN lds.driver_signing ='1' THEN '未签收' - else '已签收' + WHEN lds.driver_signing ='1' THEN '未完成' + else '已完成' END driverSigning FROM logpm_distribution_signfor lds diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java index 1ad9dfac5..bd9d349e0 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java @@ -260,4 +260,11 @@ public interface IDistributionSignforService extends BaseService distributionSignPrintList = new ArrayList<>(); + distributionSignfor.getMap().forEach((k, v) -> { + v.stream().forEach(i -> { + DistributionSignPrintEntity distributionSignPrint = new DistributionSignPrintEntity(); + BeanUtils.copyProperties(i, distributionSignPrint); + distributionSignPrint.setId(null); + distributionSignPrint.setReservationId(distributionSignfor.getReservationId()); + distributionSignPrintList.add(distributionSignPrint); + }); + }); + iDistributionSignPrintService.saveBatch(distributionSignPrintList); + } + //修改签收表司机签收数量 + boolean update = this.update(new UpdateWrapper().lambda() + .eq(DistributionSignforEntity::getReservationId, distributionSignfor.getReservationId()) + .eq(DistributionSignforEntity::getDeliveryId, distributionSignfor.getDeliveryId()) + .set(DistributionSignforEntity::getSjsigningTime, simpleDateFormat.format(new Date())) + .set(DistributionSignforEntity::getDriverSigning,SignforStatusConstant.yiqianshou.getValue()) +// .set(StringUtils.isNotBlank(distributionSignfor.getDeliverySignPictures()), DistributionSignforEntity::getDeliverySignPictures, distributionSignfor.getDeliverySignPictures()) + .set(DistributionSignforEntity::getDriverSigning, "2") + .set(StringUtils.isNotBlank(distributionSignfor.getDriverRemarks()), DistributionSignforEntity::getDriverRemarks, distributionSignfor.getDriverRemarks()) +// .set(StringUtils.isNotBlank(distributionSignfor.getSigneeName()), DistributionSignforEntity::getSigneeName, distributionSignfor.getSigneeName()) + ); + return R.status(update); + } + private boolean judgmentSignIsHavePackage(Long reservationId) { boolean flag = false; List distributionParcelListEntities = distributionReservationMapper.selectPackageListByReservationId(reservationId);