|
@ -41,17 +41,13 @@ import java.util.Map;
|
41
|
41
|
public class MeetingController {
|
42
|
42
|
@Autowired
|
43
|
43
|
private MeetingService meetingService;
|
44
|
|
|
45
|
44
|
@Autowired
|
46
|
45
|
private SubjectService subjectService;
|
47
|
|
|
48
|
46
|
@Autowired
|
49
|
47
|
private IndustryService industryService;
|
50
|
|
|
51
|
48
|
@Autowired
|
52
|
49
|
private TypesOfAttendersService typesOfAttendersService;
|
53
|
|
|
54
|
|
@Autowired
|
|
50
|
@Autowired
|
55
|
51
|
private EmployeeService employeeService;
|
56
|
52
|
|
57
|
53
|
* 列表
|
|
@ -95,6 +91,7 @@ public class MeetingController {
|
95
|
91
|
String[] subjects = meetingForm.getSubjects();
|
96
|
92
|
String[] industries = meetingForm.getIndustries();
|
97
|
93
|
String[] attendersType = meetingForm.getAttendersType();
|
|
94
|
Date[] startAndEndTime = meetingForm.getStartAndEndTime();
|
98
|
95
|
for (String s : subjects) {
|
99
|
96
|
int i = subjectService.selectIsName(s);
|
100
|
97
|
if(i==0){
|
|
@ -120,15 +117,16 @@ public class MeetingController {
|
120
|
117
|
meeting.setNameCn(meetingForm.getNameCn());
|
121
|
118
|
meeting.setNameEn(meetingForm.getNameEn());
|
122
|
119
|
meeting.setAddress(meetingForm.getAddress());
|
123
|
|
meeting.setStartTime(meetingForm.getStartTime());
|
124
|
|
meeting.setEndTime(meetingForm.getEndTime());
|
|
120
|
meeting.setStartTime(startAndEndTime[0]);
|
|
121
|
meeting.setEndTime(startAndEndTime[1]);
|
125
|
122
|
meeting.setOfficeWebsite(meetingForm.getOfficeWebsite());
|
126
|
123
|
meeting.setTitlePicture(meetingForm.getTitlePicture());
|
127
|
124
|
meeting.setSubjects(StringUtils.join(meetingForm.getSubjects(), ","));
|
128
|
125
|
meeting.setIndustries(StringUtils.join(meetingForm.getIndustries(), ","));
|
129
|
126
|
meeting.setAttendersType(StringUtils.join(meetingForm.getAttendersType(), ","));
|
130
|
127
|
meeting.setServiceId(meetingForm.getServiceId());
|
131
|
|
meeting.setServiceName(meetingForm.getServiceName());
|
|
128
|
EmployeeEntity employee = employeeService.getById(meetingForm.getServiceId());
|
|
129
|
meeting.setServiceName(employee.getTruename());
|
132
|
130
|
meeting.setContactIds(StringUtils.join(meetingForm.getContactIds(), ","));
|
133
|
131
|
meeting.setContactNames(StringUtils.join(meetingForm.getContactNames(), ","));
|
134
|
132
|
meeting.setOnlineRegDeadline(meetingForm.getOnlineRegDeadline());
|
|
@ -161,6 +159,7 @@ public class MeetingController {
|
161
|
159
|
String[] subjects = meetingForm.getSubjects();
|
162
|
160
|
String[] industries = meetingForm.getIndustries();
|
163
|
161
|
String[] attendersType = meetingForm.getAttendersType();
|
|
162
|
Date[] startAndEndTime = meetingForm.getStartAndEndTime();
|
164
|
163
|
Long meetingid = meetingForm.getId();
|
165
|
164
|
|
166
|
165
|
for (String s : subjects) {
|
|
@ -200,15 +199,16 @@ public class MeetingController {
|
200
|
199
|
meeting.setNameCn(meetingForm.getNameCn());
|
201
|
200
|
meeting.setNameEn(meetingForm.getNameEn());
|
202
|
201
|
meeting.setAddress(meetingForm.getAddress());
|
203
|
|
meeting.setStartTime(meetingForm.getStartTime());
|
204
|
|
meeting.setEndTime(meetingForm.getEndTime());
|
|
202
|
meeting.setStartTime(startAndEndTime[0]);
|
|
203
|
meeting.setEndTime(startAndEndTime[1]);
|
205
|
204
|
meeting.setOfficeWebsite(meetingForm.getOfficeWebsite());
|
206
|
205
|
meeting.setTitlePicture(meetingForm.getTitlePicture());
|
207
|
206
|
meeting.setSubjects(StringUtils.join(meetingForm.getSubjects(), ","));
|
208
|
207
|
meeting.setIndustries(StringUtils.join(meetingForm.getIndustries(), ","));
|
209
|
208
|
meeting.setAttendersType(StringUtils.join(meetingForm.getAttendersType(), ","));
|
210
|
209
|
meeting.setServiceId(meetingForm.getServiceId());
|
211
|
|
meeting.setServiceName(meetingForm.getServiceName());
|
|
210
|
EmployeeEntity employee = employeeService.getById(meetingForm.getServiceId());
|
|
211
|
meeting.setServiceName(employee.getTruename());
|
212
|
212
|
meeting.setContactIds(StringUtils.join(meetingForm.getContactIds(), ","));
|
213
|
213
|
meeting.setContactNames(StringUtils.join(meetingForm.getContactNames(), ","));
|
214
|
214
|
meeting.setOnlineRegDeadline(meetingForm.getOnlineRegDeadline());
|