├── classspirit.iml
├── pom.xml
└── src
├── main
├── java
│ └── com
│ │ └── jinhui
│ │ └── classspirit
│ │ ├── ClassSpiritApplication.java
│ │ ├── ServletInitializer.java
│ │ ├── controller
│ │ ├── ActivityController.java
│ │ ├── BaseController.java
│ │ ├── ClassController.java
│ │ ├── LoginController.java
│ │ └── UserController.java
│ │ ├── mapper
│ │ ├── ActivityMapper.java
│ │ ├── ApplyMapper.java
│ │ ├── ClassMapper.java
│ │ ├── StudentMapper.java
│ │ └── UserMapper.java
│ │ ├── service
│ │ ├── ActivityService.java
│ │ ├── ApplyService.java
│ │ ├── ClassService.java
│ │ ├── StudentService.java
│ │ └── UserService.java
│ │ ├── util
│ │ ├── HttpRequest.java
│ │ ├── JsonMapper.java
│ │ ├── RequestTime.java
│ │ └── TypeConversion.java
│ │ └── vo
│ │ ├── Activity.java
│ │ ├── ActivityApply.java
│ │ ├── Apply.java
│ │ ├── Classes.java
│ │ ├── Student.java
│ │ └── User.java
└── resources
│ ├── application.yml
│ ├── classspirit.sql
│ ├── log4j2.xml
│ ├── mapper
│ ├── activityMapper.xml
│ ├── applyMapper.xml
│ ├── classMapper.xml
│ ├── studentMapper.xml
│ └── userMapper.xml
│ ├── mybatis-conf.xml
│ └── templates
│ └── index.html
└── test
└── java
└── com
└── jinhui
└── classspirit
└── ClassSpiritApplicationTests.java
/classspirit.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | com.jinhui
6 | classspirit
7 | 1.0.1.Beta
8 | jar
9 | classspirit
10 | 微信小程序——班务精灵
11 |
12 |
13 | org.springframework.boot
14 | spring-boot-starter-parent
15 | 2.0.7.RELEASE
16 |
17 |
18 |
19 |
20 | UTF-8
21 | UTF-8
22 | 1.8
23 |
24 |
25 |
26 |
27 | org.springframework.boot
28 | spring-boot-starter
29 |
30 |
31 | org.springframework.boot
32 | spring-boot-starter-logging
33 |
34 |
35 |
36 |
37 |
38 | org.springframework.boot
39 | spring-boot-starter-web
40 |
41 |
42 |
43 | org.mybatis.spring.boot
44 | mybatis-spring-boot-starter
45 | 1.3.2
46 |
47 |
48 |
49 | mysql
50 | mysql-connector-java
51 | compile
52 |
53 |
54 |
55 | org.springframework.boot
56 | spring-boot-starter-tomcat
57 | provided
58 |
59 |
60 |
61 | org.springframework.boot
62 | spring-boot-starter-log4j2
63 |
64 |
65 |
66 | org.springframework.boot
67 | spring-boot-starter-test
68 | test
69 |
70 |
71 |
72 | org.apache.commons
73 | commons-lang3
74 |
75 |
76 |
77 | com.alibaba
78 | fastjson
79 |
80 |
81 | org.apache.shiro
82 | shiro-core
83 | 1.2.3
84 |
85 |
86 | com.fasterxml.jackson.module
87 | jackson-module-jaxb-annotations
88 | 2.9.5
89 |
90 |
91 | org.activiti
92 | activiti-engine
93 | 5.21.0
94 |
95 |
96 | commons-io
97 | commons-io
98 | 2.5
99 |
100 |
101 |
102 |
103 |
104 | classspirit
105 |
106 |
107 | org.springframework.boot
108 | spring-boot-maven-plugin
109 |
110 |
111 |
112 |
113 |
114 |
--------------------------------------------------------------------------------
/src/main/java/com/jinhui/classspirit/ClassSpiritApplication.java:
--------------------------------------------------------------------------------
1 | package com.jinhui.classspirit;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class ClassSpiritApplication {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(ClassSpiritApplication.class, args);
11 | }
12 |
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/com/jinhui/classspirit/ServletInitializer.java:
--------------------------------------------------------------------------------
1 | package com.jinhui.classspirit;
2 |
3 | import org.springframework.boot.builder.SpringApplicationBuilder;
4 | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
5 |
6 | public class ServletInitializer extends SpringBootServletInitializer {
7 |
8 | @Override
9 | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
10 | return application.sources(ClassSpiritApplication.class);
11 | }
12 |
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/com/jinhui/classspirit/controller/ActivityController.java:
--------------------------------------------------------------------------------
1 | package com.jinhui.classspirit.controller;
2 |
3 | import com.jinhui.classspirit.service.ActivityService;
4 | import com.jinhui.classspirit.service.ApplyService;
5 | import com.jinhui.classspirit.service.UserService;
6 | import com.jinhui.classspirit.util.RequestTime;
7 | import com.jinhui.classspirit.vo.Activity;
8 | import com.jinhui.classspirit.vo.ActivityApply;
9 | import com.jinhui.classspirit.vo.Apply;
10 | import com.jinhui.classspirit.vo.User;
11 | import org.apache.commons.logging.Log;
12 | import org.apache.commons.logging.LogFactory;
13 | import org.apache.ibatis.annotations.Param;
14 | import org.springframework.beans.factory.annotation.Autowired;
15 | import org.springframework.stereotype.Controller;
16 | import org.springframework.web.bind.annotation.RequestMapping;
17 | import org.springframework.web.bind.annotation.RequestMethod;
18 | import org.springframework.web.bind.annotation.RequestParam;
19 | import org.springframework.web.bind.annotation.ResponseBody;
20 | import org.springframework.web.multipart.MultipartFile;
21 |
22 | import javax.servlet.http.HttpServletRequest;
23 | import javax.servlet.http.HttpServletResponse;
24 | import java.io.File;
25 | import java.util.ArrayList;
26 | import java.util.HashMap;
27 | import java.util.List;
28 | import java.util.Map;
29 |
30 | @Controller
31 | @RequestMapping("/activity")
32 | public class ActivityController extends BaseController {
33 |
34 | private static Log log = LogFactory.getLog(ActivityController.class);
35 |
36 | @Autowired
37 | private ActivityService activityService;
38 | @Autowired
39 | private ApplyService applyService;
40 | @Autowired
41 | private UserService userService;
42 |
43 | /**
44 | * 活动列表(含详情)
45 | *
46 | * @param response
47 | * @return
48 | */
49 | @RequestMapping(value = "list", method = RequestMethod.POST)
50 | @ResponseBody
51 | public String List(@RequestParam(defaultValue = "0") Integer currentPage, @RequestParam(defaultValue = "5") Integer pageSize, @Param("requestTime") String requestTime,
52 | @Param("classId") String classId, @Param("userId") String userId, @Param("type") Integer type, @Param("sort") Integer sort, HttpServletResponse response) {
53 | Map map = new HashMap();
54 | List