@@ -180,7 +180,6 @@ public class TCPaperStructServiceImpl extends ServiceImpl<TCPaperStructMapper, T
*/
@Override
public TCPaperStruct queryByExamIdAndCourseCodeAndPaperNumber(Long examId, String courseCode, String paperNumber) {
- SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
- return tcPaperStructService.getOne(new QueryWrapper<TCPaperStruct>().lambda().eq(TCPaperStruct::getExamId, examId).eq(TCPaperStruct::getCourseCode, courseCode).eq(TCPaperStruct::getPaperNumber, paperNumber).eq(TCPaperStruct::getCreateId, sysUser.getId()));
+ return tcPaperStructService.getOne(new QueryWrapper<TCPaperStruct>().lambda().eq(TCPaperStruct::getExamId, examId).eq(TCPaperStruct::getCourseCode, courseCode).eq(TCPaperStruct::getPaperNumber, paperNumber));
}
@@ -362,7 +362,7 @@ public class TRBasicInfoServiceImpl extends ServiceImpl<TRBasicInfoMapper, TRBas
trBasicInfo.getReportResult().setCourseBasicInfo(reportCourseBasicInfoDto);
//课程目标考核分布-题目信息
- TCPaperStruct tcPaperStruct = tcPaperStructService.getOne(new QueryWrapper<TCPaperStruct>().lambda().eq(TCPaperStruct::getExamId, markPaper.getExamId()).eq(TCPaperStruct::getCourseCode, markPaper.getCourseCode()).eq(TCPaperStruct::getPaperNumber, markPaper.getPaperNumber()));
+ TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(markPaper.getExamId(), markPaper.getCourseCode(), markPaper.getPaperNumber());
Objects.requireNonNull(tcPaperStruct, "未找到试卷蓝图信息");
List<PaperStructDimensionResult> paperStructDimensionResultList = GsonUtil.fromJson(tcPaperStruct.getPaperStruct(), new TypeToken<List<PaperStructDimensionResult>>() {
@@ -776,11 +776,9 @@ public class TRBasicInfoServiceImpl extends ServiceImpl<TRBasicInfoMapper, TRBas
@Transactional
public Boolean remove(Long examId, String courseCode, String paperNumber) {
return trBasicInfoService.remove(new QueryWrapper<TRBasicInfo>().lambda().eq(TRBasicInfo::getExamId, examId)
.eq(TRBasicInfo::getCourseCode, courseCode)
- .eq(TRBasicInfo::getPaperNumber, paperNumber)
- .eq(TRBasicInfo::getCreateId, sysUser.getId()));
+ .eq(TRBasicInfo::getPaperNumber, paperNumber));
/**
@@ -640,7 +640,7 @@ ALTER TABLE t_c_paper_struct ADD pass_score DOUBLE NULL COMMENT '及格分';
ALTER TABLE t_c_paper_struct CHANGE pass_score pass_score DOUBLE NULL COMMENT '及格分' AFTER total_score;
ALTER TABLE t_c_paper_struct MODIFY COLUMN course_name varchar(100) NULL COMMENT '课程名称';
-ALTER TABLE t_c_paper_struct ADD CONSTRAINT t_c_paper_struct_unique UNIQUE KEY (exam_id,course_code,paper_number,create_id);
+ALTER TABLE t_c_paper_struct ADD CONSTRAINT t_c_paper_struct_unique UNIQUE KEY (exam_id,course_code,paper_number);
UPDATE sys_privilege
SET name='管理成绩', url='Score', `type`='LINK', parent_id=2001, `sequence`=1, property='AUTH', related='2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2029,2030,2031,2032', enable=1, default_auth=0, front_display=1
@@ -98,7 +98,7 @@ public class TCPaperStructController {
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
- TCPaperStruct tcPaperStructDb = tcPaperStructService.getOne(new QueryWrapper<TCPaperStruct>().lambda().eq(TCPaperStruct::getExamId, paperStructParams.getExamId()).eq(TCPaperStruct::getCourseCode, paperStructParams.getCourseCode()).eq(TCPaperStruct::getPaperNumber, paperStructParams.getPaperNumber()));
+ TCPaperStruct tcPaperStructDb = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(paperStructParams.getExamId(), paperStructParams.getCourseCode(), paperStructParams.getPaperNumber());
CourseWeightResult courseWeightResult = trBasicInfoService.findCourseWeightResultRmi(paperStructParams.getExamId(), paperStructParams.getCourseCode());
if (Objects.isNull(tcPaperStructDb)) {
MarkPaper markPaper = markPaperService.getByExamIdAndPaperNumber(paperStructParams.getExamId(), paperStructParams.getPaperNumber());
@@ -129,7 +129,7 @@ public class TCPaperStructController {
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
@ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) throws IOException {
List<PaperStructDimensionResult> paperStructDimensionResultList = null;
- TCPaperStruct tcPaperStruct = tcPaperStructService.getOne(new QueryWrapper<TCPaperStruct>().lambda().eq(TCPaperStruct::getExamId, examId).eq(TCPaperStruct::getCourseCode, courseCode).eq(TCPaperStruct::getPaperNumber, paperNumber));
+ TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
if (Objects.isNull(tcPaperStruct)) {
List<MarkQuestion> markQuestionList = markQuestionService.listQuestionByExamIdAndPaperNumberAndPaperType(examId, paperNumber, null);
if (CollectionUtils.isEmpty(markQuestionList)) {
@@ -126,7 +126,7 @@ public class TRBasicInfoController {
CourseWeightResult courseWeightResult = trBasicInfoService.findCourseWeightResultRmi(examId, courseCode);
ReportCourseEvaluationResultDto reportCourseEvaluationResultDto = Objects.nonNull(trBasicInfo.getCourseEvaluationResult()) ? JSONObject.parseObject(trBasicInfo.getCourseEvaluationResult(), ReportCourseEvaluationResultDto.class) : null;
if (Objects.nonNull(reportCourseEvaluationResultDto.getWeightSettingSign()) && reportCourseEvaluationResultDto.getWeightSettingSign().longValue() != courseWeightResult.getWeightSettingSign().longValue()) {
trBasicInfoService.clearReportData(examId, courseCode, paperNumber, Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getDimensionSign()) && tcPaperStruct.getDimensionSign().longValue() != courseWeightResult.getDimensionSign().longValue() ? true : false);
trBasicInfo = trBasicInfoService.getReportView(trBasicInfo, markPaper, sysUser.getId());
} else {
@@ -197,7 +197,7 @@ public class TRBasicInfoController {
MarkPaper markPaper = markPaperService.getByExamIdAndPaperNumber(examId, paperNumber);
Objects.requireNonNull(markPaper, "未找到科目信息");
this.reportView(examId, courseCode, paperNumber);
this.reportExport(examId, courseCode, paperNumber);