refactor: 整理代码
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package com.huertian.jinduguanli.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
public class LessonTaskImportDTO {
|
||||
@ExcelProperty("课程名称")
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user