diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/api/DistributionSignforAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/api/DistributionSignforAppController.java index 4b796d042..933af664c 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/api/DistributionSignforAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/api/DistributionSignforAppController.java @@ -210,10 +210,11 @@ public class DistributionSignforAppController { try { R r = distributionSignforService.newSignfor(distrilbutionloadingscanDTO); return r; - } catch (Exception e) { + } catch (CustomerException e) { log.error("#############signfor:签收报错", e); + return Resp.scanFail("签收失败!",e.getMessage()); } - return R.fail("签收失败!"); + } /** diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java index 82acb61cd..006daf2f8 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java @@ -7699,6 +7699,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl