refactor: 整理代码

This commit is contained in:
huertian 2025-01-05 19:19:51 +08:00
parent 5c632a724f
commit a19102f4d4
5 changed files with 8 additions and 13 deletions

View File

@ -558,7 +558,7 @@
- **Excel 文件格式**
| 用户名 | 邮箱 | 密码 | 部门名称 |
|--------|------|------|----------|
| 张三 | zhangsan@example.com | 123456 | 技术部 |
| 张三 | zhangsan@example.com | 123456 | 技术部 |
- **成功响应**
```json
{
@ -587,7 +587,7 @@
- **Excel 文件格式**
| 课程名称 | 微课名称 | 教师邮箱 |
|----------|----------|-----------|
| 数学课程 | 第一章 | teacher@example.com |
| 数学课程 | 第一章 | teacher@example.com |
- **成功响应**
```json
{
@ -616,7 +616,7 @@
- **Excel 文件格式**
| 部门名称 | 部门描述 |
|----------|----------|
| 技术部 | 负责技术研发 |
| 技术部 | 负责技术研发 |
- **成功响应**
```json
{

View File

@ -1,13 +1,11 @@
package com.huertian.jinduguanli.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
public class DepartmentImportDTO {
@ExcelProperty("部门名称")
private String departmentName;
@ExcelProperty("部门描述")
private String description;

View File

@ -1,7 +1,6 @@
package com.huertian.jinduguanli.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
public class LessonTaskImportDTO {
@ExcelProperty("课程名称")

View File

@ -1,21 +1,20 @@
package com.huertian.jinduguanli.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
public class UserImportDTO {
@ExcelProperty(index = 0)
private String username;
@ExcelProperty(index = 1)
private String email;
@ExcelProperty(index = 2)
private String password;
@ExcelProperty(index = 3)
private String departmentName;
@ExcelProperty(index = 4)
private String roleAndJob;

View File

@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.BeanUtils;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;