From b7abd8f748732556f23233da67b5e199fb16bdc5 Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Mon, 3 Jun 2024 16:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=8F=E8=90=A5=E6=97=B6=E9=97=B4null=20try?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zdxt/code/service/impl/ThirdLoginServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java index 6faf9479..61484977 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java @@ -157,7 +157,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService { try { Date termStartD = format.parse(termStart); termStart = format.format(termStartD); - } catch (ParseException e) { + } catch (Exception e) { termStart = ""; } //结束时间 返回为空表示为永久 @@ -165,7 +165,7 @@ public class ThirdLoginServiceImpl implements ThirdLoginService { try { Date termEndD = format.parse(termEnd); termEnd = format.format(termEndD); - } catch (ParseException e) { + } catch (Exception e) { termEnd = ""; } //营业时间