Skip to content

Commit b01d274

Browse files
committed
[WIP] fetch from gitee
1 parent 59c51f9 commit b01d274

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2415
-2
lines changed

README.en.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# software-project-practise
2+
3+
#### Description
4+
The project for "software project practice" course in ECNU
5+
6+
#### Software Architecture
7+
Software architecture description
8+
9+
#### Installation
10+
11+
1. xxxx
12+
2. xxxx
13+
3. xxxx
14+
15+
#### Instructions
16+
17+
1. xxxx
18+
2. xxxx
19+
3. xxxx
20+
21+
#### Contribution
22+
23+
1. Fork the repository
24+
2. Create Feat_xxx branch
25+
3. Commit your code
26+
4. Create Pull Request
27+
28+
29+
#### Gitee Feature
30+
31+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
35+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

README.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
1-
# software-project-practise
2-
The project for "software project practice" course in ECNU
1+
# 心理诊断系统
2+
3+
#### 介绍 :rabbit:
4+
本项目是华东师范大学软件学院“软件实践开发”课程结课项目
5+
6+
#### 小组成员:hamster:
7+
8+
##### A组:
9+
10+
- 罗逸超
11+
- 王琬晴
12+
- 章露
13+
14+
##### B组:
15+
16+
- 潘天天
17+
- 蔡正海
18+
- 胡梓锐
19+
20+
#### 软件架构:panda_face:
21+
22+
23+
#### 安装教程:penguin:
24+
25+
#### 使用说明:ant:
26+
27+
#### 参与贡献:boar:
28+
29+
1. Fork 本仓库
30+
2. 新建 Feat_xxx 分支
31+
3. 提交代码
32+
4. 新建 Pull Request
33+
34+
35+
#### 特技:monkey_face:
36+
37+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
38+
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
39+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
40+
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
41+
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
42+
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

system-backend/.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
6+
7+
### STS ###
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
.sts4-cache
15+
16+
### IntelliJ IDEA ###
17+
.idea
18+
*.iws
19+
*.iml
20+
*.ipr
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
28+
build/
29+
!**/src/main/**/build/
30+
!**/src/test/**/build/
31+
32+
### VS Code ###
33+
.vscode/

system-backend/pom.xml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>2.6.4</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
<groupId>com.example</groupId>
12+
<artifactId>Code</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<name>Code</name>
15+
<description>Demo project for Spring Boot</description>
16+
<properties>
17+
<java.version>1.8</java.version>
18+
</properties>
19+
<dependencies>
20+
<dependency>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter-web</artifactId>
23+
</dependency>
24+
<dependency>
25+
<groupId>com.github.yitter</groupId>
26+
<artifactId>yitter-idgenerator</artifactId>
27+
<version>1.0.6</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-starter-test</artifactId>
32+
<scope>test</scope>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>io.springfox</groupId>
37+
<artifactId>springfox-swagger2</artifactId>
38+
<version>2.10.5</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>io.springfox</groupId>
42+
<artifactId>springfox-swagger-ui</artifactId>
43+
<version>2.9.2</version>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>mysql</groupId>
48+
<artifactId>mysql-connector-java</artifactId>
49+
<version>8.0.25</version>
50+
<scope>runtime</scope>
51+
</dependency>
52+
53+
<dependency>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-starter-data-jpa</artifactId>
56+
</dependency>
57+
58+
<dependency>
59+
<groupId>javax.persistence</groupId>
60+
<artifactId>persistence-api</artifactId>
61+
<version>1.0</version>
62+
</dependency>
63+
<dependency>
64+
<groupId>io.swagger</groupId>
65+
<artifactId>swagger-annotations</artifactId>
66+
<version>1.5.20</version>
67+
</dependency>
68+
<dependency>
69+
<groupId>jakarta.validation</groupId>
70+
<artifactId>jakarta.validation-api</artifactId>
71+
<version>2.0.2</version>
72+
</dependency>
73+
<dependency>
74+
<groupId>org.assertj</groupId>
75+
<artifactId>assertj-core</artifactId>
76+
</dependency>
77+
<dependency>
78+
<groupId>org.mybatis.spring.boot</groupId>
79+
<artifactId>mybatis-spring-boot-starter</artifactId>
80+
<version>2.0.1</version>
81+
</dependency>
82+
83+
<dependency>
84+
<groupId>org.projectlombok</groupId>
85+
<artifactId>lombok</artifactId>
86+
<version>1.18.10</version>
87+
<scope>provided</scope>
88+
</dependency>
89+
</dependencies>
90+
91+
<build>
92+
<plugins>
93+
<plugin>
94+
<groupId>org.springframework.boot</groupId>
95+
<artifactId>spring-boot-maven-plugin</artifactId>
96+
<version>2.4.1</version>
97+
</plugin>
98+
</plugins>
99+
</build>
100+
</project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.example.g5project;
2+
3+
import com.github.yitter.contract.IdGeneratorOptions;
4+
import com.github.yitter.idgen.YitIdHelper;
5+
import org.springframework.boot.SpringApplication;
6+
import org.springframework.boot.autoconfigure.SpringBootApplication;
7+
8+
@SpringBootApplication
9+
public class CodeApplication {
10+
11+
public static void main(String[] args) {
12+
SpringApplication.run(CodeApplication.class, args);
13+
}
14+
15+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
package com.example.g5project.controller;
2+
3+
import com.example.g5project.entity.frontEndObject.PeopleNumberObject;
4+
import com.example.g5project.others.ResponseValue;
5+
import com.example.g5project.service.AdministratortService;
6+
import io.swagger.annotations.Api;
7+
import io.swagger.annotations.ApiOperation;
8+
import io.swagger.annotations.ApiParam;
9+
import org.springframework.web.bind.annotation.*;
10+
11+
import java.util.ArrayList;
12+
import java.util.Date;
13+
14+
/**
15+
* @author Hu Zirui
16+
* @version 1.0.0
17+
* @ClassName AdministratorController.java
18+
* @Description TODO
19+
* @createTime 2022年03月23日 14:25:00
20+
*/
21+
@Api("管理员接口操作")
22+
@CrossOrigin
23+
@RestController
24+
@RequestMapping(value = "/administrator")
25+
public class AdministratorController {
26+
private final AdministratortService administratortService;
27+
28+
public AdministratorController(AdministratortService administratortService) {
29+
this.administratortService = administratortService;
30+
}
31+
32+
@ApiOperation("根据月份返回列表")
33+
@RequestMapping(method = RequestMethod.GET, value = "/getInfoByMonth/{year}/{month}")
34+
public ResponseValue<?> getInfoByMonth(@ApiParam(value = "年份", required = true, example = "2022") @PathVariable Integer year, @ApiParam(value = "月份", required = true, example = "1") @PathVariable Integer month) {
35+
ArrayList<PeopleNumberObject> result = administratortService.getInfoByMonth(year, month);
36+
return ResponseValue.success(result);
37+
}
38+
39+
@ApiOperation("根据日期返回咨询师名字")
40+
@RequestMapping(method = RequestMethod.GET, value = "/getConsultantInfoByDate/{date}")
41+
public ResponseValue<?> getConsultantInfoByDate(@ApiParam(value = "日期", required = true, example = "2022-02-22") @PathVariable Date date) {
42+
ArrayList<String> result = administratortService.getConsultantInfoByDate(date);
43+
return ResponseValue.success(result);
44+
}
45+
46+
@ApiOperation("根据日期返回督导名字")
47+
@RequestMapping(method = RequestMethod.GET, value = "/getSupervisorInfoByDate/{date}")
48+
public ResponseValue<?> getSupervisorInfoByDate(@ApiParam(value = "日期", required = true, example = "2022-02-22") @PathVariable Date date) {
49+
ArrayList<String> result = administratortService.getSupervisorInfoByDate(date);
50+
return ResponseValue.success(result);
51+
}
52+
53+
@ApiOperation("根据日期和名字添加咨询师到排班表中")
54+
@RequestMapping(method = RequestMethod.GET, value = "/addConsultantSchedule/{date}/{name}")
55+
public ResponseValue<?> addConsultantIntoScheduleByName(@ApiParam(value = "日期", required = true, example = "2022-02-22") @PathVariable Date date, @ApiParam(value = "名字", required = true, example = "czh") @PathVariable String name) {
56+
administratortService.addConsultantIntoScheduleByName(name, date);
57+
return ResponseValue.success("add consultant success");
58+
}
59+
60+
@ApiOperation("根据日期和名字添加督导到排班表中")
61+
@RequestMapping(method = RequestMethod.GET, value = "/addSupervisorSchedule/{date}/{name}")
62+
public ResponseValue<?> addSupervisorIntoScheduleByName(@ApiParam(value = "日期", required = true, example = "2022-02-22") @PathVariable Date date, @ApiParam(value = "名字", required = true, example = "czh") @PathVariable String name) {
63+
administratortService.addSupervisorIntoScheduleByName(name, date);
64+
return ResponseValue.success("add supervisor success");
65+
}
66+
67+
@ApiOperation("根据日期和名字删除咨询师")
68+
@RequestMapping(method = RequestMethod.GET, value = "/deleteConsultantSchedule/{date}/{name}")
69+
public ResponseValue<?> deleteConsultantFromScheduleByName(@ApiParam(value = "日期", required = true, example = "2022-02-22") @PathVariable Date date, @ApiParam(value = "名字", required = true, example = "czh") @PathVariable String name) {
70+
administratortService.deleteConsultantFromScheduleByName(name, date);
71+
return ResponseValue.success("delete consultant success");
72+
}
73+
74+
@ApiOperation("根据日期和名字删除督导")
75+
@RequestMapping(method = RequestMethod.GET, value = "/deleteSupervisorSchedule/{date}/{name}")
76+
public ResponseValue<?> deleteSupervisorFromScheduleByName(@ApiParam(value = "日期", required = true, example = "2022-02-22") @PathVariable Date date, @ApiParam(value = "名字", required = true, example = "czh") @PathVariable String name) {
77+
administratortService.deleteSupervisorFromScheduleByName(name, date);
78+
return ResponseValue.success("delete supervisor success");
79+
}
80+
81+
}

0 commit comments

Comments
 (0)