huwhois 4 年之前
父节点
当前提交
a2e8d5a4d2

+ 11 - 11
src/main/java/io/renren/modules/admin/controller/MeetingController.java

@ -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());

+ 12 - 8
src/main/java/io/renren/modules/admin/form/MeetingForm.java

@ -30,14 +30,18 @@ public class MeetingForm {
30 30
	 * 举办地点
31 31
	 */
32 32
	private String address;
33
	/**
34
	 * 开始时间
35
	 */
36
	private Date startTime;
37
	/**
38
	 * 结束时间
39
	 */
40
	private Date endTime;
33
	// /**
34
	//  * 开始时间
35
	//  */
36
	// private Date startTime;
37
	// /**
38
	//  * 结束时间
39
	//  */
40
	// private Date endTime;
41
	/**
42
	 * 开始-结束时间
43
	 */
44
	private Date[] startAndEndTime;
41 45
	/**
42 46
	 * 官方网址
43 47
	 */

+ 0 - 2
src/main/java/io/renren/modules/app/controller/AppOrderController.java

@ -1,13 +1,11 @@
1 1
package io.renren.modules.app.controller;
2 2

3 3
import java.text.SimpleDateFormat;
4
import java.util.Arrays;
5 4
import java.util.Date;
6 5
import java.util.List;
7 6
import java.util.Map;
8 7

9 8
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
10
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
11 9

12 10
import org.springframework.beans.factory.annotation.Autowired;
13 11
import org.springframework.web.bind.annotation.GetMapping;