feat: 初始化
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>edu-user</artifactId>
|
||||
<groupId>com.yida.data.user</groupId>
|
||||
<version>2.2-RELEASE</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>jar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.yida.data.school</groupId>
|
||||
<artifactId>edu-school-api</artifactId>
|
||||
<version>2.2-RELEASE</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<artifactId>edu-user-api</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 添加家校部门请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/11/17
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "AddUserDeptDTO", description = "添加家校部门请求类")
|
||||
public class AddUserDeptDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3916261687265265594L;
|
||||
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "家校部门名称", required = true)
|
||||
private String deptName;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id", required = true)
|
||||
private Long schoolId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "家校部门类型", required = true)
|
||||
private Integer deptType;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "父级id", required = true)
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty(value = "父级企业微信id")
|
||||
private Long parentWxId;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class BatchIssueDTO {
|
||||
@ApiModelProperty("人脸id")
|
||||
private List<Long> ids;
|
||||
|
||||
@ApiModelProperty("人脸组id")
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty("是否下发设备组内全部人脸,0-是,1-否")
|
||||
private Integer type;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.entity.user.EduFaceGroupDevice;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class BindFaceGroupDeviceDTO {
|
||||
private List<EduFaceGroupDevice> deviceList;
|
||||
|
||||
private Long faceGroupId;
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 校园卡号导入错误返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/2/19
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "CardErrorExportDTO", description = "校园卡号导入错误返回类")
|
||||
public class CardErrorExportDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3132562554433758713L;
|
||||
|
||||
@ExcelProperty("学生学号")
|
||||
private String stuNumber;
|
||||
|
||||
@ExcelProperty("校园卡号")
|
||||
private String stuCardNumber;
|
||||
|
||||
@ExcelProperty("错误信息")
|
||||
private String errorMessage;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 校园卡号导入类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/2/19
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "CardImportDTO", description = "校园卡号导入类")
|
||||
public class CardImportDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 6536093595406368088L;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ExcelProperty(value = "学生学号")
|
||||
private String stuNumber;
|
||||
|
||||
/**
|
||||
* 校园卡号
|
||||
*/
|
||||
@ExcelProperty(value = "校园卡号")
|
||||
private String stuCardNumber;
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 验证学生信息请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/19
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@ApiModel(value = "CheckStudentInformationDTO", description = "验证学生信息请求类")
|
||||
public class CheckStudentInformationDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5248721986659353881L;
|
||||
|
||||
/**
|
||||
* 学校id
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id")
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* 学生信息集合
|
||||
*/
|
||||
@NotEmpty
|
||||
@ApiModelProperty(value = "学生信息集合")
|
||||
private List<StudentInformationDTO> list;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public static class StudentInformationDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5637594596016957783L;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生身份证号码
|
||||
*/
|
||||
@ApiModelProperty(value = "学生身份证号码")
|
||||
private String studentIdCard;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.entity.user.EduUserDept;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import lombok.Data;
|
||||
|
||||
@ApiModel("处理微信教师更改回调")
|
||||
@Data
|
||||
public class DealTeacherChangeDTO {
|
||||
|
||||
private Long schoolId;
|
||||
|
||||
private EduUserDept userDept;
|
||||
|
||||
private List<Map> teacherList;
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class DelFaceGroupUserDTO {
|
||||
|
||||
@ApiModelProperty("人脸id")
|
||||
private List<Long> faceIds;
|
||||
|
||||
@ApiModelProperty("人脸组id")
|
||||
private Long faceGroupId;
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.entity.system.Dept;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业微信回调删除本地家校部门请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/12/1
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DeleteUserDeptDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 6750799463622184247L;
|
||||
|
||||
/**
|
||||
* 删除的家校部门id集合
|
||||
*/
|
||||
private List<Long> deptIdList;
|
||||
|
||||
/**
|
||||
* 删除家校部门对应的学校信息
|
||||
*/
|
||||
private Dept school;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.enums.ImportTemplateTypeEnum;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 下载学生导入模板请求类
|
||||
* 学生excel
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/7/5
|
||||
*/
|
||||
@Data
|
||||
public class DownloadStudentTemplateDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4039500896043394420L;
|
||||
|
||||
/**
|
||||
* 模板类型. 1: 智慧迎新数据导入模板, 2: 一键邀请导入模板
|
||||
* {@link ImportTemplateTypeEnum}
|
||||
*/
|
||||
private Integer type;
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 编辑家校部门请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/11/17
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "EditUserDeptDTO", description = "编辑家校部门请求类")
|
||||
public class EditUserDeptDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4534617550650106901L;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "家校部门id", required = true)
|
||||
private Long deptId;
|
||||
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "家校部门名称", required = true)
|
||||
private String deptName;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id", required = true)
|
||||
private Long schoolId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "父级id", required = true)
|
||||
private Long parentId;
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ExchangeDormDTO {
|
||||
|
||||
@ApiModelProperty("当前学生")
|
||||
private Long studentId;
|
||||
|
||||
@ApiModelProperty("要交换的学生(与targetDormRoomId只传一个)")
|
||||
private Long targetStudentId;
|
||||
|
||||
@ApiModelProperty("要去的寝室(与targetStudentId只传一个)")
|
||||
private Long targetDormRoomId;
|
||||
|
||||
@ApiModelProperty("要去的宿舍楼(与宿舍楼id一起)")
|
||||
private Long targetDormId;
|
||||
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.common.BaseDTO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FaceGroupUserPageDTO extends BaseDTO {
|
||||
|
||||
@ApiModelProperty("人脸组id")
|
||||
private Long groupId;
|
||||
|
||||
@ApiModelProperty("人员类别,0-学生,1-教职工")
|
||||
private Integer userType;
|
||||
|
||||
@ApiModelProperty("下发状态,多选,0-未下发,1-已下发,2-下发中,3-下发失败")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("是否只展示已上传人脸的用户,0-是,1-否,默认1")
|
||||
private Integer onlyShowImport = 1;
|
||||
|
||||
@ApiModelProperty("搜索关键词")
|
||||
private String keyword;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 导入职工dto
|
||||
*/
|
||||
@Data
|
||||
public class ImportStaffInformationDTO {
|
||||
|
||||
@ApiModelProperty("学号")
|
||||
@ExcelProperty("学号")
|
||||
private String studentNum;
|
||||
|
||||
|
||||
@ApiModelProperty("学生类型:0走读,1住宿")
|
||||
@ExcelProperty("类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty("错误原因")
|
||||
@ExcelProperty("错误原因")
|
||||
private String error;
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 导入住宿学生dto
|
||||
*/
|
||||
@Data
|
||||
public class ImportStudentDormDTO {
|
||||
|
||||
@ApiModelProperty("年级")
|
||||
@ExcelProperty(value = "年级")
|
||||
private String grade;
|
||||
|
||||
@ApiModelProperty("班级")
|
||||
@ExcelProperty("班级")
|
||||
private String clazz;
|
||||
|
||||
@ApiModelProperty("学生姓名")
|
||||
@ExcelProperty("学生姓名")
|
||||
private String studentName;
|
||||
|
||||
@ApiModelProperty("学号")
|
||||
@ExcelProperty("学号")
|
||||
private String studentNum;
|
||||
|
||||
@ApiModelProperty("宿舍楼")
|
||||
@ExcelProperty("宿舍楼")
|
||||
private String dormName;
|
||||
|
||||
@ApiModelProperty("寝室号")
|
||||
@ExcelProperty("寝室号")
|
||||
private String dormRoomName;
|
||||
|
||||
@ApiModelProperty("错误原因")
|
||||
@ExcelProperty("错误原因")
|
||||
private String error;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 导入住宿学生dto
|
||||
*/
|
||||
@Data
|
||||
public class ImportStudentTypeDTO {
|
||||
|
||||
@ApiModelProperty("学号")
|
||||
@ExcelProperty("学号")
|
||||
private String studentNum;
|
||||
|
||||
|
||||
@ApiModelProperty("学生类型:0走读,1住宿")
|
||||
@ExcelProperty("类型")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty("错误原因")
|
||||
@ExcelProperty("错误原因")
|
||||
private String error;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ListStaffDTO {
|
||||
|
||||
@ApiModelProperty("手机号")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty("姓名(精准)")
|
||||
private String accurateName;
|
||||
|
||||
@ApiModelProperty("姓名(模糊)")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
|
||||
@ApiModelProperty("教职工部门id")
|
||||
private Long deptId;
|
||||
|
||||
@ApiModelProperty("教职工id")
|
||||
private List<Long> ids;
|
||||
|
||||
@ApiModelProperty("0-同步到企业微信,1-不同步")
|
||||
private Integer wxPath;
|
||||
}
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yida.data.common.core.common.BaseDTO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ListStudentApplyDTO {
|
||||
|
||||
@ApiModelProperty("当前页码,默认为1")
|
||||
private Integer pageNum = 1;
|
||||
|
||||
@ApiModelProperty("页面大小,默认为10")
|
||||
private Integer pageSize = 10;
|
||||
|
||||
/**
|
||||
* 学生ID
|
||||
*/
|
||||
@ApiModelProperty("学生ID")
|
||||
private Long studentId;
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty("学生姓名")
|
||||
private String studentName;
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ApiModelProperty("学生学号")
|
||||
private String studentNumber;
|
||||
/**
|
||||
* 应用编码
|
||||
*/
|
||||
@ApiModelProperty("学生学号")
|
||||
private String applyCode;
|
||||
|
||||
@ApiModelProperty("有效期开始时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime startTime;
|
||||
|
||||
@ApiModelProperty("有效期结束时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime endTime;
|
||||
/**
|
||||
* 学校ID
|
||||
*/
|
||||
@ApiModelProperty("学校ID")
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* 学校IDList
|
||||
*/
|
||||
@ApiModelProperty("学校IDList")
|
||||
private List<Long> schoolIdList;
|
||||
|
||||
/**
|
||||
* 学区ID
|
||||
*/
|
||||
@ApiModelProperty("学区ID")
|
||||
private Long campusId;
|
||||
/**
|
||||
* 学段ID
|
||||
*/
|
||||
@ApiModelProperty("学段ID")
|
||||
private Long sectionId;
|
||||
/**
|
||||
* 年级ID
|
||||
*/
|
||||
@ApiModelProperty("年级ID")
|
||||
private Long gradeId;
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
@ApiModelProperty("班级ID")
|
||||
private Long classId;
|
||||
|
||||
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ListStudentApplyForDTO {
|
||||
|
||||
@ApiModelProperty("当前页码,默认为1")
|
||||
private Integer pageNum = 1;
|
||||
|
||||
@ApiModelProperty("页面大小,默认为10")
|
||||
private Integer pageSize = 10;
|
||||
|
||||
/**
|
||||
* 学生ID
|
||||
*/
|
||||
@ApiModelProperty("学生ID")
|
||||
private Long studentId;
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty("学生姓名")
|
||||
private String studentName;
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ApiModelProperty("学生学号")
|
||||
private String studentNumber;
|
||||
/**
|
||||
* 应用编码
|
||||
*/
|
||||
@ApiModelProperty("应用编码")
|
||||
private String applyCode;
|
||||
|
||||
/**
|
||||
* 学校ID
|
||||
*/
|
||||
@ApiModelProperty("学校ID")
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* 学校IDList
|
||||
*/
|
||||
@ApiModelProperty("学校IDList")
|
||||
private List<Long> schoolIdList;
|
||||
|
||||
/**
|
||||
* 学区ID
|
||||
*/
|
||||
@ApiModelProperty("学区ID")
|
||||
private Long campusId;
|
||||
/**
|
||||
* 学段ID
|
||||
*/
|
||||
@ApiModelProperty("学段ID")
|
||||
private Long sectionId;
|
||||
/**
|
||||
* 年级ID
|
||||
*/
|
||||
@ApiModelProperty("年级ID")
|
||||
private Long gradeId;
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
@ApiModelProperty("班级ID")
|
||||
private Long classId;
|
||||
|
||||
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Builder.Default;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class ListStudentDTO {
|
||||
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
private List<Long> schoolIds;
|
||||
@ApiModelProperty("校区id")
|
||||
private Long campusId;
|
||||
@ApiModelProperty("学段id")
|
||||
private Long sectionId;
|
||||
@ApiModelProperty("年级id")
|
||||
private Long gradeId;
|
||||
@ApiModelProperty("班级id")
|
||||
private Long classId;
|
||||
|
||||
@ApiModelProperty("学生id列表")
|
||||
private List<Long> studentIds;
|
||||
@ApiModelProperty("班级id列表")
|
||||
private List<Long> classIds;
|
||||
|
||||
@ApiModelProperty("宿舍楼id列表")
|
||||
private List<Long> dormIds;
|
||||
@ApiModelProperty("寝室id列表")
|
||||
private List<Long> dormRoomIds;
|
||||
|
||||
@ApiModelProperty("学生类型,0-走读,1-住宿")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("学生姓名(模糊搜索)")
|
||||
private String stuName;
|
||||
|
||||
@ApiModelProperty("学生姓名(精准匹配)")
|
||||
private String stuNameMatch;
|
||||
@ApiModelProperty("学生学号")
|
||||
private String stuNum;
|
||||
|
||||
|
||||
@ApiModelProperty("仅查询学生id(不查询其他信息),默认false")
|
||||
@Default
|
||||
private Boolean onlyId = false;
|
||||
|
||||
@ApiModelProperty("是否查询家长,默认true")
|
||||
@Default
|
||||
private Boolean isQueryParent = true;
|
||||
|
||||
@ApiModelProperty("是否查询学生班级等信息,默认true")
|
||||
@Default
|
||||
private Boolean isQueryUserDept = true;
|
||||
|
||||
@ApiModelProperty("是否查询学校名称,默认true")
|
||||
@Default
|
||||
private Boolean isQuerySchoolName = true;
|
||||
|
||||
@ApiModelProperty("是否排序(学生姓名拼音),默认false")
|
||||
@Default
|
||||
private Boolean isSort = false;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ManagerDTO {
|
||||
|
||||
private List<Long> deptIdList;
|
||||
private Long ruleId;
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 分页查询学生列表数据请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/2/19
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "OutPageStudentDTO", description = "分页查询学生列表数据请求类")
|
||||
public class OutPageStudentDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4601644422338829002L;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id", required = true)
|
||||
private Long schoolId;
|
||||
|
||||
@ApiModelProperty(value = "当前页码", required = true)
|
||||
private Integer pageNum;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "每页数量")
|
||||
private Integer pageSize;
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.common.BaseDTO;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PageStudentDTO extends BaseDTO {
|
||||
|
||||
@ApiModelProperty("区域id")
|
||||
private Long areaId;
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
@ApiModelProperty("学生类型id")
|
||||
private Integer type;
|
||||
@ApiModelProperty("校区id")
|
||||
private Long campusId;
|
||||
@ApiModelProperty("校区id")
|
||||
private List<Long> campusIdList;
|
||||
@ApiModelProperty("学段id")
|
||||
private Long sectionId;
|
||||
private List<Long> sectionIdList;
|
||||
@ApiModelProperty("年级id")
|
||||
private Long gradeId;
|
||||
private List<Long> gradeIdList;
|
||||
@ApiModelProperty("班级id")
|
||||
private Long classId;
|
||||
private List<Long> classIdList;
|
||||
@ApiModelProperty("学号id")
|
||||
private String stuNumber;
|
||||
@ApiModelProperty("名字")
|
||||
private String name;
|
||||
@ApiModelProperty("家庭类型 字典值")
|
||||
private String familyType;
|
||||
@ApiModelProperty("是否采集人脸:0否,1是")
|
||||
private String collectType;
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.common.BaseDTO;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 分页查询住宿学生
|
||||
*/
|
||||
@Data
|
||||
public class PageStudentDormDTO extends BaseDTO {
|
||||
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
|
||||
@ApiModelProperty("宿舍楼")
|
||||
private Long dormId;
|
||||
|
||||
@ApiModelProperty("楼层")
|
||||
private Integer floor;
|
||||
|
||||
@ApiModelProperty("寝室id")
|
||||
private Long dormRoomId;
|
||||
|
||||
@ApiModelProperty("班级id")
|
||||
private Long classId;
|
||||
|
||||
@ApiModelProperty("关键词")
|
||||
private String keyword;
|
||||
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.common.BaseDTO;
|
||||
|
||||
import com.yida.data.user.vo.TeacherListVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
@ApiModel("分页查询教师列表参数")
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PageTeacherDTO extends BaseDTO<TeacherListVO> {
|
||||
|
||||
@ApiModelProperty("区域id")
|
||||
private Long areaId;
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
private Long campusId;
|
||||
private Long sectionId;
|
||||
private List<Long> schoolIds;
|
||||
@ApiModelProperty("年级id")
|
||||
private Long gradeId;
|
||||
@ApiModelProperty("班级id")
|
||||
private Long classId;
|
||||
@ApiModelProperty("课程id")
|
||||
private Long courseId;
|
||||
@ApiModelProperty("手机号")
|
||||
private String phone;
|
||||
@ApiModelProperty("教师名称")
|
||||
private String teacherName;
|
||||
@ApiModelProperty("角色;1表示校区负责人,2表示年级负责人,3表示班主任,4表示任课老师,5表示学段负责人'")
|
||||
private Integer type;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ParentVO {
|
||||
private List<String> phone;
|
||||
private Long schoolId;
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保存校区数据请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/11/16
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "SaveCampusDTO", description = "保存校区数据请求类")
|
||||
public class SaveCampusDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4603742507746644048L;
|
||||
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "校区名称", required = true)
|
||||
private String deptName;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "上级id", required = true)
|
||||
private Long parentId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id", required = true)
|
||||
private Long schoolId;
|
||||
|
||||
@NotEmpty
|
||||
@Size(min = 1)
|
||||
@ApiModelProperty(value = "学段集合", required = true)
|
||||
private List<SectionDTO> sectionList;
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@ApiModel("人员导入参数")
|
||||
@Data
|
||||
public class SaveFaceGroupUserDTO {
|
||||
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty("0-学生,1-教师")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("用户id")
|
||||
private List<Long> userId;
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.entity.user.enums.SectionTypeEnum;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 保存年级数据请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/11/18
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "SaveGradeDTO", description = "保存年级数据请求类")
|
||||
public class SaveGradeDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -9010883968227916948L;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "上级id", required = true)
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty(value = "上级微信id")
|
||||
private Long parentWxId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id", required = true)
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* {@link SectionTypeEnum}
|
||||
*/
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "学段类型", required = true)
|
||||
private String sectionType;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "标准年级值", required = true)
|
||||
private Integer standardGradeValue;
|
||||
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "年级名称", required = true)
|
||||
private String deptName;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "默认班级数量", required = true)
|
||||
private Integer defaultClassValue;
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 保存家长信息请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/19
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@ApiModel(value = "SaveParentInformationDTO", description = "保存家长信息请求类")
|
||||
public class SaveParentInformationDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7298060256240384500L;
|
||||
|
||||
/**
|
||||
* 学生id集合
|
||||
*/
|
||||
@NotEmpty
|
||||
@ApiModelProperty(value = "学生id集合")
|
||||
private List<Long> studentIdList;
|
||||
|
||||
/**
|
||||
* 学校id
|
||||
*/
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id")
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* 家长信息集合
|
||||
*/
|
||||
@NotEmpty
|
||||
@ApiModelProperty("家长信息集合")
|
||||
private List<ParentInformationDTO> parentInfoList;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public static class ParentInformationDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3702683332039705958L;
|
||||
|
||||
/**
|
||||
* 家长身份
|
||||
*/
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "家长身份")
|
||||
private String parentRole;
|
||||
|
||||
/**
|
||||
* 家长手机号码
|
||||
*/
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "家长手机号码")
|
||||
private String parentTelephone;
|
||||
}
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.entity.user.enums.SectionTypeEnum;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 保存学段数据请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/11/16
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "SectionDTO", description = "保存学段数据请求类")
|
||||
public class SectionDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4669045520319643477L;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "上级id", required = true)
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty(value = "上级微信id", required = true)
|
||||
private Long parentWxId;
|
||||
|
||||
@ApiModelProperty(value = "上级大华id", required = true)
|
||||
private String parentDaHuaId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "学校id", required = true)
|
||||
private Long schoolId;
|
||||
|
||||
/**
|
||||
* {@link SectionTypeEnum}
|
||||
*/
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "学段类型", required = true)
|
||||
private String type;
|
||||
|
||||
@NotBlank
|
||||
@ApiModelProperty(value = "学段名称", required = true)
|
||||
private String deptName;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "默认年级数量", required = true)
|
||||
private Integer defaultGradeValue;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(value = "默认班级数量", required = true)
|
||||
private Integer defaultClassValue;
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.yida.data.common.core.entity.EasyExcelExportBaseDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 职工信息导出类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/9/2
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "StaffExportDTO", description = "职工信息导出类")
|
||||
public class StaffExportDTO extends EasyExcelExportBaseDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3170308614889823545L;
|
||||
|
||||
@ExcelProperty("学校名称")
|
||||
private String schoolName;
|
||||
|
||||
@ExcelProperty("职工名称")
|
||||
private String name;
|
||||
|
||||
@ExcelProperty("性别,0-男,1-女,2-保密")
|
||||
private Integer sex;
|
||||
|
||||
@ExcelProperty("部门名称")
|
||||
private String deptIdentity;
|
||||
|
||||
@ExcelProperty("手机号")
|
||||
private String mobile;
|
||||
|
||||
@ExcelProperty("职务")
|
||||
private String position;
|
||||
|
||||
@ExcelProperty("是否采集人脸")
|
||||
private String collectStatus;
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* Excel职工信息导入类
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StaffImportDTO", description = "Excel职工信息导入类")
|
||||
public class StaffImportDTO implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 5414511146002233669L;
|
||||
/**
|
||||
* 职工姓名
|
||||
*/
|
||||
@ExcelProperty(index = 0, value = "职工姓名")
|
||||
@ApiModelProperty(value = "职工姓名")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@ExcelProperty(index = 1, value = "性别")
|
||||
@ApiModelProperty(value = "性别")
|
||||
private String sex;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@ExcelProperty(index = 2, value = "手机号")
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String mobile;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
@ExcelProperty(index = 3, value = "地址")
|
||||
@ApiModelProperty(value = "地址")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
@ExcelProperty(index = 4, value = "部门")
|
||||
@ApiModelProperty(value = "部门")
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 身份
|
||||
*/
|
||||
@ExcelProperty(index = 5, value = "身份")
|
||||
@ApiModelProperty(value = "身份")
|
||||
private String identity;
|
||||
|
||||
/**
|
||||
* 职务
|
||||
*/
|
||||
@ExcelProperty(index = 6, value = "职务")
|
||||
@ApiModelProperty(value = "职务")
|
||||
private String position;
|
||||
|
||||
/**
|
||||
* 是否同步企业微信
|
||||
*/
|
||||
@ExcelProperty(index = 7, value = "是否同步企业微信")
|
||||
@ApiModelProperty(value = "是否同步企业微信")
|
||||
private String isQw;
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-通行计划信息保存类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategyPlanSaveDTO", description = "人脸组-策略-通行计划信息保存类")
|
||||
public class StrategyPlanSaveDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1264394221797979321L;
|
||||
|
||||
@ApiModelProperty("通行计划唯一编码")
|
||||
private String uniqueCode;
|
||||
|
||||
@ApiModelProperty("通行计划-时间段集合")
|
||||
private List<StrategyPlanTimeSaveDTO> planTimeList;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalTime;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-通行计划-时间段信息保存类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategyPlanTimeSaveDTO", description = "人脸组-策略-通行计划-时间段信息保存类")
|
||||
public class StrategyPlanTimeSaveDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1666232372793999487L;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@DateTimeFormat(pattern = "HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
|
||||
private LocalTime planStartTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@DateTimeFormat(pattern = "HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
|
||||
private LocalTime planEndTime;
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组-策略信息保存类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategySaveDTO", description = "人脸组-策略信息保存类")
|
||||
public class StrategySaveDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4058986401549517015L;
|
||||
|
||||
@ApiModelProperty(value = "策略id")
|
||||
private Long strategyId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组id")
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty(value = "策略生效时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime strategyStartDate;
|
||||
|
||||
@ApiModelProperty(value = "策略失效时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime strategyEndDate;
|
||||
|
||||
@ApiModelProperty(value = "星期一通行计划uuid")
|
||||
private String mondayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期二通行计划uuid")
|
||||
private String tuesdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期三通行计划uuid")
|
||||
private String wednesdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期四通行计划uuid")
|
||||
private String thursdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期五通行计划uuid")
|
||||
private String fridayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期六通行计划uuid")
|
||||
private String saturdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期天通行计划uuid")
|
||||
private String sundayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "通行计划集合")
|
||||
private List<StrategyPlanSaveDTO> planList;
|
||||
|
||||
@ApiModelProperty(value = "特殊日期集合")
|
||||
private List<StrategySpecialDateSaveDTO> specialList;
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-特殊日期保存类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategySpecialDateSaveDTO", description = "人脸组-策略-特殊日期保存类")
|
||||
public class StrategySpecialDateSaveDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -418058543595524019L;
|
||||
|
||||
@ApiModelProperty("特殊日期开始日期")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private LocalDate specialStartDate;
|
||||
|
||||
@ApiModelProperty("特殊日期结束日期")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private LocalDate specialEndDate;
|
||||
|
||||
@ApiModelProperty("特殊日期-时间段集合")
|
||||
private List<StrategySpecialTimeSaveDTO> specialTimeList;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalTime;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-特殊日期-时间段信息保存类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategySpecialTimeSaveDTO", description = "人脸组-策略-特殊日期-时间段信息保存类")
|
||||
public class StrategySpecialTimeSaveDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3507582697531274693L;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@DateTimeFormat(pattern = "HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
|
||||
private LocalTime specialStartTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@DateTimeFormat(pattern = "HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
|
||||
private LocalTime specialEndTime;
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.yida.data.common.core.converter.LocalDateTimeConverter;
|
||||
import com.yida.data.common.core.entity.EasyExcelExportBaseDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 学生宿舍信息导出类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/12/13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "StudentDormExportDTO", description = "学生宿舍信息导出类")
|
||||
public class StudentDormExportDTO extends EasyExcelExportBaseDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3404749621207403889L;
|
||||
|
||||
@ExcelProperty("学生姓名")
|
||||
private String stuName;
|
||||
|
||||
@ExcelProperty("学号")
|
||||
private String stuNumber;
|
||||
|
||||
@ExcelProperty("班级信息")
|
||||
private String deptName;
|
||||
|
||||
@ExcelProperty("入住寝室")
|
||||
private String dormRoomName;
|
||||
|
||||
@ExcelProperty(value = "入住时间", converter = LocalDateTimeConverter.class)
|
||||
private LocalDateTime checkInTime;
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 学生信息导入错误返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/24
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StudentErrorExportDTO", description = "学生信息导入错误返回类")
|
||||
public class StudentErrorExportDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3117342768217650130L;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ExcelProperty("学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
@ExcelProperty("校区名称")
|
||||
private String campusName;
|
||||
|
||||
/**
|
||||
* 学段名称
|
||||
*/
|
||||
@ExcelProperty("学段名称")
|
||||
private String sectionName;
|
||||
|
||||
/**
|
||||
* 年级名称
|
||||
*/
|
||||
@ExcelProperty("年级名称")
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ExcelProperty("班级名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ExcelProperty("学生学号")
|
||||
private String studentNumber;
|
||||
|
||||
/**
|
||||
* 家长一关系
|
||||
*/
|
||||
@ExcelProperty("家长一关系")
|
||||
private String parentTypeName;
|
||||
|
||||
/**
|
||||
* 家长一电话
|
||||
*/
|
||||
@ExcelProperty("家长一电话")
|
||||
private String parentTelephone;
|
||||
|
||||
/**
|
||||
* 家长二关系
|
||||
*/
|
||||
@ExcelProperty("家长二关系")
|
||||
private String parentTypeNameSecond;
|
||||
|
||||
/**
|
||||
* 家长二电话
|
||||
*/
|
||||
@ExcelProperty("家长二电话")
|
||||
private String parentTelephoneSecond;
|
||||
|
||||
/**
|
||||
* 家长三关系
|
||||
*/
|
||||
@ExcelProperty("家长三关系")
|
||||
private String parentTypeNameThird;
|
||||
|
||||
/**
|
||||
* 家长三电话
|
||||
*/
|
||||
@ExcelProperty("家长三电话")
|
||||
private String parentTelephoneThird;
|
||||
|
||||
/**
|
||||
* 家长四关系
|
||||
*/
|
||||
@ExcelProperty("家长四关系")
|
||||
private String parentTypeNameFourth;
|
||||
|
||||
/**
|
||||
* 家长四电话
|
||||
*/
|
||||
@ExcelProperty("家长四电话")
|
||||
private String parentTelephoneFourth;
|
||||
|
||||
/**
|
||||
* 错误信息
|
||||
*/
|
||||
@ExcelProperty("错误信息")
|
||||
private String errorMessage;
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.yida.data.common.core.converter.LocalDateConverter;
|
||||
import com.yida.data.common.core.entity.EasyExcelExportBaseDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 学生信息导出类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/31
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "StudentExportDTO", description = "学生信息导出类")
|
||||
public class StudentExportDTO extends StudentDormExportDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 6625908714399734930L;
|
||||
|
||||
@ExcelProperty("学生姓名")
|
||||
private String stuName;
|
||||
|
||||
@ExcelProperty("班级信息")
|
||||
private String deptName;
|
||||
|
||||
@ExcelProperty("曾用名")
|
||||
private String formerName;
|
||||
|
||||
@ExcelProperty("学号")
|
||||
private String stuNumber;
|
||||
|
||||
@ExcelProperty("考生号")
|
||||
private String stuExamNumber;
|
||||
|
||||
@ExcelProperty("银行卡号")
|
||||
private String creditCardNumbers;
|
||||
|
||||
@ExcelProperty("邮箱")
|
||||
private String email;
|
||||
|
||||
@ExcelProperty("QQ号")
|
||||
private String qqCode;
|
||||
|
||||
@ExcelProperty("微信号")
|
||||
private String wxCode;
|
||||
|
||||
@ExcelProperty(value = "入学时间", converter = LocalDateConverter.class)
|
||||
private LocalDate startDate;
|
||||
|
||||
@ExcelProperty("入学年级")
|
||||
private String startGrade;
|
||||
|
||||
@ExcelProperty("政治面貌")
|
||||
private String politicsStatus;
|
||||
|
||||
@ExcelProperty("邮政编码")
|
||||
private String postalCode;
|
||||
|
||||
@ExcelProperty("籍贯")
|
||||
private String nativePlace;
|
||||
|
||||
@ExcelProperty("现住址")
|
||||
private String presentAddress;
|
||||
|
||||
/**
|
||||
* 学生性别,0-男,1-女"
|
||||
*/
|
||||
@ExcelProperty("学生性别")
|
||||
private String stuSex;
|
||||
|
||||
@ExcelProperty("民族")
|
||||
private String nation;
|
||||
|
||||
@ExcelProperty("身份证号")
|
||||
private String idNumber;
|
||||
|
||||
@ExcelProperty("校园卡号")
|
||||
private String stuCardNumber;
|
||||
|
||||
/**
|
||||
* 学生类别,0-走读,1-住宿
|
||||
*/
|
||||
@ExcelProperty("学生类型")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 学籍状态:关联字典表
|
||||
*/
|
||||
@ExcelProperty("学籍状态")
|
||||
private String studentStatus;
|
||||
|
||||
@ExcelProperty("是否采集人脸")
|
||||
private String collectStatus;
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.yida.data.common.core.entity.EasyExcelExportBaseDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 学生同步错误信息导出类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/31
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "StudentSyncErrorDTO", description = "学生同步错误信息导出类")
|
||||
public class StudentSyncErrorDTO extends EasyExcelExportBaseDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -6098949729390428258L;
|
||||
|
||||
@ExcelProperty("学校名称")
|
||||
private String schoolName;
|
||||
|
||||
@ExcelProperty("学校id")
|
||||
private Long schoolId;
|
||||
|
||||
@ExcelProperty("学生姓名")
|
||||
private String stuName;
|
||||
|
||||
@ExcelProperty("学生id")
|
||||
private Long stuId;
|
||||
|
||||
@ExcelProperty("企业微信学生信息")
|
||||
private String wxStudent;
|
||||
|
||||
@ExcelProperty("错误信息")
|
||||
private String errorMessage;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.yida.data.common.core.entity.user.EduFaceGroupUser;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UpdateFaceGroupUserStatusDTO {
|
||||
|
||||
private List<EduFaceGroupUser> userList;
|
||||
|
||||
/**
|
||||
* 将要修改成的下发状态
|
||||
*/
|
||||
private Integer status;
|
||||
}
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.yida.data.common.core.converter.LocalDateConverter;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* Excel一键邀请信息导入类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/24
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "WelcomeInviteImportDTO", description = "Excel一键邀请信息导入类")
|
||||
public class WelcomeInviteImportDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5264894950976819314L;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ExcelProperty(index = 0)
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
@ExcelProperty(index = 1)
|
||||
private String campusName;
|
||||
|
||||
/**
|
||||
* 学段名称
|
||||
*/
|
||||
@ExcelProperty(index = 2)
|
||||
private String sectionName;
|
||||
|
||||
/**
|
||||
* 年级名称
|
||||
*/
|
||||
@ExcelProperty(index = 3)
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ExcelProperty(index = 4)
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ExcelProperty(index = 5)
|
||||
private String studentNumber;
|
||||
|
||||
/**
|
||||
* 家长一关系
|
||||
*/
|
||||
@ExcelProperty(index = 6)
|
||||
private String parentTypeName;
|
||||
|
||||
/**
|
||||
* 家长一电话
|
||||
*/
|
||||
@ExcelProperty(index = 7)
|
||||
private String parentTelephone;
|
||||
|
||||
/**
|
||||
* 家长二关系
|
||||
*/
|
||||
@ExcelProperty(index = 8)
|
||||
private String parentTypeNameSecond;
|
||||
|
||||
/**
|
||||
* 家长二电话
|
||||
*/
|
||||
@ExcelProperty(index = 9)
|
||||
private String parentTelephoneSecond;
|
||||
|
||||
/**
|
||||
* 家长三关系
|
||||
*/
|
||||
@ExcelProperty(index = 10)
|
||||
private String parentTypeNameThird;
|
||||
|
||||
/**
|
||||
* 家长三电话
|
||||
*/
|
||||
@ExcelProperty(index = 11)
|
||||
private String parentTelephoneThird;
|
||||
|
||||
/**
|
||||
* 家长四关系
|
||||
*/
|
||||
@ExcelProperty(index = 12)
|
||||
private String parentTypeNameFourth;
|
||||
|
||||
/**
|
||||
* 家长四电话
|
||||
*/
|
||||
@ExcelProperty(index = 13)
|
||||
private String parentTelephoneFourth;
|
||||
|
||||
/**
|
||||
* 学生类型字符串
|
||||
*/
|
||||
@ExcelProperty(index = 14)
|
||||
private String familyName;
|
||||
|
||||
/**
|
||||
* 住宿类型
|
||||
*/
|
||||
@ExcelProperty(index = 15)
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 曾用名
|
||||
*/
|
||||
@ExcelProperty(index = 16)
|
||||
private String formerName;
|
||||
|
||||
/**
|
||||
* 考生号
|
||||
*/
|
||||
@ExcelProperty(index = 17)
|
||||
private String stuExamNumber;
|
||||
|
||||
/**
|
||||
* 银行卡号
|
||||
*/
|
||||
@ExcelProperty(index = 18)
|
||||
private String creditCardNumbers;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@ExcelProperty(index = 19)
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* QQ号
|
||||
*/
|
||||
@ExcelProperty(index = 20)
|
||||
private String qqCode;
|
||||
|
||||
/**
|
||||
* 微信号
|
||||
*/
|
||||
@ExcelProperty(index = 21)
|
||||
private String wxCode;
|
||||
|
||||
/**
|
||||
* 入学时间
|
||||
*/
|
||||
@ExcelProperty(index = 22)
|
||||
private String startDate;
|
||||
|
||||
/**
|
||||
* 入学年级
|
||||
*/
|
||||
@ExcelProperty(index = 23)
|
||||
private String startGrade;
|
||||
|
||||
/**
|
||||
* 政治面貌
|
||||
*/
|
||||
@ExcelProperty(index = 24)
|
||||
private String politicsStatus;
|
||||
|
||||
/**
|
||||
* 邮政编码
|
||||
*/
|
||||
@ExcelProperty(index = 25)
|
||||
private String postalCode;
|
||||
|
||||
/**
|
||||
* 籍贯
|
||||
*/
|
||||
@ExcelProperty(index = 26)
|
||||
private String nativePlace;
|
||||
|
||||
/**
|
||||
* 现住址
|
||||
*/
|
||||
@ExcelProperty(index = 27)
|
||||
private String presentAddress;
|
||||
|
||||
/**
|
||||
* 学生性别
|
||||
*/
|
||||
@ExcelProperty(index = 28)
|
||||
private String stuSex;
|
||||
|
||||
/**
|
||||
* 民族
|
||||
*/
|
||||
@ExcelProperty(index = 29)
|
||||
private String nation;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
@ExcelProperty(index = 30)
|
||||
private String idNumber;
|
||||
|
||||
/**
|
||||
* 校园卡号
|
||||
*/
|
||||
@ExcelProperty(index = 31)
|
||||
private String stuCardNumber;
|
||||
|
||||
/**
|
||||
* 学籍状态
|
||||
*/
|
||||
@ExcelProperty(index = 32)
|
||||
private String studentStatus;
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yida.data.common.core.entity.EasyExcelExportBaseDTO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 迎新学生信息Excel导出类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/24
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString(callSuper = true)
|
||||
@ApiModel(value = "WelcomeStudentExportDTO", description = "迎新学生信息Excel导出类")
|
||||
public class WelcomeStudentExportDTO extends EasyExcelExportBaseDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 5479798919988370317L;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@ExcelProperty(index = 0, value = "序号")
|
||||
@ApiModelProperty(value = "序号")
|
||||
private Long indexNo;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ExcelProperty(index = 1, value = "学生姓名")
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ExcelProperty(index = 2, value = "学生学号")
|
||||
@ApiModelProperty(value = "学生学号")
|
||||
private String studentNumber;
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
*/
|
||||
@ExcelProperty(index = 3, value = "身份证号码")
|
||||
@ApiModelProperty(value = "身份证号码")
|
||||
private String studentIdCard;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
@ExcelProperty(index = 4, value = "校区名称")
|
||||
@ApiModelProperty(value = "校区名称")
|
||||
private String campusName;
|
||||
|
||||
/**
|
||||
* 学段名称
|
||||
*/
|
||||
@ExcelProperty(index = 5, value = "学段名称")
|
||||
@ApiModelProperty(value = "学段名称")
|
||||
private String sectionName;
|
||||
|
||||
/**
|
||||
* 年级名称
|
||||
*/
|
||||
@ExcelProperty(index = 6, value = "年级名称")
|
||||
@ApiModelProperty(value = "年级名称")
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ExcelProperty(index = 7, value = "班级名称")
|
||||
@ApiModelProperty(value = "班级名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 家长关系
|
||||
*/
|
||||
@ExcelProperty(index = 8, value = "家长关系")
|
||||
@ApiModelProperty(value = "家长关系")
|
||||
private String parentTypeName;
|
||||
|
||||
/**
|
||||
* 家长电话
|
||||
*/
|
||||
@ExcelProperty(index = 9, value = "家长电话")
|
||||
@ApiModelProperty(value = "家长电话")
|
||||
private String parentTelephone;
|
||||
|
||||
/**
|
||||
* 报到状态
|
||||
*/
|
||||
@ExcelProperty(index = 10, value = "报到状态")
|
||||
@ApiModelProperty(value = "报到状态")
|
||||
private String reportStatus;
|
||||
|
||||
/**
|
||||
* 报到家长信息
|
||||
*/
|
||||
@ExcelProperty(index = 11, value = "报到家长信息")
|
||||
@ApiModelProperty(value = "报到家长信息")
|
||||
private String reportParentsInfo;
|
||||
|
||||
/**
|
||||
* 报到时间
|
||||
*/
|
||||
@ExcelProperty(index = 12, value = "报到时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date checkDate;
|
||||
}
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
package com.yida.data.user.dto;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Excel迎新学生信息导入类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/23
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "WelcomeStudentImportDTO", description = "Excel迎新学生信息导入类")
|
||||
public class WelcomeStudentImportDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -6568014284027854497L;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@ExcelProperty(index = 0, value = "序号")
|
||||
@ApiModelProperty(value = "序号")
|
||||
private String indexNo;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ExcelProperty(index = 1, value = "学生姓名")
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生学号
|
||||
*/
|
||||
@ExcelProperty(index = 2, value = "学生学号")
|
||||
@ApiModelProperty(value = "学生学号")
|
||||
private String studentNumber;
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
*/
|
||||
@ExcelProperty(index = 3, value = "身份证号码")
|
||||
@ApiModelProperty(value = "身份证号码")
|
||||
private String studentIdCard;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
@ExcelProperty(index = 4, value = "校区名称")
|
||||
@ApiModelProperty(value = "校区名称")
|
||||
private String campusName;
|
||||
|
||||
/**
|
||||
* 学段名称
|
||||
*/
|
||||
@ExcelProperty(index = 5, value = "学段名称")
|
||||
@ApiModelProperty(value = "学段名称")
|
||||
private String sectionName;
|
||||
|
||||
/**
|
||||
* 年级名称
|
||||
*/
|
||||
@ExcelProperty(index = 6, value = "年级名称")
|
||||
@ApiModelProperty(value = "年级名称")
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ExcelProperty(index = 7, value = "班级名称")
|
||||
@ApiModelProperty(value = "班级名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 家长关系
|
||||
*/
|
||||
@ExcelProperty(index = 8, value = "家长关系")
|
||||
@ApiModelProperty(value = "家长关系")
|
||||
private String parentTypeName;
|
||||
|
||||
/**
|
||||
* 家长电话
|
||||
*/
|
||||
@ExcelProperty(index = 9, value = "家长电话")
|
||||
@ApiModelProperty(value = "家长电话")
|
||||
private String parentTelephone;
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.yida.data.user.dto.h5;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* h5绑定学生信息请求类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/4/21
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "BindStudentDTO", description = "h5绑定学生信息请求类")
|
||||
public class BindStudentDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -7397224473083255351L;
|
||||
|
||||
@ApiModelProperty("学生姓名")
|
||||
private String stuName;
|
||||
|
||||
@ApiModelProperty("身份证号")
|
||||
private String idNumber;
|
||||
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
|
||||
@ApiModelProperty("班级id")
|
||||
private Long classId;
|
||||
|
||||
@ApiModelProperty("家长id")
|
||||
private Long parentId;
|
||||
|
||||
@ApiModelProperty("家长称呼")
|
||||
private String parentType;
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.yida.data.user.dto.h5;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* 查询用户关联班级或者寝室考勤请求类
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "ListUserDeptAttendanceDTO", description = "查询用户关联班级或者寝室考勤请求类")
|
||||
public class ListUserDeptAttendanceDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty("职工主键【用户统计数据】")
|
||||
private Long staffId;
|
||||
|
||||
@ApiModelProperty("查询日期【用户统计数据、详情】")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private LocalDate date;
|
||||
|
||||
@ApiModelProperty("部门ID,班级或者宿舍【用于详情】")
|
||||
private Long deptId;
|
||||
|
||||
@ApiModelProperty("类型:0班级,1宿舍【用于详情】")
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduCourse;
|
||||
import com.yida.data.user.feign.RemoteCourseService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* RemoteCourseService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteCourseServiceFallback implements FallbackFactory<RemoteCourseService> {
|
||||
|
||||
@Override
|
||||
public RemoteCourseService create(Throwable throwable) {
|
||||
log.error("RemoteCourseService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteCourseService() {
|
||||
/**
|
||||
* 调用通知接口
|
||||
*
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean initCourse(Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据名称查询科目
|
||||
*
|
||||
* @param courseName
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduCourse> getCourseByName(String courseName, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduFaceGroupDevice;
|
||||
import com.yida.data.common.core.entity.user.EduUserDevice;
|
||||
import com.yida.data.user.feign.RemoteFaceGroupDeviceService;
|
||||
import com.yida.data.user.feign.RemoteUserDeviceService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* RemoteFaceGroupDeviceService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/9/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteFaceGroupDeviceServiceFallback implements FallbackFactory<RemoteFaceGroupDeviceService> {
|
||||
|
||||
@Override
|
||||
public RemoteFaceGroupDeviceService create(Throwable throwable) {
|
||||
log.error("RemoteFaceGroupDeviceService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteFaceGroupDeviceService() {
|
||||
@Override
|
||||
public ResultBean<List<Long>> listFaceGroupOnlineDevice(Long faceGroupId) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduFaceGroupStrategy;
|
||||
import com.yida.data.user.feign.RemoteFaceGroupStrategyService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* RemoteFaceGroupStrategyService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteFaceGroupStrategyServiceFallback implements FallbackFactory<RemoteFaceGroupStrategyService> {
|
||||
|
||||
@Override
|
||||
public RemoteFaceGroupStrategyService create(Throwable throwable) {
|
||||
log.error("RemoteFaceGroupStrategyService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteFaceGroupStrategyService() {
|
||||
@Override
|
||||
public ResultBean<EduFaceGroupStrategy> getStrategyInfo(Long faceGroupId) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduStaff;
|
||||
import com.yida.data.common.core.entity.user.EduStaffDept;
|
||||
import com.yida.data.common.core.entity.user.EduTeacherDept;
|
||||
import com.yida.data.user.dto.ListStaffDTO;
|
||||
import com.yida.data.user.feign.RemoteStaffService;
|
||||
import com.yida.data.user.vo.TeacherClassVO;
|
||||
import com.yida.data.user.vo.TeacherDeptVO;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* RemoteStaffService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteStaffServiceFallback implements FallbackFactory<RemoteStaffService> {
|
||||
|
||||
@Override
|
||||
public RemoteStaffService create(Throwable throwable) {
|
||||
log.error("RemoteStaffService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteStaffService() {
|
||||
/**
|
||||
* 根据教师id查询教师角色
|
||||
*
|
||||
* @param teacherId 教师id
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduTeacherDept>> findTeacherRole(Long teacherId, Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询教师可见课程
|
||||
*
|
||||
* @param teacherId
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<Long>> findTeacherCourseId(Long teacherId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询职工信息
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStaff> getStaffNoPermission(Long id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过部门id,名字或者手机号查询员工id
|
||||
*
|
||||
* @param deptId
|
||||
* @param nameOrPhone
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<Long>> listStaffByDeptId(Long deptId, String nameOrPhone, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<Long>> listStaffByDeptIdNoPermission(Long deptId, String nameOrPhone, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据条件查询职工列表
|
||||
*
|
||||
* @param dto
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStaff>> listStaff(ListStaffDTO dto) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询职工信息
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStaff> getStaff(Long id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询职工部门信息
|
||||
*
|
||||
* @param staffIds
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStaffDept>> getStaffDeptByStaffIds(List<Long> staffIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduStaffDept>> getStaffDeptByStaffIdsNoPermission(List<Long> staffIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean syncQywxStaff() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化职工信息
|
||||
*
|
||||
* @param teacherList
|
||||
*/
|
||||
@Override
|
||||
public ResultBean initStaff(List<EduStaff> teacherList) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据职工微信id查询职工信息
|
||||
*
|
||||
* @param wxId
|
||||
* @param mobile
|
||||
* @param wxOpenId
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStaff> getStaffByWxOrMobileOrOpenId(String wxId, String mobile, String wxOpenId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理企业微信职工删除
|
||||
*
|
||||
* @param wxId
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean dealWxUserDelete(String wxId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<EduStaff> getStaffByDahuaNoPermission(String dahuaCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询教师可见班级
|
||||
*
|
||||
* @param teacherId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<TeacherClassVO>> listClassByTeacher(Long teacherId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存职工openId
|
||||
*
|
||||
* @param staffId 职工id
|
||||
* @param openId 微信openId
|
||||
* @return com.yida.data.common.core.common.ResultBean
|
||||
* @author ZYJ
|
||||
* @date 2022/9/22 16:17
|
||||
*/
|
||||
@Override
|
||||
public ResultBean saveWxPublicOpenId(Long staffId, String openId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<Integer>> listStaffRolesByStaffId(Long staffId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduStaff>> getStaffList(List<Long> staffIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean updateStaffCache() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<Long>> listClassIdByStaffId() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduStudentApply;
|
||||
import com.yida.data.user.feign.RemoteStudentApplyService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* RemoteStudentApplyService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteStudentApplyServiceFallback implements FallbackFactory<RemoteStudentApplyService> {
|
||||
|
||||
@Override
|
||||
public RemoteStudentApplyService create(Throwable throwable) {
|
||||
log.error("RemoteStudentApplyService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteStudentApplyService() {
|
||||
@Override
|
||||
public ResultBean<Map<Long, List<String>>> listApplyCode(Long[] studentIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<Boolean> hasApply(Long studentId, String applyCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<EduStudentApply> getStudentApply(Long studentId, String applyCode) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+349
@@ -0,0 +1,349 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.message.EduMessageStrategy;
|
||||
import com.yida.data.common.core.entity.user.EduParent;
|
||||
import com.yida.data.common.core.entity.user.EduStudent;
|
||||
import com.yida.data.school.dto.transaction.ListBuyStudentDTO;
|
||||
import com.yida.data.user.dto.ListStudentDTO;
|
||||
import com.yida.data.user.feign.RemoteStudentService;
|
||||
import com.yida.data.user.vo.ListParentByStudentIdsVO;
|
||||
import com.yida.data.user.vo.ParentInfoVO;
|
||||
import com.yida.data.user.vo.StudentClassInfoVO;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* RemoteStudentService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteStudentServiceFallback implements FallbackFactory<RemoteStudentService> {
|
||||
|
||||
@Override
|
||||
public RemoteStudentService create(Throwable throwable) {
|
||||
log.error("RemoteStudentService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteStudentService() {
|
||||
/**
|
||||
* 根据学生id查询学生
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStudent> getStudentNoPermission(Long id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据学生Id查询学生部门信息
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> getStudentDeptByIds(List<Long> studentIdList) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理响应的学生更新事件
|
||||
*
|
||||
* @param student
|
||||
*/
|
||||
@Override
|
||||
public ResultBean dealStudentWxChange(EduStudent student) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理响应的学生删除事件
|
||||
*
|
||||
* @param wxId
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean dealStudentWxDelete(String wxId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理响应的家长更新事件
|
||||
*
|
||||
* @param eduParent
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean dealParentWxChange(EduParent eduParent, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理响应的家长删除事件
|
||||
*
|
||||
* @param wxId
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean dealParentWxDelete(String wxId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<ParentInfoVO> getParentWithStudent(String mobile, String wxId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化学生列表-不进行判断直接新增学生
|
||||
*
|
||||
* @param student
|
||||
*/
|
||||
@Override
|
||||
public ResultBean initStudent(List<EduStudent> student) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据家长id查询学生
|
||||
*
|
||||
* @param parentId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listStudentByParent(Long parentId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据学生查询班级信息
|
||||
*
|
||||
* @param studentId
|
||||
* @param parentMobile
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<StudentClassInfoVO> getClassInfoByStudent(Long studentId, String parentMobile) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据学号和学校查询学生
|
||||
*
|
||||
* @param stuNumber
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStudent> getStudentByStuNumAndSchool(String stuNumber, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据年级id、学生名称、班级名称查询学生
|
||||
*
|
||||
* @param studentName
|
||||
* @param className
|
||||
* @param gradeId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listStudentByGradeAndClass(String studentName, String className, Long gradeId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据教师电话、学校查询家长列表
|
||||
*
|
||||
* @param teacherId
|
||||
* @param parentName
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<ParentInfoVO>> listParentByTeacher(Long teacherId, String parentName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean saveYidaAppUserId(Long parentId, String yidaAppUserId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean saveWxPublicOpenId(Long parentId, String openId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户企业微信Id
|
||||
*
|
||||
* @param phone
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<String>> getParentByPhoneAndSchoolId(List<String> phone, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据学校id查询当前学校的自动回复消息
|
||||
*
|
||||
* @param schoolId 学校id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.message.EduMessageStrategy>
|
||||
* @author ZYJ
|
||||
* @date 2021/8/25 17:36
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduMessageStrategy> getEduMessageStrategyBySchoolId(Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询未购买该商品的学生
|
||||
*
|
||||
* @param listBuyStudentDTO
|
||||
* @return 学生列表
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<Page<EduStudent>> listNotBuyStudent(ListBuyStudentDTO listBuyStudentDTO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询未购买该商品的学生
|
||||
*
|
||||
* @param listBuyStudentDTO
|
||||
* @return 学生列表
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listAllNotBuyStudent(ListBuyStudentDTO listBuyStudentDTO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过学生id查询家长WxId
|
||||
*
|
||||
* @param studentId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<String>> findParentWxId(List<Long> studentId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过学生id查询学生信息,和家长信息
|
||||
*
|
||||
* @param studentIds
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<ListParentByStudentIdsVO>> listParentByStudentIds(List<Long> studentIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean syncQywxStudent() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据条件查询学生列表
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listStudent(ListStudentDTO dto) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listStudentByClassId(ListStudentDTO dto) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新学生在校离校状态
|
||||
*
|
||||
* @param studentId
|
||||
* @param status
|
||||
* @param dormStatus
|
||||
*/
|
||||
@Override
|
||||
public ResultBean updateStudentStatus(Long studentId, Integer status, Integer dormStatus) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 接触学生与寝室的绑定
|
||||
*
|
||||
* @param dormIds
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean unbindDormRoom(List<Long> dormIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<EduStudent> getStudentByDahuaNoPermission(String dahuaCode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据学生表字段查询学生id信息
|
||||
*
|
||||
* @param eduStudent 查询条件
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < java.lang.Long>>
|
||||
* @author ZYJ
|
||||
* @date 2022/3/29 9:29
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<Long>> listBaseStudentIds(EduStudent eduStudent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据学生表字段查询学生列表信息
|
||||
*
|
||||
* @param eduStudent 查询条件
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.user.EduStudent>>
|
||||
* @author ZYJ
|
||||
* @date 2022/3/29 13:58
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listBaseStudent(EduStudent eduStudent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduStudent>> listBaseStudentNoJoin(EduStudent eduStudent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<JSONObject> countUserDashboardNum(Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean saveStudent(EduStudent eduStudent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean saveStudentDorm(EduStudent eduStudent) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean updateStudentCache() {
|
||||
return null;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduStaff;
|
||||
import com.yida.data.common.core.entity.user.EduTeacherDept;
|
||||
import com.yida.data.user.feign.RemoteTeacherService;
|
||||
import com.yida.data.user.vo.TeacherCourseInfoVO;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* RemoteTeacherService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteTeacherServiceFallback implements FallbackFactory<RemoteTeacherService> {
|
||||
|
||||
@Override
|
||||
public RemoteTeacherService create(Throwable throwable) {
|
||||
log.error("RemoteTeacherService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteTeacherService() {
|
||||
/**
|
||||
* 更新教师信息
|
||||
*/
|
||||
@Override
|
||||
public ResultBean dealWxTeacherChange(Long schoolId, Long campusId, Long sectionId, Long gradeId, Long classId, List<Map> teacherList, Long deptWxId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据教师微信id查询教师信息
|
||||
*
|
||||
* @param wxId
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStaff> getTeacherByWx(String wxId, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据手机号查询教师
|
||||
*
|
||||
* @param mobile
|
||||
* @param schoolId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduStaff> getTeacherByMobileAndSchool(String mobile, Long schoolId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据学校和微信更新或新增教师
|
||||
*
|
||||
* @param eduStaff
|
||||
*/
|
||||
@Override
|
||||
public ResultBean saveStaffBySchoolAndWx(EduStaff eduStaff) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据家长手机号、学校查询学生班级的老师
|
||||
*
|
||||
* @param parentId
|
||||
* @param teacherName
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStaff>> listTeacherByParent(Long parentId, String teacherName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduStaff>> listTeacherBySchool(Long schoolId, String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存易达appId
|
||||
*
|
||||
* @param staffId
|
||||
* @param yidaAppUserId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean saveYidaAppUserId(Long staffId, String yidaAppUserId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 按年级或者班级查询教师任课信息
|
||||
*
|
||||
* @param gradeId
|
||||
* @param classId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<TeacherCourseInfoVO>> listTeacherCourseByGrade(Long gradeId, Long classId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据班级和名称查询教师
|
||||
*
|
||||
* @param classId
|
||||
* @param name
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStaff>> listTeacherByClassAndName(Long classId, String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询教师对应部门
|
||||
*
|
||||
* @param teacherId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduTeacherDept>> listTeacherDeptByTeacher(Long teacherId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据家校部门id和类型查询对应教师信息
|
||||
*
|
||||
* @param deptId 家校部门id
|
||||
* @param type 教师类型 1表示校区负责人,2表示年级负责人,3表示班主任,4表示任课老师,5表示学段负责人
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.user.EduStaff>>
|
||||
* @author ZYJ
|
||||
* @date 2022/7/15 17:48
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduStaff>> listTeacherByDeptId(Long deptId, String type) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+213
@@ -0,0 +1,213 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduUserDept;
|
||||
import com.yida.data.user.dto.DeleteUserDeptDTO;
|
||||
import com.yida.data.user.feign.RemoteUserDeptService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* RemoteUserDeptService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteUserDeptServiceFallback implements FallbackFactory<RemoteUserDeptService> {
|
||||
|
||||
@Override
|
||||
public RemoteUserDeptService create(Throwable throwable) {
|
||||
log.error("RemoteUserDeptService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteUserDeptService() {
|
||||
/**
|
||||
* 同步企业微信家校部门
|
||||
*
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 16:10
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<String> syncUserDept() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理挂在学校下的家校部门
|
||||
*
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 16:11
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<String> dealNoParentUserDept() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询父级家校部门是否存在
|
||||
*
|
||||
* @param deptIdList 家校部门id集合
|
||||
* @param parentWxId 家校部门父级企业微信id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserDept>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 17:49
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduUserDept> getUserDeptByDeptAndWx(List<Long> deptIdList, Long parentWxId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 企业微信创建家校部门
|
||||
*
|
||||
* @param userDept 创建的家校部门信息
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 17:57
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<String> createUserDept(EduUserDept userDept) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据家校部门id查询家校部门信息
|
||||
*
|
||||
* @param deptId 家校部门id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserDept>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/24 15:03
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduUserDept> getByDeptId(Long deptId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询家校部门直接子节点
|
||||
*
|
||||
* @param deptId 家校部门父节点id,不能为空
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.system.Dept>>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/25 11:29
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduUserDept>> findChildByParent(Long deptId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据家校部门id查询上级家校部门信息
|
||||
*
|
||||
* @param deptId 家校部门id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserDept>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/30 10:05
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<EduUserDept> getParentByDeptId(Long deptId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduUserDept>> getParentListByDeptId(Long deptId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量保存家校部门
|
||||
*
|
||||
* @param saveDeptList 批量保存的家校部门数据
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/30 10:14
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<String> updateBatchUserDept(List<EduUserDept> saveDeptList) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 递归删除家校部门
|
||||
*
|
||||
* @param deleteUserDeptDTO 企业微信回调删除本地家校部门请求类
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/30 10:42
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<String> deleteUserDeptRecur(DeleteUserDeptDTO deleteUserDeptDTO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 向上获取部门id到学校,向下获取部门id
|
||||
*
|
||||
* @param deptIds
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<Long>> getUpAndDownId(Long[] deptIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 向上获取部门id到学校
|
||||
*
|
||||
* @param deptIds
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<Long>> getUpId(Long[] deptIds) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 向下获取部门id
|
||||
*
|
||||
* @param deptId
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<Long>> getDownId(Long[] deptId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 向下查询指定家校部门类型的家校部门数据(可查询非直接子家校部门)
|
||||
*
|
||||
* @param parentId
|
||||
* @param type
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduUserDept>> findChildByParentAndType(Long parentId, Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 向下查询指定家校部门类型的家校部门id(可查询非直接子家校部门)
|
||||
* 未毕业家校部门
|
||||
*
|
||||
* @param parentId
|
||||
* @param type
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<List<EduUserDept>> findChildIdByParentAndTypeNoPermission(Long parentId, Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduUserDept>> findListByParent(Long deptId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List> getUserDeptTree(List<Long> deptIds) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduUserDeviceFactory;
|
||||
import com.yida.data.user.feign.RemoteUserDeviceFactoryService;
|
||||
import com.yida.data.user.vo.UserDeviceInfoVO;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* RemoteUserDeviceFactoryService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteUserDeviceFactoryServiceFallback implements FallbackFactory<RemoteUserDeviceFactoryService> {
|
||||
|
||||
@Override
|
||||
public RemoteUserDeviceFactoryService create(Throwable throwable) {
|
||||
log.error("RemoteUserDeviceFactoryService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteUserDeviceFactoryService() {
|
||||
@Override
|
||||
public ResultBean batchSaveUserDeviceFactory(List<EduUserDeviceFactory> userDeviceFactoryList) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过考勤设备方学生的唯一标识查询系统内用户信息
|
||||
*
|
||||
* @param flag
|
||||
* @param type
|
||||
*/
|
||||
@Override
|
||||
public ResultBean<UserDeviceInfoVO> getUserInfoByDevciceFactory(String flag, String type) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduUserDevice;
|
||||
import com.yida.data.user.feign.RemoteUserDeviceService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* RemoteUserDeviceService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteUserDeviceServiceFallback implements FallbackFactory<RemoteUserDeviceService> {
|
||||
|
||||
@Override
|
||||
public RemoteUserDeviceService create(Throwable throwable) {
|
||||
log.error("RemoteUserDeviceService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteUserDeviceService() {
|
||||
@Override
|
||||
public ResultBean batchSave(List<EduUserDevice> list) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<EduUserDevice>> listUserDevice(Long userId, Integer type, Long deviceId, Long faceGroupId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<String> deleteRelation(EduUserDevice userDevice) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.yida.data.user.fallback;
|
||||
|
||||
import com.yida.data.common.core.annotation.Fallback;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.user.EduUserFace;
|
||||
import com.yida.data.user.dto.UpdateFaceGroupUserStatusDTO;
|
||||
import com.yida.data.user.feign.RemoteUserFaceService;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* RemoteUserFaceService fallback处理类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/8/26
|
||||
*/
|
||||
@Slf4j
|
||||
@Fallback
|
||||
public class RemoteUserFaceServiceFallback implements FallbackFactory<RemoteUserFaceService> {
|
||||
|
||||
@Override
|
||||
public RemoteUserFaceService create(Throwable throwable) {
|
||||
log.error("RemoteUserFaceService fallback reason:{}", throwable.getMessage());
|
||||
|
||||
return new RemoteUserFaceService() {
|
||||
@Override
|
||||
public ResultBean<EduUserFace> getFaceByUser(Long userId, Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean delFaceByUser(Long userId, Integer type) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean updateFaceGroupUserStatus(UpdateFaceGroupUserStatusDTO dto) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduCourse;
|
||||
|
||||
import com.yida.data.user.fallback.RemoteCourseServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "courseServiceClient",
|
||||
fallbackFactory = RemoteCourseServiceFallback.class)
|
||||
public interface RemoteCourseService {
|
||||
|
||||
/**
|
||||
* 调用通知接口
|
||||
*/
|
||||
@GetMapping("/course/initCourse")
|
||||
ResultBean initCourse(@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据名称查询科目
|
||||
*/
|
||||
@GetMapping("/course/getCourseByName")
|
||||
ResultBean<EduCourse> getCourseByName(@RequestParam("courseName") String courseName, @RequestParam("schoolId") Long schoolId);
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduFaceGroupDevice;
|
||||
import com.yida.data.common.core.entity.user.EduUserDevice;
|
||||
import com.yida.data.user.fallback.RemoteUserDeviceServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组设备 Feign
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/9/28
|
||||
*/
|
||||
@FeignClient(name = FebsServerConstant.EDU_USER, contextId = "faceGroupDeviceService",
|
||||
fallbackFactory = RemoteUserDeviceServiceFallback.class)
|
||||
public interface RemoteFaceGroupDeviceService {
|
||||
|
||||
/**
|
||||
* 查询人脸组设备id集合
|
||||
*
|
||||
* @param faceGroupId 人脸组id
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < java.lang.Long>>
|
||||
* @author ZYJ
|
||||
* @date 2023/9/28 16:08
|
||||
*/
|
||||
@GetMapping("/in/groupDevice/listFaceGroupOnlineDevice")
|
||||
ResultBean<List<Long>> listFaceGroupOnlineDevice(@RequestParam Long faceGroupId);
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduCourse;
|
||||
import com.yida.data.common.core.entity.user.EduFaceGroupStrategy;
|
||||
import com.yida.data.user.fallback.RemoteCourseServiceFallback;
|
||||
import com.yida.data.user.fallback.RemoteFaceGroupStrategyServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "remoteFaceGroupStrategyServiceClient",
|
||||
fallbackFactory = RemoteFaceGroupStrategyServiceFallback.class)
|
||||
public interface RemoteFaceGroupStrategyService {
|
||||
|
||||
@GetMapping("/in/eduFaceGroupStrategy/getStrategyInfo")
|
||||
ResultBean<EduFaceGroupStrategy> getStrategyInfo(@RequestParam("faceGroupId") Long faceGroupId);
|
||||
}
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduStaff;
|
||||
import com.yida.data.common.core.entity.user.EduStaffDept;
|
||||
import com.yida.data.common.core.entity.user.EduTeacherDept;
|
||||
import com.yida.data.user.dto.ListStaffDTO;
|
||||
import com.yida.data.user.fallback.RemoteStaffServiceFallback;
|
||||
import com.yida.data.user.vo.TeacherClassVO;
|
||||
import com.yida.data.user.vo.TeacherDeptVO;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "StaffServiceClient",
|
||||
fallbackFactory = RemoteStaffServiceFallback.class)
|
||||
public interface RemoteStaffService {
|
||||
|
||||
|
||||
/**
|
||||
* 根据教师id查询教师角色
|
||||
*
|
||||
* @param teacherId 教师id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/staff/findTeacherRole")
|
||||
ResultBean<List<EduTeacherDept>> findTeacherRole(@RequestParam("teacherId") Long teacherId,
|
||||
@RequestParam("type") Integer type);
|
||||
|
||||
/**
|
||||
* 查询教师可见课程
|
||||
*
|
||||
* @param teacherId
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/staff/findTeacherCourseId")
|
||||
ResultBean<List<Long>> findTeacherCourseId(@RequestParam("teacherId") Long teacherId,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据id查询职工信息
|
||||
*/
|
||||
@GetMapping("/in/staff/getStaff")
|
||||
ResultBean<EduStaff> getStaffNoPermission(@RequestParam("id") Long id);
|
||||
|
||||
/**
|
||||
* 通过部门id,名字或者手机号查询员工id
|
||||
*
|
||||
* @param deptId
|
||||
* @param nameOrPhone
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/staff/listStaffByDeptId")
|
||||
ResultBean<List<Long>> listStaffByDeptId(@RequestParam("deptId") @Param("deptId") Long deptId,
|
||||
@RequestParam("nameOrPhone") @Param("nameOrPhone") String nameOrPhone,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
|
||||
@GetMapping("/in/staff/listStaffByDeptId")
|
||||
ResultBean<List<Long>> listStaffByDeptIdNoPermission(@RequestParam("deptId") @Param("deptId") Long deptId,
|
||||
@RequestParam("nameOrPhone") @Param("nameOrPhone") String nameOrPhone,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据条件查询职工列表
|
||||
*/
|
||||
@PostMapping("/in/staff/listStaff")
|
||||
ResultBean<List<EduStaff>> listStaff(@RequestBody ListStaffDTO dto);
|
||||
|
||||
/**
|
||||
* 查询职工信息
|
||||
*/
|
||||
@GetMapping("/in/staff/getStaff")
|
||||
ResultBean<EduStaff> getStaff(@RequestParam("id") Long id);
|
||||
|
||||
/**
|
||||
* 查询职工部门信息
|
||||
*
|
||||
* @param staffIds
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/staff/getStaffDeptByStaffIds")
|
||||
ResultBean<List<EduStaffDept>> getStaffDeptByStaffIds(@ApiParam("职工id") @RequestBody List<Long> staffIds);
|
||||
|
||||
@PostMapping("/in/staff/getStaffDeptByStaffIds")
|
||||
ResultBean<List<EduStaffDept>> getStaffDeptByStaffIdsNoPermission(@ApiParam("职工id") @RequestBody List<Long> staffIds);
|
||||
|
||||
@GetMapping("/in/staff/syncQywxStaff")
|
||||
ResultBean syncQywxStaff();
|
||||
|
||||
|
||||
/**
|
||||
* 初始化职工信息
|
||||
*/
|
||||
@PostMapping("/staff/initStaff")
|
||||
ResultBean initStaff(@RequestBody List<EduStaff> teacherList);
|
||||
|
||||
/**
|
||||
* 根据职工微信id查询职工信息
|
||||
*/
|
||||
@GetMapping("/in/staff/getStaffByWxOrMobileOrOpenId")
|
||||
ResultBean<EduStaff> getStaffByWxOrMobileOrOpenId(@RequestParam("wxId") String wxId,
|
||||
@RequestParam("mobile") String mobile,
|
||||
@RequestParam("wxOpenId") String wxOpenId,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 处理企业微信职工删除
|
||||
*/
|
||||
@GetMapping("/in/staff/dealWxUserDelete")
|
||||
ResultBean dealWxUserDelete(@RequestParam("wxId") String wxId,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
@GetMapping("/in/staff/getStaffByDahua")
|
||||
ResultBean<EduStaff> getStaffByDahuaNoPermission(@RequestParam("dahuaCode") String dahuaCode);
|
||||
|
||||
/**
|
||||
* 查询教师可见班级
|
||||
*
|
||||
* @param teacherId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/staff/listClassByTeacher")
|
||||
ResultBean<List<TeacherClassVO>> listClassByTeacher(@RequestParam("teacherId") Long teacherId);
|
||||
|
||||
/**
|
||||
* 保存职工openId
|
||||
*
|
||||
* @param staffId 职工id
|
||||
* @param openId 微信openId
|
||||
* @return com.yida.data.common.core.common.ResultBean
|
||||
* @author ZYJ
|
||||
* @date 2022/9/22 16:17
|
||||
*/
|
||||
@GetMapping("/in/staff/saveWxPublicOpenId")
|
||||
ResultBean saveWxPublicOpenId(@RequestParam("staffId") Long staffId,
|
||||
@RequestParam("openId") String openId);
|
||||
|
||||
|
||||
@GetMapping("/in/staff/listStaffRolesByStaffId")
|
||||
ResultBean<List<Integer>> listStaffRolesByStaffId(@RequestParam("staffId") Long staffId);
|
||||
|
||||
/**
|
||||
* 根据职工id集合查询职工信息
|
||||
*
|
||||
* @param staffIds 职工id集合
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.user.EduStaff>>
|
||||
* @author ZYJ
|
||||
* @date 2023/6/8 17:24
|
||||
*/
|
||||
@PostMapping("/staff/getStaffList")
|
||||
ResultBean<List<EduStaff>> getStaffList(@RequestBody List<Long> staffIds);
|
||||
|
||||
/**
|
||||
* 更新职工信息缓存
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("in/staff/updateStaffCache")
|
||||
ResultBean updateStaffCache();
|
||||
|
||||
/**
|
||||
* 查询职工管理班级
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("in/staff/listClassIdByStaffId")
|
||||
ResultBean<List<Long>> listClassIdByStaffId();
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduStudentApply;
|
||||
import com.yida.data.user.fallback.RemoteStudentApplyServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "studentApplyServiceClient",
|
||||
fallbackFactory = RemoteStudentApplyServiceFallback.class)
|
||||
public interface RemoteStudentApplyService {
|
||||
|
||||
@GetMapping("/in/transaction/studentApply/listApply")
|
||||
ResultBean<Map<Long, List<String>>> listApplyCode(@RequestParam("studentIds") Long[] studentIds);
|
||||
|
||||
@GetMapping("/transaction/studentApply/hasApply")
|
||||
ResultBean<Boolean> hasApply(@RequestParam("studentId") Long studentId,
|
||||
@RequestParam("applyCode") String applyCode);
|
||||
|
||||
@GetMapping("/transaction/studentApply/getStudentApplyByIdAndCode")
|
||||
ResultBean<EduStudentApply> getStudentApply(@RequestParam("studentId") Long studentId,
|
||||
@RequestParam("applyCode") String applyCode);
|
||||
}
|
||||
+287
@@ -0,0 +1,287 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.message.EduMessageStrategy;
|
||||
import com.yida.data.common.core.entity.user.EduParent;
|
||||
import com.yida.data.common.core.entity.user.EduStudent;
|
||||
import com.yida.data.school.dto.transaction.ListBuyStudentDTO;
|
||||
import com.yida.data.user.dto.ListStudentDTO;
|
||||
import com.yida.data.user.fallback.RemoteStudentServiceFallback;
|
||||
import com.yida.data.user.vo.ListParentByStudentIdsVO;
|
||||
import com.yida.data.user.vo.ParentInfoVO;
|
||||
import com.yida.data.user.vo.StudentClassInfoVO;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "studentServiceClient",
|
||||
fallbackFactory = RemoteStudentServiceFallback.class)
|
||||
public interface RemoteStudentService {
|
||||
|
||||
/**
|
||||
* 根据学生id查询学生
|
||||
*/
|
||||
@GetMapping("/in/student/getStudent")
|
||||
ResultBean<EduStudent> getStudentNoPermission(@RequestParam("studentId") Long id);
|
||||
|
||||
|
||||
/**
|
||||
* 根据学生Id查询学生部门信息
|
||||
*/
|
||||
@PostMapping("/in/student/getStudentDeptByIds")
|
||||
ResultBean<List<EduStudent>> getStudentDeptByIds(@RequestBody List<Long> studentIdList);
|
||||
|
||||
/**
|
||||
* 处理响应的学生更新事件
|
||||
*/
|
||||
@PostMapping("/in/student/dealWxStudentChange")
|
||||
ResultBean dealStudentWxChange(@RequestBody EduStudent student);
|
||||
|
||||
/**
|
||||
* 处理响应的学生删除事件
|
||||
*/
|
||||
@GetMapping("/in/student/dealWxStudentDelete")
|
||||
ResultBean dealStudentWxDelete(@RequestParam("wxId") String wxId, @RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 处理响应的家长更新事件
|
||||
*/
|
||||
@PostMapping("/in/student/dealWxParentChange")
|
||||
ResultBean dealParentWxChange(@RequestBody EduParent eduParent, @RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 处理响应的家长删除事件
|
||||
*/
|
||||
@GetMapping("/in/student/dealWxParentDelete")
|
||||
ResultBean dealParentWxDelete(@RequestParam("wxId") String wxId,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
@GetMapping("/in/student/getParentWithStudent")
|
||||
ResultBean<ParentInfoVO> getParentWithStudent(@RequestParam("mobile") String mobile,
|
||||
@RequestParam("wxId") String wxId,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 初始化学生列表-不进行判断直接新增学生
|
||||
*/
|
||||
@PostMapping("/in/student/initStudent")
|
||||
ResultBean initStudent(@RequestBody List<EduStudent> student);
|
||||
|
||||
/**
|
||||
* 根据家长id查询学生
|
||||
*/
|
||||
@GetMapping("/student/listStudentByParent")
|
||||
ResultBean<List<EduStudent>> listStudentByParent(@RequestParam("parentId") Long parentId);
|
||||
|
||||
/**
|
||||
* 根据学生查询班级信息
|
||||
*/
|
||||
@GetMapping("/student/getClassInfoByStudent")
|
||||
ResultBean<StudentClassInfoVO> getClassInfoByStudent(@RequestParam("studentId") Long studentId,
|
||||
@RequestParam("parentMobile") String parentMobile);
|
||||
|
||||
/**
|
||||
* 根据学号和学校查询学生
|
||||
*/
|
||||
@GetMapping("/in/student/getStudentByStuNumAndSchool")
|
||||
ResultBean<EduStudent> getStudentByStuNumAndSchool(@RequestParam("stuNumber") String stuNumber,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据年级id、学生名称、班级名称查询学生
|
||||
*/
|
||||
@GetMapping("/in/student/listStudentByGradeAndClass")
|
||||
ResultBean<List<EduStudent>> listStudentByGradeAndClass(@RequestParam("studentName") String studentName,
|
||||
@RequestParam("className") String className,
|
||||
@RequestParam("gradeId") Long gradeId);
|
||||
|
||||
/**
|
||||
* 根据教师电话、学校查询家长列表
|
||||
*/
|
||||
@GetMapping("/student/listParentByTeacher")
|
||||
ResultBean<List<ParentInfoVO>> listParentByTeacher(@RequestParam("teacherId") Long teacherId,
|
||||
@RequestParam("parentName") String parentName);
|
||||
|
||||
@GetMapping("/in/student/saveYidaAppUserId")
|
||||
ResultBean saveYidaAppUserId(@RequestParam("parentId") Long parentId,
|
||||
@RequestParam("yidaAppUserId") String yidaAppUserId);
|
||||
|
||||
/**
|
||||
* 保存家长openId
|
||||
*
|
||||
* @param parentId 家长id
|
||||
* @param openId 微信openId
|
||||
* @return com.yida.data.common.core.common.ResultBean
|
||||
* @author ZYJ
|
||||
* @date 2022/9/22 16:17
|
||||
*/
|
||||
@GetMapping("/in/student/saveWxPublicOpenId")
|
||||
ResultBean saveWxPublicOpenId(@RequestParam("parentId") Long parentId,
|
||||
@RequestParam("openId") String openId);
|
||||
|
||||
/**
|
||||
* 查询用户企业微信Id
|
||||
*
|
||||
* @param phone
|
||||
* @param schoolId
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/student/getParentByPhoneAndSchoolId")
|
||||
ResultBean<List<String>> getParentByPhoneAndSchoolId(@RequestBody List<String> phone, @RequestParam Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据学校id查询当前学校的自动回复消息
|
||||
*
|
||||
* @param schoolId 学校id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.message.EduMessageStrategy>
|
||||
* @author ZYJ
|
||||
* @date 2021/8/25 17:36
|
||||
*/
|
||||
@GetMapping("/in/schoolMessage/getEduMessageStrategyBySchoolId")
|
||||
ResultBean<EduMessageStrategy> getEduMessageStrategyBySchoolId(@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 查询未购买该商品的学生
|
||||
*
|
||||
* @param listBuyStudentDTO
|
||||
* @return 学生列表
|
||||
*/
|
||||
@PostMapping("/student/listNotBuyStudent")
|
||||
ResultBean<Page<EduStudent>> listNotBuyStudent(@RequestBody ListBuyStudentDTO listBuyStudentDTO);
|
||||
|
||||
/**
|
||||
* 查询未购买该商品的学生
|
||||
*
|
||||
* @param listBuyStudentDTO
|
||||
* @return 学生列表
|
||||
*/
|
||||
@PostMapping("in/student/listAllNotBuyStudent")
|
||||
ResultBean<List<EduStudent>> listAllNotBuyStudent(@RequestBody ListBuyStudentDTO listBuyStudentDTO);
|
||||
|
||||
/**
|
||||
* 通过学生id查询家长WxId
|
||||
*
|
||||
* @param studentId
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("in/student/findParentWxId")
|
||||
ResultBean<List<String>> findParentWxId(@RequestBody List<Long> studentId);
|
||||
|
||||
/**
|
||||
* 通过学生id查询学生信息,和家长信息
|
||||
*
|
||||
* @param studentIds
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("student/listParentByStudentIds")
|
||||
ResultBean<List<ListParentByStudentIdsVO>> listParentByStudentIds(@RequestBody List<Long> studentIds);
|
||||
|
||||
@GetMapping("/in/student/syncQywxStudent")
|
||||
ResultBean syncQywxStudent();
|
||||
|
||||
/**
|
||||
* 根据条件查询学生列表
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/in/student/listStudent")
|
||||
ResultBean<List<EduStudent>> listStudent(@RequestBody ListStudentDTO dto);
|
||||
|
||||
|
||||
@PostMapping(value = "/in/student/listStudentByClassId")
|
||||
ResultBean<List<EduStudent>> listStudentByClassId(@RequestBody ListStudentDTO dto);
|
||||
|
||||
/**
|
||||
* 更新学生在校离校状态
|
||||
*/
|
||||
@GetMapping("/in/student/updateStudentStatus")
|
||||
ResultBean updateStudentStatus(@RequestParam("studentId") Long studentId,
|
||||
@RequestParam("status") Integer status,
|
||||
@RequestParam("dormStatus") Integer dormStatus);
|
||||
|
||||
/**
|
||||
* 接触学生与寝室的绑定
|
||||
*
|
||||
* @param dormIds
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/student/unbindDormRoom")
|
||||
ResultBean unbindDormRoom(@RequestBody List<Long> dormIds);
|
||||
|
||||
@GetMapping("/in/student/getStudentByDahua")
|
||||
ResultBean<EduStudent> getStudentByDahuaNoPermission(@RequestParam("dahuaCode") String dahuaCode);
|
||||
|
||||
/**
|
||||
* 根据学生表字段查询学生id信息
|
||||
*
|
||||
* @param eduStudent 查询条件
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < java.lang.Long>>
|
||||
* @author ZYJ
|
||||
* @date 2022/3/29 9:29
|
||||
*/
|
||||
@PostMapping(value = "/in/student/listBaseStudentIds")
|
||||
ResultBean<List<Long>> listBaseStudentIds(@RequestBody EduStudent eduStudent);
|
||||
|
||||
/**
|
||||
* 根据学生表字段查询学生列表信息
|
||||
*
|
||||
* @param eduStudent 查询条件
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.user.EduStudent>>
|
||||
* @author ZYJ
|
||||
* @date 2022/3/29 13:58
|
||||
*/
|
||||
@PostMapping(value = "/in/student/listBaseStudent")
|
||||
ResultBean<List<EduStudent>> listBaseStudent(@RequestBody EduStudent eduStudent);
|
||||
|
||||
|
||||
/**
|
||||
* 单表查询学生信息
|
||||
*
|
||||
* @param eduStudent
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/in/student/listBaseStudentNoJoin")
|
||||
ResultBean<List<EduStudent>> listBaseStudentNoJoin(@RequestBody EduStudent eduStudent);
|
||||
|
||||
/**
|
||||
* 查询校园大数据的人员统计数据
|
||||
*
|
||||
* @param schoolId 学校id
|
||||
* @return com.yida.data.common.core.common.ResultBean<cn.hutool.json.JSONObject>
|
||||
* @author ZYJ
|
||||
* @date 2023/4/24 15:09
|
||||
*/
|
||||
@GetMapping(value = "/in/student/countUserDashboardNum")
|
||||
ResultBean<JSONObject> countUserDashboardNum(@RequestParam Long schoolId);
|
||||
|
||||
|
||||
/**
|
||||
* 新增/编辑学生
|
||||
*
|
||||
* @param eduStudent
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("out/student/saveStudent")
|
||||
ResultBean<EduStudent> saveStudent(@RequestBody EduStudent eduStudent);
|
||||
|
||||
@PostMapping("in/student/saveStudentDorm")
|
||||
ResultBean saveStudentDorm(@RequestBody EduStudent eduStudent);
|
||||
|
||||
/**
|
||||
* 更新学生信息缓存
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("in/student/updateStudentCache")
|
||||
ResultBean updateStudentCache();
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduStaff;
|
||||
import com.yida.data.common.core.entity.user.EduTeacherDept;
|
||||
import com.yida.data.user.fallback.RemoteTeacherServiceFallback;
|
||||
import com.yida.data.user.vo.TeacherCourseInfoVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "teacherServiceClient",
|
||||
fallbackFactory = RemoteTeacherServiceFallback.class)
|
||||
public interface RemoteTeacherService {
|
||||
|
||||
/**
|
||||
* 更新教师信息
|
||||
*/
|
||||
@PostMapping("/in/staff/dealWxTeacherChange")
|
||||
ResultBean dealWxTeacherChange(@RequestParam("schoolId") Long schoolId,
|
||||
@RequestParam("campusId") Long campusId,
|
||||
@RequestParam("sectionId") Long sectionId,
|
||||
@RequestParam("gradeId") Long gradeId,
|
||||
@RequestParam("classId") Long classId,
|
||||
@RequestBody List<Map> teacherList,
|
||||
@RequestParam("deptWxId") Long deptWxId);
|
||||
|
||||
/**
|
||||
* 根据教师微信id查询教师信息
|
||||
*/
|
||||
@GetMapping("/in/staff/getStaffByWxId")
|
||||
ResultBean<EduStaff> getTeacherByWx(@RequestParam("wxId") String wxId,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据手机号查询教师
|
||||
*/
|
||||
@GetMapping("/in/staff/getTeacherByMobileAndSchool")
|
||||
ResultBean<EduStaff> getTeacherByMobileAndSchool(@RequestParam("mobile") String mobile,
|
||||
@RequestParam("schoolId") Long schoolId);
|
||||
|
||||
/**
|
||||
* 根据学校和微信更新或新增教师
|
||||
*/
|
||||
@PostMapping("/in/staff/saveStaffBySchoolAndWx")
|
||||
ResultBean saveStaffBySchoolAndWx(@RequestBody EduStaff eduStaff);
|
||||
|
||||
/**
|
||||
* 根据家长手机号、学校查询学生班级的老师
|
||||
*/
|
||||
@GetMapping("/staff/listTeacherByParent")
|
||||
ResultBean<List<EduStaff>> listTeacherByParent(@RequestParam("parentId") Long parentId,
|
||||
@RequestParam("teacherName") String teacherName);
|
||||
|
||||
@GetMapping("/staff/listTeacherBySchool")
|
||||
ResultBean<List<EduStaff>> listTeacherBySchool(@RequestParam("schoolId") Long schoolId, @RequestParam(
|
||||
"name") String name);
|
||||
|
||||
/**
|
||||
* 保存易达appId
|
||||
*/
|
||||
@GetMapping("/in/staff/saveYidaAppUserId")
|
||||
ResultBean saveYidaAppUserId(@RequestParam("staffId") Long staffId,
|
||||
@RequestParam("yidaAppUserId") String yidaAppUserId);
|
||||
|
||||
/**
|
||||
* 按年级或者班级查询教师任课信息
|
||||
*/
|
||||
@GetMapping("/staff/listTeacherCourseByGrade")
|
||||
ResultBean<List<TeacherCourseInfoVO>> listTeacherCourseByGrade(@RequestParam("gradeId") Long gradeId,
|
||||
@RequestParam("classId") Long classId);
|
||||
|
||||
/**
|
||||
* 根据班级和名称查询教师
|
||||
*/
|
||||
@GetMapping("/staff/listTeacherByClassAndName")
|
||||
ResultBean<List<EduStaff>> listTeacherByClassAndName(@RequestParam("classId") Long classId,
|
||||
@RequestParam("name") String name);
|
||||
|
||||
/**
|
||||
* 查询教师对应部门
|
||||
*
|
||||
* @param teacherId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/staff/listTeacherDeptByTeacher")
|
||||
ResultBean<List<EduTeacherDept>> listTeacherDeptByTeacher(@RequestParam("teacherId") Long teacherId);
|
||||
|
||||
/**
|
||||
* 根据家校部门id和类型查询对应教师信息
|
||||
*
|
||||
* @param deptId 家校部门id
|
||||
* @param type 教师类型 1表示校区负责人,2表示年级负责人,3表示班主任,4表示任课老师,5表示学段负责人
|
||||
* 1表示班级,2表示年级,3表示学段,4表示校区
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.user.EduStaff>>
|
||||
* @author ZYJ
|
||||
* @date 2022/7/15 17:48
|
||||
*/
|
||||
@GetMapping("/in/staff/listTeacherByDeptId")
|
||||
ResultBean<List<EduStaff>> listTeacherByDeptId(@RequestParam("deptId") Long deptId,
|
||||
@RequestParam("type") String type);
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduUserDept;
|
||||
import com.yida.data.user.dto.DeleteUserDeptDTO;
|
||||
import com.yida.data.user.fallback.RemoteUserDeptServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 家校部门远程调用
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021-11-22
|
||||
*/
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "userDeptServiceClient",
|
||||
fallbackFactory = RemoteUserDeptServiceFallback.class)
|
||||
public interface RemoteUserDeptService {
|
||||
|
||||
/**
|
||||
* 同步企业微信家校部门
|
||||
*
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 16:10
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/syncUserDept")
|
||||
ResultBean<String> syncUserDept();
|
||||
|
||||
/**
|
||||
* 处理挂在学校下的家校部门
|
||||
*
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 16:11
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/dealNoParentUserDept")
|
||||
ResultBean<String> dealNoParentUserDept();
|
||||
|
||||
/**
|
||||
* 查询父级家校部门是否存在
|
||||
*
|
||||
* @param deptIdList 家校部门id集合
|
||||
* @param parentWxId 家校部门父级企业微信id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserDept>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 17:49
|
||||
*/
|
||||
@PostMapping("/in/eduUserDept/getUserDeptByDeptAndWx")
|
||||
ResultBean<EduUserDept> getUserDeptByDeptAndWx(@RequestBody List<Long> deptIdList, @RequestParam Long parentWxId);
|
||||
|
||||
/**
|
||||
* 企业微信创建家校部门
|
||||
*
|
||||
* @param userDept 创建的家校部门信息
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/22 17:57
|
||||
*/
|
||||
@PostMapping("/in/eduUserDept/createUserDept")
|
||||
ResultBean<String> createUserDept(@RequestBody EduUserDept userDept);
|
||||
|
||||
/**
|
||||
* 根据家校部门id查询家校部门信息
|
||||
*
|
||||
* @param deptId 家校部门id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserDept>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/24 15:03
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/getByDeptId")
|
||||
ResultBean<EduUserDept> getByDeptId(@RequestParam Long deptId);
|
||||
|
||||
/**
|
||||
* 查询家校部门直接子节点
|
||||
*
|
||||
* @param deptId 家校部门父节点id,不能为空
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.system.Dept>>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/25 11:29
|
||||
*/
|
||||
@GetMapping("/eduUserDept/findChildByParent")
|
||||
ResultBean<List<EduUserDept>> findChildByParent(@RequestParam Long deptId);
|
||||
|
||||
/**
|
||||
* 根据家校部门id查询上级家校部门信息
|
||||
*
|
||||
* @param deptId 家校部门id
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserDept>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/30 10:05
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/getParentByDeptId")
|
||||
ResultBean<EduUserDept> getParentByDeptId(@RequestParam Long deptId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据家校部门id查询全部上级家校部门信息
|
||||
*
|
||||
* @param deptId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/getParentListByDeptId")
|
||||
ResultBean<List<EduUserDept>> getParentListByDeptId(@RequestParam Long deptId);
|
||||
|
||||
/**
|
||||
* 批量保存家校部门
|
||||
*
|
||||
* @param saveDeptList 批量保存的家校部门数据
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/30 10:14
|
||||
*/
|
||||
@PostMapping("/in/eduUserDept/updateBatchUserDept")
|
||||
ResultBean<String> updateBatchUserDept(@RequestBody List<EduUserDept> saveDeptList);
|
||||
|
||||
/**
|
||||
* 递归删除家校部门
|
||||
*
|
||||
* @param deleteUserDeptDTO 企业微信回调删除本地家校部门请求类
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2021/11/30 10:42
|
||||
*/
|
||||
@PostMapping("/in/eduUserDept/deleteUserDeptRecur")
|
||||
ResultBean<String> deleteUserDeptRecur(@RequestBody DeleteUserDeptDTO deleteUserDeptDTO);
|
||||
|
||||
/**
|
||||
* 向上获取部门id到学校,向下获取部门id
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/getUpAndDownId")
|
||||
ResultBean<List<Long>> getUpAndDownId(@RequestParam("deptIds") Long[] deptIds);
|
||||
|
||||
/**
|
||||
* 向上获取部门id到学校
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/getUpId")
|
||||
ResultBean<List<Long>> getUpId(@RequestParam("deptIds") Long[] deptIds);
|
||||
|
||||
/**
|
||||
* 向下获取部门id
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/getDownId")
|
||||
ResultBean<List<Long>> getDownId(@RequestParam("deptIds") Long[] deptId);
|
||||
|
||||
/**
|
||||
* 向下查询指定家校部门类型的家校部门数据(可查询非直接子家校部门)
|
||||
*/
|
||||
@GetMapping("/eduUserDept/findChildByParentAndType")
|
||||
ResultBean<List<EduUserDept>> findChildByParentAndType(@RequestParam Long parentId, @RequestParam Integer type);
|
||||
|
||||
/**
|
||||
* 向下查询指定家校部门类型的家校部门id(可查询非直接子家校部门) 未毕业家校部门
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/findChildIdByParentAndType")
|
||||
ResultBean<List<EduUserDept>> findChildIdByParentAndTypeNoPermission(@RequestParam Long parentId, @RequestParam Integer type);
|
||||
|
||||
/**
|
||||
* 向下查询指定家校部门类型的家校部门id(可查询非直接子家校部门) 未毕业家校部门
|
||||
*/
|
||||
@GetMapping("/in/eduUserDept/findListByParent")
|
||||
ResultBean<List<EduUserDept>> findListByParent(@RequestParam Long deptId);
|
||||
|
||||
|
||||
/**
|
||||
* 获取家校部门树
|
||||
*
|
||||
* @param deptIds
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("in/eduUserDept/getUserDeptTree")
|
||||
ResultBean<List> getUserDeptTree(@RequestBody List<Long> deptIds);
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduUserDeviceFactory;
|
||||
import com.yida.data.user.fallback.RemoteUserDeviceFactoryServiceFallback;
|
||||
import com.yida.data.user.vo.UserDeviceInfoVO;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(value = FebsServerConstant.EDU_USER, contextId = "userDeviceFactoryService",
|
||||
fallbackFactory = RemoteUserDeviceFactoryServiceFallback.class)
|
||||
public interface RemoteUserDeviceFactoryService {
|
||||
|
||||
@PostMapping("/in/userDeviceFactory/batchSave")
|
||||
ResultBean batchSaveUserDeviceFactory(@RequestBody List<EduUserDeviceFactory> userDeviceFactoryList);
|
||||
|
||||
/**
|
||||
* 通过考勤设备方学生的唯一标识查询系统内用户信息
|
||||
*/
|
||||
@GetMapping("/in/userDeviceFactory/getUserInfoByDevciceFactory")
|
||||
ResultBean<UserDeviceInfoVO> getUserInfoByDevciceFactory(@RequestParam("flag") String flag,
|
||||
@RequestParam("type") String type);
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduUserDevice;
|
||||
|
||||
import com.yida.data.user.fallback.RemoteUserDeviceServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(name = FebsServerConstant.EDU_USER, contextId = "userDeviceService",
|
||||
fallbackFactory = RemoteUserDeviceServiceFallback.class)
|
||||
public interface RemoteUserDeviceService {
|
||||
|
||||
@PostMapping("/in/userDevice/batchSave")
|
||||
ResultBean batchSave(@RequestBody List<EduUserDevice> list);
|
||||
|
||||
/**
|
||||
* 获取设备和人员关联信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param type 用户类型. 0-学生,1-职工
|
||||
* @param deviceId 设备id
|
||||
* @param faceGroupId 人脸组id
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.util.List < com.yida.data.common.core.entity.user.EduUserDevice>>
|
||||
* @author ZYJ
|
||||
* @date 2023/2/3 17:21
|
||||
*/
|
||||
@GetMapping("/in/userDevice/listUserDevice")
|
||||
ResultBean<List<EduUserDevice>> listUserDevice(@RequestParam Long userId,
|
||||
@RequestParam Integer type,
|
||||
@RequestParam Long deviceId,
|
||||
@RequestParam Long faceGroupId);
|
||||
|
||||
/**
|
||||
* 删除设备和人员关联信息
|
||||
*
|
||||
* @param userDevice 删除信息
|
||||
* @return com.yida.data.common.core.common.ResultBean<java.lang.String>
|
||||
* @author ZYJ
|
||||
* @date 2023/2/23 17:32
|
||||
*/
|
||||
@PostMapping("/in/userDevice/deleteRelation")
|
||||
ResultBean<String> deleteRelation(@RequestBody EduUserDevice userDevice);
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.yida.data.user.feign;
|
||||
|
||||
import com.yida.data.common.core.common.ResultBean;
|
||||
import com.yida.data.common.core.entity.constant.FebsServerConstant;
|
||||
import com.yida.data.common.core.entity.user.EduUserFace;
|
||||
import com.yida.data.user.dto.UpdateFaceGroupUserStatusDTO;
|
||||
|
||||
import com.yida.data.user.fallback.RemoteUserFaceServiceFallback;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
@FeignClient(name = FebsServerConstant.EDU_USER, contextId = "userFaceService",
|
||||
fallbackFactory = RemoteUserFaceServiceFallback.class)
|
||||
public interface RemoteUserFaceService {
|
||||
|
||||
/**
|
||||
* 获取用户人脸信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param type 用户类型,0-学生,1-职工
|
||||
* @return com.yida.data.common.core.common.ResultBean<com.yida.data.common.core.entity.user.EduUserFace>
|
||||
* @author ZYJ
|
||||
* @date 2023/2/2 16:59
|
||||
*/
|
||||
@GetMapping("/in/face/getFaceByUser")
|
||||
ResultBean<EduUserFace> getFaceByUser(@RequestParam("userId") Long userId,
|
||||
@RequestParam("type") Integer type);
|
||||
|
||||
@GetMapping("/in/face/delFaceByUser")
|
||||
ResultBean delFaceByUser(@RequestParam("userId") Long userId,
|
||||
@RequestParam("type") Integer type);
|
||||
|
||||
@PostMapping("/in/face/updateFaceGroupUserStatus")
|
||||
ResultBean updateFaceGroupUserStatus(@RequestBody UpdateFaceGroupUserStatusDTO dto);
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AllDeptInfoVO {
|
||||
|
||||
|
||||
private Long campusId;
|
||||
|
||||
private String campusName;
|
||||
|
||||
private Long sectionId;
|
||||
|
||||
private String sectionName;
|
||||
|
||||
private Long gradeId;
|
||||
|
||||
private String gradeName;
|
||||
|
||||
private Long classId;
|
||||
|
||||
private String className;
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 验证学生信息成功后返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/19
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@ApiModel(value = "CheckStudentInformationReturnVO", description = "验证学生信息成功后返回类")
|
||||
public class CheckStudentInformationReturnVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -193047885809783467L;
|
||||
|
||||
/**
|
||||
* 学生id
|
||||
*/
|
||||
@ApiModelProperty(value = "学生id")
|
||||
private Long studentId;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生身份证号码
|
||||
*/
|
||||
@ApiModelProperty(value = "学生身份证号码")
|
||||
private String studentIdCard;
|
||||
|
||||
/**
|
||||
* 学校名称
|
||||
*/
|
||||
@ApiModelProperty("学校名称")
|
||||
private String schoolName;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
@ApiModelProperty("校区名称")
|
||||
private String campusName;
|
||||
|
||||
/**
|
||||
* 学段名称
|
||||
*/
|
||||
@ApiModelProperty("学段名称")
|
||||
private String sectionName;
|
||||
|
||||
/**
|
||||
* 年级名称
|
||||
*/
|
||||
@ApiModelProperty("年级名称")
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ApiModelProperty("班级名称")
|
||||
private String className;
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.yida.data.common.core.entity.user.EduStudent;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ClassAttendanceDataVO {
|
||||
|
||||
/**
|
||||
* 宿舍名称/班级名称
|
||||
*/
|
||||
@ApiModelProperty(value = "班级ID")
|
||||
private Long classId;
|
||||
/**
|
||||
* 宿舍名称/班级名称
|
||||
*/
|
||||
@ApiModelProperty(value = "类型:0班级,1宿舍")
|
||||
private Integer type;
|
||||
/**
|
||||
* 宿舍名称/班级名称
|
||||
*/
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
/**
|
||||
* 总人数
|
||||
*/
|
||||
@ApiModelProperty(value = "总人数")
|
||||
private Integer totalNum;
|
||||
/**
|
||||
* 已采集人数
|
||||
*/
|
||||
@ApiModelProperty(value = "异常人数")
|
||||
private Integer abnormalNum;
|
||||
/**
|
||||
* 关联学生数据
|
||||
*/
|
||||
@ApiModelProperty(value = "关联学生数据")
|
||||
private List<Object> studentList;
|
||||
/**
|
||||
* 考勤时段ID
|
||||
*/
|
||||
@ApiModelProperty(value = "考勤时段ID")
|
||||
private Long ruleTimeId;
|
||||
|
||||
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.yida.data.common.core.entity.user.EduStudent;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
@Data
|
||||
@SuperBuilder
|
||||
public class CollectDataVO extends TeacherClassVO {
|
||||
|
||||
/**
|
||||
* 总人数
|
||||
*/
|
||||
@ApiModelProperty(value = "总人数")
|
||||
private Long totalNum;
|
||||
/**
|
||||
* 已采集人数
|
||||
*/
|
||||
@ApiModelProperty(value = "已采集人数")
|
||||
private Long collectNum;
|
||||
|
||||
@ApiModelProperty(value = "已采集人数")
|
||||
private List<EduStudent> studentList;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DeptManagetVO {
|
||||
|
||||
@ApiModelProperty("部门Id")
|
||||
private Long deptId;
|
||||
@ApiModelProperty("部门名称")
|
||||
private String deptName;
|
||||
@ApiModelProperty("部门管理员")
|
||||
private List<ManagerVo> managerVoList;
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DormAttendanceStatusCountVO {
|
||||
|
||||
private Integer normal;
|
||||
|
||||
private Integer late;
|
||||
|
||||
private Integer notArrive;
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class DownLoadPicVO {
|
||||
|
||||
@ApiModelProperty("文件名称")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty("进度 0-100")
|
||||
private Integer percent;
|
||||
|
||||
@ApiModelProperty("是否上传完成,0-否,1-是")
|
||||
private Integer finish;
|
||||
|
||||
@ApiModelProperty("下载总数")
|
||||
private Integer totalNum;
|
||||
|
||||
@ApiModelProperty("当前下载到第几个")
|
||||
private Integer currentNum;
|
||||
|
||||
@ApiModelProperty("错误文件路径")
|
||||
private String failPath;
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 下载职工通行记录进度-实体
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class DownLoadStaffAttendanceRecordVO {
|
||||
|
||||
@ApiModelProperty("本次操作标识")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty("进度 0-100")
|
||||
private Integer percent;
|
||||
|
||||
@ApiModelProperty("是否下载完成,0-否,1-是")
|
||||
private Integer finish;
|
||||
|
||||
@ApiModelProperty("下载总数")
|
||||
private Integer totalNum;
|
||||
|
||||
@ApiModelProperty("当前下载到第几个")
|
||||
private Integer currentNum;
|
||||
|
||||
@ApiModelProperty("错误文件路径")
|
||||
private String filePath;
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName EduMessageStrategyVo
|
||||
* @Description TODO
|
||||
* @Author jianMingWang
|
||||
* @Date 2021/8/23 19:54
|
||||
* @Version 1.0
|
||||
**/
|
||||
@ApiModel("关注回复信息")
|
||||
@Data
|
||||
public class EduMessageStrategyVo implements Serializable {
|
||||
private static final long serialVersionUID = 3402319388861031699L;
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
public Integer id;
|
||||
@ApiModelProperty(value = "回复内容")
|
||||
public String content;
|
||||
@ApiModelProperty(value = "学校ID")
|
||||
public Integer schoolId;
|
||||
|
||||
@ApiModelProperty(value = "类型:1:关注自动回复,2:关键词回复,3:收到消息回复")
|
||||
public Integer type;
|
||||
@ApiModelProperty(value = "子类型,1=智慧迎新关注回复")
|
||||
public Integer subType;
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @ClassName EduSchoolStudentInformationVo
|
||||
* @Description TODO
|
||||
* @Author jianMingWang
|
||||
* @Date 2021/8/21 16:09
|
||||
* @Version 1.0
|
||||
**/
|
||||
|
||||
@ApiModel("学生报到数量信息")
|
||||
@Data
|
||||
public class EduSchoolStudentInNumformationVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3324192023547093406L;
|
||||
|
||||
/***
|
||||
* 学生总数
|
||||
**/
|
||||
@ApiModelProperty(value = "学生总数")
|
||||
private Integer totalNum;
|
||||
|
||||
/***
|
||||
* 已报到学生人数
|
||||
**/
|
||||
@ApiModelProperty(value = "已报到学生人数")
|
||||
private Integer checkNum;
|
||||
|
||||
/***
|
||||
* 未报到学生人数
|
||||
**/
|
||||
@ApiModelProperty(value = "未报到学生人数")
|
||||
private Integer noCheckNum;
|
||||
|
||||
public EduSchoolStudentInNumformationVo(Integer totalNum, Integer checkNum) {
|
||||
this.totalNum = totalNum;
|
||||
this.checkNum = checkNum;
|
||||
this.noCheckNum = totalNum - checkNum;
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @ClassName EduSchoolStudentInformationVo
|
||||
* @Description TODO
|
||||
* @Author jianMingWang
|
||||
* @Date 2021/8/21 16:09
|
||||
* @Version 1.0
|
||||
**/
|
||||
|
||||
@ApiModel("学生报到信息")
|
||||
@Data
|
||||
public class EduSchoolStudentInformationVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7726717952415984551L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
private Long id;
|
||||
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private String studentName;
|
||||
|
||||
/**
|
||||
* 学生身份证号码
|
||||
*/
|
||||
@ApiModelProperty(value = "学生身份证号码")
|
||||
private String studentIdCard;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
@ApiModelProperty("校区名称")
|
||||
private String campusName;
|
||||
|
||||
/**
|
||||
* 年级名称
|
||||
*/
|
||||
@ApiModelProperty("年级名称")
|
||||
private String gradeName;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
@ApiModelProperty("班级名称")
|
||||
private String className;
|
||||
/***
|
||||
* 报到时间
|
||||
**/
|
||||
@ApiModelProperty("报到时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime checkDate;
|
||||
|
||||
|
||||
/***
|
||||
* 报到家长信息
|
||||
**/
|
||||
@ApiModelProperty("家长信息")
|
||||
private String patriarch;
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FaceGroupPageVO {
|
||||
private Long groupId;
|
||||
|
||||
private String groupName;
|
||||
|
||||
private String description;
|
||||
|
||||
private List<String> deviceList;
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ImportFaceVO {
|
||||
|
||||
@ApiModelProperty("文件名称")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty("进度 0-100")
|
||||
private Integer percent;
|
||||
|
||||
@ApiModelProperty("是否上传完成,0-否,1-是")
|
||||
private Integer finish;
|
||||
|
||||
@ApiModelProperty("错误文件路径")
|
||||
private String failPath;
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class IssueFacePercentVO {
|
||||
|
||||
@ApiModelProperty("错误条数")
|
||||
private Integer errorNum;
|
||||
|
||||
@ApiModelProperty("进度")
|
||||
private Integer percent;
|
||||
|
||||
@ApiModelProperty("是否完成,0-否,1-是")
|
||||
private Integer finish;
|
||||
|
||||
@ApiModelProperty("错误信息")
|
||||
private List<UserInfoVO> msgList;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author chenbo
|
||||
*/
|
||||
@Data
|
||||
public class ListParentByStudentIdsVO {
|
||||
private String studentName;
|
||||
private String campusName;
|
||||
private String sectionName;
|
||||
private String studentNumber;
|
||||
private String gradeName;
|
||||
private String className;
|
||||
private String relation;
|
||||
private String phone;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ManagerVo {
|
||||
|
||||
private Long userId;
|
||||
private String userName;
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分页查询学生列表数据返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2023/2/20
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "OutPageStudentVO", description = "分页查询学生列表数据返回类")
|
||||
public class OutPageStudentVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7179610417104867560L;
|
||||
|
||||
@ApiModelProperty("学生id")
|
||||
private Long studentId;
|
||||
|
||||
@ApiModelProperty("学生姓名")
|
||||
private String studentName;
|
||||
|
||||
@ApiModelProperty("校园卡号")
|
||||
private String stuCardNumber;
|
||||
|
||||
@ApiModelProperty("学生头像url")
|
||||
private String avatar;
|
||||
|
||||
@ApiModelProperty("学校id")
|
||||
private Long schoolId;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createDate;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime updateDate;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ParentInfoVO {
|
||||
|
||||
private Long parentId;
|
||||
|
||||
private String parentWxId;
|
||||
|
||||
private String parentYidaAppId;
|
||||
|
||||
private String wxPublicOpenId;
|
||||
|
||||
private String parentName;
|
||||
|
||||
private String mobile;
|
||||
|
||||
private List<StudentInfoVO> studentList;
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 学校须知返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2021/8/19
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@ApiModel(value = "SchoolTipsVo", description = "学校须知返回类")
|
||||
public class SchoolTipsVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8058251956399564627L;
|
||||
/**
|
||||
* 学校须知标题
|
||||
*/
|
||||
@ApiModelProperty(value = "学校须知标题")
|
||||
private String title;
|
||||
/**
|
||||
* 学校须知内容
|
||||
*/
|
||||
@ApiModelProperty(value = "学校须知内容")
|
||||
private String content;
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.yida.data.common.core.vo.NameValueVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
@ApiModel("家长分布数据")
|
||||
@Data
|
||||
public class StaParentDistributeVO {
|
||||
|
||||
@ApiModelProperty("学段分布")
|
||||
private List<NameValueVO<String,Integer>> section;
|
||||
|
||||
@ApiModelProperty("身份分布")
|
||||
private List<NameValueVO<String,Integer>> type;
|
||||
|
||||
private Integer num;
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.yida.data.common.core.vo.NameValueVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@Data
|
||||
@ApiModel("职工分布数据")
|
||||
public class StaStaffDistributeVO {
|
||||
|
||||
@ApiModelProperty("职工性别分布")
|
||||
private List<NameValueVO<String,Integer>> gender;
|
||||
@ApiModelProperty("职工学段分布")
|
||||
private List<NameValueVO<String,Integer>> section;
|
||||
@ApiModelProperty("教职工课程")
|
||||
private List<NameValueVO<String,Integer>> course;
|
||||
@ApiModelProperty("教职工身份")
|
||||
private List<NameValueVO<String,Integer>> type;
|
||||
|
||||
private Integer num;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.yida.data.common.core.vo.NameValueVO;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
@ApiModel("看板用户统计")
|
||||
@Data
|
||||
public class StaStudentVO {
|
||||
|
||||
@ApiModelProperty("学生性别分布")
|
||||
private List<NameValueVO<String,Integer>> gender;
|
||||
@ApiModelProperty("学生学段分布")
|
||||
private List<NameValueVO<String,Integer>> section;
|
||||
@ApiModelProperty("学生类型分布")
|
||||
private List<NameValueVO<String,Integer>> type;
|
||||
@ApiModelProperty("学生家庭类型分布")
|
||||
private List<NameValueVO<String,Integer>> familyType;
|
||||
|
||||
private Integer num;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class StaffDeptInfoVO {
|
||||
|
||||
@ApiModelProperty("部门id")
|
||||
private Long deptId;
|
||||
|
||||
@ApiModelProperty("身份")
|
||||
private Integer isLeader;
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yida.data.common.core.entity.user.EduStaffDept;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@ApiModel("职工分页列表信息")
|
||||
@Data
|
||||
public class StaffPageVO {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long schoolId;
|
||||
|
||||
@ApiModelProperty("学校名称")
|
||||
private String schoolName;
|
||||
|
||||
@ApiModelProperty("职工名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("性别,0-男,1-女,2-保密")
|
||||
private Integer sex;
|
||||
|
||||
@ApiModelProperty("部门名称")
|
||||
private String deptIdentity;
|
||||
|
||||
@ApiModelProperty("手机号")
|
||||
private String mobile;
|
||||
|
||||
@ApiModelProperty("职务")
|
||||
private String position;
|
||||
|
||||
private Long createId;
|
||||
|
||||
@ApiModelProperty("创建人")
|
||||
private String createUser;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createDate;
|
||||
|
||||
@ApiModelProperty("系统账号状态")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty("系统账号id")
|
||||
private Long sysUserId;
|
||||
|
||||
private String avatar;
|
||||
|
||||
private List<EduStaffDept> deptList;
|
||||
|
||||
@ApiModelProperty("采集状态")
|
||||
private Integer collectType;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class StaffWithDeptVO {
|
||||
|
||||
@ApiModelProperty("教职工id")
|
||||
private Long staffId;
|
||||
|
||||
@ApiModelProperty("部门id")
|
||||
private Long deptId;
|
||||
|
||||
@ApiModelProperty("教职工名称")
|
||||
private String staffName;
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组-策略信息返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategyInfoVO", description = "人脸组-策略信息返回类")
|
||||
public class StrategyInfoVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 5883547164739281028L;
|
||||
|
||||
@ApiModelProperty(value = "策略id")
|
||||
private Long strategyId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组id")
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty(value = "策略生效时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime strategyStartDate;
|
||||
|
||||
@ApiModelProperty(value = "策略失效时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime strategyEndDate;
|
||||
|
||||
@ApiModelProperty(value = "星期一通行计划uuid")
|
||||
private String mondayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期二通行计划uuid")
|
||||
private String tuesdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期三通行计划uuid")
|
||||
private String wednesdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期四通行计划uuid")
|
||||
private String thursdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期五通行计划uuid")
|
||||
private String fridayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期六通行计划uuid")
|
||||
private String saturdayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "星期天通行计划uuid")
|
||||
private String sundayUniqueCode;
|
||||
|
||||
@ApiModelProperty(value = "通行计划集合")
|
||||
private List<StrategyPlanVO> planList;
|
||||
|
||||
@ApiModelProperty(value = "特殊日期集合")
|
||||
private List<StrategySpecialDateVO> specialList;
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalTime;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-通行计划-时间段信息返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategyPlanTimeVO", description = "人脸组-策略-通行计划-时间段信息返回类")
|
||||
public class StrategyPlanTimeVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3006837050525867421L;
|
||||
|
||||
@ApiModelProperty(value = "人脸组id")
|
||||
@TableField("face_group_id")
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组-策略id")
|
||||
private Long faceGroupStrategyId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组-策略-通行计划id")
|
||||
private Long faceGroupStrategyPlanId;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@DateTimeFormat(pattern = "HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
|
||||
private LocalTime planStartTime;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@DateTimeFormat(pattern = "HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
|
||||
private LocalTime planEndTime;
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-通行计划信息返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategyPlanVO", description = "人脸组-策略-通行计划信息返回类")
|
||||
public class StrategyPlanVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4014484234037617273L;
|
||||
|
||||
@ApiModelProperty(value = "通行计划id")
|
||||
private Long planId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组id")
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组-策略id")
|
||||
private Long faceGroupStrategyId;
|
||||
|
||||
@ApiModelProperty("通行计划唯一编码")
|
||||
private String uniqueCode;
|
||||
|
||||
@ApiModelProperty("通行计划-时间段集合")
|
||||
private List<StrategyPlanTimeVO> planTimeList;
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.yida.data.user.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 人脸组-策略-特殊日期返回类
|
||||
*
|
||||
* @author ZYJ
|
||||
* @date 2022/12/12
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "StrategySpecialDateVO", description = "人脸组-策略-特殊日期返回类")
|
||||
public class StrategySpecialDateVO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3513266099905879137L;
|
||||
|
||||
@ApiModelProperty(value = "特殊日期主键id")
|
||||
private Long specialId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组id")
|
||||
private Long faceGroupId;
|
||||
|
||||
@ApiModelProperty(value = "人脸组-策略id")
|
||||
private Long faceGroupStrategyId;
|
||||
|
||||
@ApiModelProperty(value = "特殊日期开始日期")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private LocalDate specialStartDate;
|
||||
|
||||
@ApiModelProperty(value = "特殊日期结束日期")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private LocalDate specialEndDate;
|
||||
|
||||
@ApiModelProperty("特殊日期-时间段集合")
|
||||
private List<StrategySpecialTimeVO> specialTimeList;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user