|
@@ -457,8 +457,12 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
|
|
|
throw new SystemException(errorMsg);
|
|
throw new SystemException(errorMsg);
|
|
|
}
|
|
}
|
|
|
String coverageEndDate = errorMsg.substring(errorMsg.indexOf("终保日期") + 5, errorMsg.indexOf("终保日期") + 5 + 16);
|
|
String coverageEndDate = errorMsg.substring(errorMsg.indexOf("终保日期") + 5, errorMsg.indexOf("终保日期") + 5 + 16);
|
|
|
-
|
|
|
|
|
- LocalDateTime start = DateTimeUtil.parseLocalDateTime(coverageEndDate, DateTimeUtil.DATETIME_PATTERN_EXT1);
|
|
|
|
|
|
|
+ LocalDateTime start;
|
|
|
|
|
+ try {
|
|
|
|
|
+ start = DateTimeUtil.parseLocalDateTime(coverageEndDate, DateTimeUtil.DATETIME_PATTERN_EXT1);
|
|
|
|
|
+ }catch(Exception e){
|
|
|
|
|
+ throw new SystemException(errorMsg);
|
|
|
|
|
+ }
|
|
|
LocalDateTime end = start.plusYears(1L).minusDays(1L);
|
|
LocalDateTime end = start.plusYears(1L).minusDays(1L);
|
|
|
|
|
|
|
|
// if (start.getHour() > 0) {
|
|
// if (start.getHour() > 0) {
|