Browse Source

调整外键字段类型

dzx142631 1 year ago
parent
commit
28856ac6ef

+ 3 - 3
src/main/java/com/xjrsoft/module/student/dto/AddBaseStudentClassCadreDto.java

@@ -38,12 +38,12 @@ public class AddBaseStudentClassCadreDto implements Serializable {
     * 学生id
     */
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 联系电话
     */
@@ -63,7 +63,7 @@ public class AddBaseStudentClassCadreDto implements Serializable {
     * 学生任职机构
     */
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/dto/AddBaseStudentSchoolCadreDto.java

@@ -38,12 +38,12 @@ public class AddBaseStudentSchoolCadreDto implements Serializable {
     * 学生id
     */
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 职务
     */
@@ -58,7 +58,7 @@ public class AddBaseStudentSchoolCadreDto implements Serializable {
     * 学生任职机构
     */
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/entity/BaseStudentClassCadre.java

@@ -87,12 +87,12 @@ public class BaseStudentClassCadre implements Serializable {
     * 学生id
     */
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 联系电话
     */
@@ -112,7 +112,7 @@ public class BaseStudentClassCadre implements Serializable {
     * 学生任职机构
     */
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/entity/BaseStudentSchoolCadre.java

@@ -87,12 +87,12 @@ public class BaseStudentSchoolCadre implements Serializable {
     * 学生id
     */
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 职务
     */
@@ -107,7 +107,7 @@ public class BaseStudentSchoolCadre implements Serializable {
     * 学生任职机构
     */
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/vo/BaseStudentClassCadrePageVo.java

@@ -92,14 +92,14 @@ public class BaseStudentClassCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("学生id")
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("班级id")
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 联系电话
     */
@@ -127,7 +127,7 @@ public class BaseStudentClassCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("学生任职机构")
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/vo/BaseStudentClassCadreVo.java

@@ -37,12 +37,12 @@ public class BaseStudentClassCadreVo {
     * 学生id
     */
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 联系电话
     */
@@ -62,7 +62,7 @@ public class BaseStudentClassCadreVo {
     * 学生任职机构
     */
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/vo/BaseStudentSchoolCadrePageVo.java

@@ -92,14 +92,14 @@ public class BaseStudentSchoolCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("学生id")
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("班级id")
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 职务
     */
@@ -120,7 +120,7 @@ public class BaseStudentSchoolCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("学生任职机构")
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 3 - 3
src/main/java/com/xjrsoft/module/student/vo/BaseStudentSchoolCadreVo.java

@@ -37,12 +37,12 @@ public class BaseStudentSchoolCadreVo {
     * 学生id
     */
     @ApiModelProperty("学生id")
-    private Integer userId;
+    private Long userId;
     /**
     * 班级id
     */
     @ApiModelProperty("班级id")
-    private Integer classId;
+    private Long classId;
     /**
     * 职务
     */
@@ -57,7 +57,7 @@ public class BaseStudentSchoolCadreVo {
     * 学生任职机构
     */
     @ApiModelProperty("学生任职机构")
-    private Integer orgId;
+    private Long orgId;
     /**
     * 任职开始时间
     */

+ 6 - 6
src/main/resources/sqlScript/20231109_sql.sql

@@ -13,11 +13,11 @@ CREATE TABLE base_student_school_cadre
     `enabled_mark` INT NOT NULL COMMENT '有效标志',
     `sort_code` INT NULL DEFAULT NULL COMMENT '序号',
     `user_number` VARCHAR(30) NULL DEFAULT NULL COMMENT '学号',
-    `user_id` INT NULL DEFAULT NULL COMMENT '学生id',
-    `class_id` INT NULL DEFAULT NULL COMMENT '班级id',
+    `user_id` BIGINT NULL DEFAULT NULL COMMENT '学生id',
+    `class_id` BIGINT NULL DEFAULT NULL COMMENT '班级id',
     `post` VARCHAR(50) NULL DEFAULT NULL COMMENT '职务',
     `level` VARCHAR(50) NULL DEFAULT NULL COMMENT '级别',
-    `org_id` INT NULL DEFAULT NULL COMMENT '学生任职机构',
+    `org_id` BIGINT NULL DEFAULT NULL COMMENT '学生任职机构',
     `start_time` DATE NULL DEFAULT NULL COMMENT '任职开始时间',
     `end_time` DATE NULL DEFAULT NULL COMMENT '任职结束时间',
     `status` INT NOT NULL COMMENT '状态(1:在职 0:离职)',
@@ -40,12 +40,12 @@ CREATE TABLE base_student_class_cadre
     `enabled_mark` INT NOT NULL COMMENT '有效标志',
     `sort_code` INT NULL DEFAULT NULL COMMENT '序号',
     `user_number` VARCHAR(30) NULL DEFAULT NULL COMMENT '学号',
-    `user_id` INT NULL DEFAULT NULL COMMENT '学生id',
-    `class_id` INT NULL DEFAULT NULL COMMENT '班级id',
+    `user_id` BIGINT NULL DEFAULT NULL COMMENT '学生id',
+    `class_id` BIGINT NULL DEFAULT NULL COMMENT '班级id',
     `mobile` VARCHAR(30) NULL DEFAULT NULL COMMENT '联系电话',
     `post` VARCHAR(50) NULL DEFAULT NULL COMMENT '职务',
     `post_type` VARCHAR(50) NULL DEFAULT NULL COMMENT '职务类型',
-    `org_id` INT NULL DEFAULT NULL COMMENT '学生任职机构',
+    `org_id` BIGINT NULL DEFAULT NULL COMMENT '学生任职机构',
     `start_time` DATE NULL DEFAULT NULL COMMENT '任职开始时间',
     `end_time` DATE NULL DEFAULT NULL COMMENT '任职结束时间',
     `status` INT NOT NULL COMMENT '状态(1:在职 0:离职)',