|
|
@@ -119,6 +119,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
119
|
119
|
|
|
120
|
120
|
// 手机号正则
|
|
121
|
121
|
private static final Pattern TELEPHONE_REGX = Pattern.compile("^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$");
|
|
|
122
|
+ // 邮箱正则
|
|
|
123
|
+ private static final Pattern EMAIL_PATTERN = Pattern.compile("^[a-zA-Z0-9_+&*-]+(?:\\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$");
|
|
122
|
124
|
|
|
123
|
125
|
|
|
124
|
126
|
/**
|
|
|
@@ -1414,6 +1416,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1414
|
1416
|
} else if (caseApplication.getResponBirth().after(new Date())) {
|
|
1415
|
1417
|
failureMsg.append("【被申请人主体信息-出生年月日】字段不合法,不能超过当前日期;");
|
|
1416
|
1418
|
}
|
|
|
1419
|
+ if (StrUtil.isEmpty(caseApplication.getDebtorEmail())) {
|
|
|
1420
|
+ failureMsg.append("【被申请人主体信息-邮箱】字段不能为空;");
|
|
|
1421
|
+ } else if(!EMAIL_PATTERN.matcher(caseApplication.getDebtorEmail()).matches()){
|
|
|
1422
|
+
|
|
|
1423
|
+ failureMsg.append("【被申请人主体信息-邮箱】字段不合法;");
|
|
|
1424
|
+ }
|
|
1417
|
1425
|
}
|
|
1418
|
1426
|
|
|
1419
|
1427
|
/**
|
|
|
@@ -1514,6 +1522,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1514
|
1522
|
} else if (caseApplication.getWorkAddress().length() > 50) {
|
|
1515
|
1523
|
failureMsg.append("【申请人主体信息-单位地址】字段超出指定长度,最大长度为50;");
|
|
1516
|
1524
|
}
|
|
|
1525
|
+ if (StrUtil.isEmpty(caseApplication.getEmail())) {
|
|
|
1526
|
+ failureMsg.append("【申请人主体信息-邮箱】字段不能为空;");
|
|
|
1527
|
+ } else if(!EMAIL_PATTERN.matcher(caseApplication.getEmail()).matches()){
|
|
|
1528
|
+
|
|
|
1529
|
+ failureMsg.append("【申请人主体信息-邮箱】字段不合法;");
|
|
|
1530
|
+ }
|
|
1517
|
1531
|
}
|
|
1518
|
1532
|
|
|
1519
|
1533
|
/**
|
|
|
@@ -2456,6 +2470,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2456
|
2470
|
|
|
2457
|
2471
|
caseAffiliate.setResidenAffili(caseApplication.getResidenAffiliAppli());
|
|
2458
|
2472
|
caseAffiliate.setAppliAgentTitle(caseApplication.getAppliAgentTitle());
|
|
|
2473
|
+ caseAffiliate.setEmail(caseApplication.getEmail());
|
|
2459
|
2474
|
return caseAffiliate;
|
|
2460
|
2475
|
|
|
2461
|
2476
|
|
|
|
@@ -2520,6 +2535,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2520
|
2535
|
debtorCaseAffiliate.setResponSex(caseApplication.getResponSex());
|
|
2521
|
2536
|
debtorCaseAffiliate.setResponBirth(caseApplication.getResponBirth());
|
|
2522
|
2537
|
debtorCaseAffiliate.setResidenAffili(caseApplication.getResidenAffiliRespon());
|
|
|
2538
|
+ debtorCaseAffiliate.setEmail(caseApplication.getDebtorEmail());
|
|
2523
|
2539
|
|
|
2524
|
2540
|
return debtorCaseAffiliate;
|
|
2525
|
2541
|
}
|
|
|
@@ -2609,7 +2625,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2609
|
2625
|
|
|
2610
|
2626
|
// 新增预约会议表
|
|
2611
|
2627
|
ReservedConference conference = new ReservedConference(reservedConferenceVO.getCaseId(), roomId,
|
|
2612
|
|
- reservedConferenceVO.getScheduleStartTime(), reservedConferenceVO.getScheduleEndTime(), 1);
|
|
|
2628
|
+ reservedConferenceVO.getScheduleStartTime(), reservedConferenceVO.getScheduleEndTime(),1);
|
|
2613
|
2629
|
reservedConferenceMapper.insert(conference);
|
|
2614
|
2630
|
return AjaxResult.success("预约会议成功");
|
|
2615
|
2631
|
|
|
|
@@ -2637,7 +2653,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2637
|
2653
|
String roomId = generateRoomId();
|
|
2638
|
2654
|
// 新增预约会议表
|
|
2639
|
2655
|
ReservedConference conference = new ReservedConference(caseId, roomId,
|
|
2640
|
|
- null, null, 0);
|
|
|
2656
|
+ null, null,0);
|
|
2641
|
2657
|
reservedConferenceMapper.insert(conference);
|
|
2642
|
2658
|
return roomId;
|
|
2643
|
2659
|
}
|
|
|
@@ -2651,7 +2667,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2651
|
2667
|
// 查询最大房间号
|
|
2652
|
2668
|
Integer maxRoomId = caseApplicationMapper.selectMaxRoomId();
|
|
2653
|
2669
|
|
|
2654
|
|
- if (null == maxRoomId || maxRoomId > 999999) {
|
|
|
2670
|
+ if (null == maxRoomId || maxRoomId >999999) {
|
|
2655
|
2671
|
return "000001";
|
|
2656
|
2672
|
} else {
|
|
2657
|
2673
|
return String.format("%06d", maxRoomId);
|
|
|
@@ -2699,7 +2715,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
2699
|
2715
|
@Override
|
|
2700
|
2716
|
public AjaxResult deleteRoom(String roomId) {
|
|
2701
|
2717
|
|
|
2702
|
|
- return AjaxResult.success(reservedConferenceMapper.deleteByRoomId(roomId));
|
|
|
2718
|
+ return AjaxResult.success( reservedConferenceMapper.deleteByRoomId(roomId));
|
|
2703
|
2719
|
}
|
|
2704
|
2720
|
}
|
|
2705
|
2721
|
|