完成教师端实验报告及评阅相关功能
parent
8d59c46fa8
commit
175c5688b9
@ -0,0 +1,84 @@
|
|||||||
|
package com.sztzjy.trade.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.RoundingMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 17803
|
||||||
|
* @date 2024-12-17 13:51
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TchGeneralViewDTO {
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "学号")
|
||||||
|
private String studentId;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "姓名")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "班级名称")
|
||||||
|
private String className;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "学校ID")
|
||||||
|
private String schoolId;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "当前页")
|
||||||
|
private Integer page;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "每页展示条数")
|
||||||
|
private Integer size;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "权重")
|
||||||
|
private BigDecimal weight;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "考勤成绩")
|
||||||
|
private BigDecimal attendanceScore;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "作业考试成绩")
|
||||||
|
private BigDecimal examResultsForHomeworkAssignments;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "理实案例成绩")
|
||||||
|
private BigDecimal resultsOfPracticalCaseStudies;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "总排名(学校)")
|
||||||
|
private Integer totalRank;
|
||||||
|
|
||||||
|
@ApiModelProperty(notes = "综合得分(学校)(乘完权重后)")
|
||||||
|
private BigDecimal totalScore;
|
||||||
|
|
||||||
|
|
||||||
|
public TchGeneralViewDTO(StuUser stuUser, TchDigitalTradeWeight resultsOverviewWeight) {
|
||||||
|
this.name=stuUser.getName();
|
||||||
|
this.studentId=stuUser.getStudentId();
|
||||||
|
this.className=stuUser.getClassName();
|
||||||
|
|
||||||
|
this.attendanceScore = stuUser.getAttendanceScore()
|
||||||
|
.multiply(resultsOverviewWeight.getWeightOfAttendanceScores())
|
||||||
|
.setScale(2, RoundingMode.HALF_UP); // 四舍五入
|
||||||
|
|
||||||
|
this.examResultsForHomeworkAssignments = stuUser.getExamResultsForHomeworkAssignments()
|
||||||
|
.multiply(resultsOverviewWeight.getWeightOfHomeworkExamScores())
|
||||||
|
.setScale(2, RoundingMode.HALF_UP); // 四舍五入
|
||||||
|
|
||||||
|
this.resultsOfPracticalCaseStudies = stuUser.getResultsOfPracticalCaseStudies()
|
||||||
|
.multiply(resultsOverviewWeight.getWeightOfPracticalCaseScores())
|
||||||
|
.setScale(2, RoundingMode.HALF_UP); // 四舍五入
|
||||||
|
|
||||||
|
|
||||||
|
this.weight=resultsOverviewWeight.getWeightOfAttendanceScores().add(resultsOverviewWeight.getWeightOfHomeworkExamScores()).add(resultsOverviewWeight.getWeightOfPracticalCaseScores());
|
||||||
|
this.totalScore=stuUser.getTotalScore();
|
||||||
|
if(stuUser.getTotalRank()!=null){
|
||||||
|
this.totalRank=stuUser.getTotalRank();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.sztzjy.trade.service;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.sztzjy.trade.entity.StuPracticalTrainingReport;
|
||||||
|
import com.sztzjy.trade.entity.TchDigitalTradeWeight;
|
||||||
|
import com.sztzjy.trade.entity.TchGeneralViewDTO;
|
||||||
|
import com.sztzjy.trade.util.ResultEntity;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 17803
|
||||||
|
* @date 2024-12-17 13:48
|
||||||
|
*/
|
||||||
|
public interface TchGeneralViewService {
|
||||||
|
/*
|
||||||
|
* 成绩总览展示 (条件查询)
|
||||||
|
* @param null
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
|
||||||
|
ResultEntity selectGeneralViewList(TchGeneralViewDTO tchGeneralViewDTO);
|
||||||
|
|
||||||
|
List generalViewExport(String schoolId);
|
||||||
|
|
||||||
|
//成绩总览权重回显
|
||||||
|
ResultEntity getResultsOverviewWeight(String schoolId);
|
||||||
|
|
||||||
|
//成绩总览权重设置
|
||||||
|
|
||||||
|
|
||||||
|
ResultEntity setResultsOverviewWeight(TchDigitalTradeWeight weight);
|
||||||
|
|
||||||
|
//评阅界面
|
||||||
|
PageInfo<StuPracticalTrainingReport> getScoreReport(String schoolId, Integer page, Integer size, String module, String name, String className);
|
||||||
|
//班级下拉框
|
||||||
|
List<String> getClassNameBySchoolId(@Param("schoolId") String schoolId);
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue