Kaynağa Gözat

干部管理

fanxp 2 yıl önce
ebeveyn
işleme
4c3a5abf6a

+ 4 - 4
src/main/java/com/xjrsoft/module/student/controller/BaseStudentCadreController.java

@@ -66,7 +66,7 @@ public class BaseStudentCadreController {
     public RT<PageOutput<BaseStudentCadrePageVo>> page(@Valid BaseStudentCadrePageDto dto){
 
         MPJLambdaWrapper<BaseStudentCadre> queryWrapper = new MPJLambdaWrapper<>();
-        queryWrapper.disableLogicDel()
+        queryWrapper
                 .like(StrUtil.isNotBlank(dto.getUserName()), XjrUser::getName, dto.getUserName())
                 .eq(ObjectUtil.isNotEmpty(dto.getOrgId()), BaseStudentCadre::getOrgId, dto.getOrgId())
                 .eq(ObjectUtil.isNotEmpty(dto.getClassId()), BaseStudentCadre::getClassId, dto.getClassId())
@@ -91,9 +91,9 @@ public class BaseStudentCadreController {
                 .innerJoin(XjrUser.class, XjrUser::getId, BaseStudentCadre::getUserId)
                 .innerJoin(BaseStudent.class, BaseStudent::getUserId, BaseStudentCadre::getUserId)
                 .innerJoin(BaseStudentPost.class, BaseStudentPost::getId, BaseStudentCadre::getPostId)
-                .innerJoin(BaseClass.class, BaseClass::getId, BaseStudentCadre::getClassId)
-                .innerJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getUserId, BaseStudentCadre::getUserId)
-                .innerJoin(Department.class, Department::getId, BaseClass::getOrgId)
+                .leftJoin(BaseClass.class, BaseClass::getId, BaseStudentCadre::getClassId)
+                .leftJoin(BaseStudentSchoolRoll.class, BaseStudentSchoolRoll::getUserId, BaseStudentCadre::getUserId)
+                .leftJoin(Department.class, Department::getId, BaseStudentCadre::getOrgId)
                 .leftJoin(BaseMajorSet.class, BaseMajorSet::getId, BaseStudentSchoolRoll::getMajorSetId)
                 .leftJoin(BaseGrade.class, BaseGrade::getId, BaseStudentSchoolRoll::getGradeId);
 

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

@@ -53,12 +53,12 @@ public class AddBaseStudentCadreDto implements Serializable {
     * 任职开始时间
     */
     @ApiModelProperty("任职开始时间")
-    private Date startTime;
+    private String startTime;
     /**
     * 任职结束时间
     */
     @ApiModelProperty("任职结束时间")
-    private Date endTime;
+    private String endTime;
     /**
     * 状态(1:在职 0:离职)
     */
@@ -68,7 +68,7 @@ public class AddBaseStudentCadreDto implements Serializable {
     * 离职生效日期
     */
     @ApiModelProperty("离职生效日期")
-    private Date leaveTime;
+    private String leaveTime;
     /**
     * 离职原因
     */

+ 43 - 1
src/main/java/com/xjrsoft/module/student/dto/UpdateBaseStudentCadreDto.java

@@ -8,6 +8,8 @@ import java.time.LocalTime;
 import java.time.LocalDateTime;
 import java.math.BigDecimal;
 import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
 import java.util.List;
 import java.util.Date;
 
@@ -20,7 +22,7 @@ import java.util.Date;
 * @Version 1.0
 */
 @Data
-public class UpdateBaseStudentCadreDto extends AddBaseStudentCadreDto {
+public class UpdateBaseStudentCadreDto {
 
     private static final long serialVersionUID = 1L;
 
@@ -29,4 +31,44 @@ public class UpdateBaseStudentCadreDto extends AddBaseStudentCadreDto {
     */
     @ApiModelProperty("主键编号")
     private Long id;
+    /**
+     * 职务id
+     */
+    @ApiModelProperty("职务id")
+    private Long postId;
+    /**
+     * 学生任职机构
+     */
+    @ApiModelProperty("学生任职机构")
+    private Long orgId;
+    /**
+     * 任职开始时间
+     */
+    @ApiModelProperty("任职开始时间")
+    private String startTime;
+    /**
+     * 任职结束时间
+     */
+    @ApiModelProperty("任职结束时间")
+    private String endTime;
+    /**
+     * 状态(1:在职 0:离职)
+     */
+    @ApiModelProperty("状态(1:在职 0:离职)")
+    private Integer status;
+    /**
+     * 离职生效日期
+     */
+    @ApiModelProperty("离职生效日期")
+    private String leaveTime;
+    /**
+     * 离职原因
+     */
+    @ApiModelProperty("离职原因")
+    private String leaveReason;
+    /**
+     * 序号
+     */
+    @ApiModelProperty("序号")
+    private Integer sortCode;
 }

+ 5 - 0
src/main/java/com/xjrsoft/module/student/vo/BaseStudentCadrePageVo.java

@@ -9,6 +9,8 @@ import lombok.Data;
 
 import com.xjrsoft.common.annotation.Trans;
 import com.xjrsoft.common.enums.TransType;
+
+import java.sql.Timestamp;
 import java.time.LocalTime;
 import java.time.LocalDateTime;
 import java.math.BigDecimal;
@@ -113,6 +115,7 @@ public class BaseStudentCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("任职开始时间")
     @ApiModelProperty("任职开始时间")
+    @JsonFormat(pattern = "yyyy-MM-dd")
     private Date startTime;
     /**
     * 任职结束时间
@@ -120,6 +123,7 @@ public class BaseStudentCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("任职结束时间")
     @ApiModelProperty("任职结束时间")
+    @JsonFormat(pattern = "yyyy-MM-dd")
     private Date endTime;
     /**
     * 状态(1:在职 0:离职)
@@ -134,6 +138,7 @@ public class BaseStudentCadrePageVo {
     @ContentStyle(dataFormat = 49)
     @ExcelProperty("离职生效日期")
     @ApiModelProperty("离职生效日期")
+    @JsonFormat(pattern = "yyyy-MM-dd")
     private Date leaveTime;
     /**
     * 离职原因

+ 10 - 11
src/main/resources/sqlScript/20231113_sql.sql

@@ -360,23 +360,22 @@ CREATE TABLE base_student_behavior_project
     `delete_mark` INT NOT NULL COMMENT '删除标记',
     `enabled_mark` INT NOT NULL COMMENT '有效标志',
     `sort_code` INT NULL DEFAULT NULL COMMENT '序号',
+    `base_student_behavior_category_id` BIGINT NULL DEFAULT NULL COMMENT '学生考核类别编号(base_student_behavior_category)',
     `name` VARCHAR(200) NOT NULL COMMENT '名称',
     `code` VARCHAR(100) NULL DEFAULT NULL COMMENT '编码',
-    `basic_points` double NOT NULL DEFAULT 0 COMMENT '基础分',
+    `score_type` varchar(20) NULL DEFAULT NULL COMMENT '考核类型(xjr_dictionary_item[score_type])',
+    `score` double NOT NULL DEFAULT 0 COMMENT '分值',
+    `is_adjustment` INT NULL DEFAULT 0 COMMENT '是否允许调整(1:是 0:否)',
     `points_deducted_min` double NOT NULL DEFAULT 0 COMMENT '扣分范围(最小)',
     `points_deducted_max` double NOT NULL DEFAULT 0 COMMENT '扣分范围(最大)',
-    `add_points_min` double NOT NULL DEFAULT 0 COMMENT '加分范围(最小)',
-    `add_points_max` double NOT NULL DEFAULT 0 COMMENT '加分范围(最大)',
-    `department_id` bigint NOT NULL COMMENT '所属机构(xjr_department)',
+    `is_impact_assessment` INT NULL DEFAULT 0 COMMENT '是否影响班级考核(1:是 0:否)',
+    `conversion_method` INT NULL DEFAULT 1 COMMENT '换算方式(1:手动换算 2:自动换算)',
     `status` INT NULL DEFAULT 1 COMMENT '是否启用(1:是 0:否)',
-    `is_affect` INT NULL DEFAULT 0 COMMENT '是否影响(1:是 0:否)',
-    `processing_method` varchar(20) NULL DEFAULT NULL COMMENT '学生操行分处理方式(xjr_dictionary_item[assessment_processing_method])',
-    `behavior_score` double NOT NULL DEFAULT 0 COMMENT '折算操行分要求',
-    `base_student_behavior_id` bigint NOT NULL DEFAULT 0 COMMENT '操行项目编号',
-    `is_teacher_edit` INT NULL DEFAULT 0 COMMENT '是否允许班主任修改项目(1:是 0:否)',
-    `behavior_score_remark` VARCHAR(1000) NULL DEFAULT NULL COMMENT '手动处理学生操行分说明',
+    `base_student_assessment_project_id` BIGINT NULL DEFAULT NULL COMMENT '班级考核项目编号(base_student_assessment_project)',
+    `is_edit` INT NULL DEFAULT 0 COMMENT '是否允许修改(1:是 0:否)',
+    `automatic_score_type` varchar(20) NULL DEFAULT NULL COMMENT '自动换算考核类型(xjr_dictionary_item[score_type])',
     `remark` VARCHAR(1000) COMMENT '备注'
-        PRIMARY KEY (`id`)
+    PRIMARY KEY (`id`)
 ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT '学生操行分考核项目';