|
|
@@ -19,6 +19,7 @@ import com.xjrsoft.module.student.entity.BaseStudent;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
import com.xjrsoft.module.student.entity.StudentReportPlan;
|
|
|
import com.xjrsoft.module.student.entity.StudentReportRecord;
|
|
|
+import com.xjrsoft.module.student.mapper.StudentReportPlanMapper;
|
|
|
import com.xjrsoft.module.student.mapper.StudentReportRecordMapper;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentService;
|
|
|
@@ -34,7 +35,6 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
-import java.time.LocalDateTime;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -52,7 +52,7 @@ public class StudentReportRecordServiceImpl extends MPJBaseServiceImpl<StudentRe
|
|
|
private final IUserService userService;
|
|
|
private final IBaseStudentSchoolRollService rollService;
|
|
|
private final IStudentChangeRecordService changeRecordService;
|
|
|
- private final IStudentReportPlanService planService;
|
|
|
+ private final StudentReportPlanMapper planMapper;
|
|
|
@Override
|
|
|
public StudentReportRecordStatisticsVo getClassStatistics(StudentReportRecordStatisticsDto dto) {
|
|
|
return this.baseMapper.getClassStatistics(dto);
|
|
|
@@ -162,7 +162,7 @@ public class StudentReportRecordServiceImpl extends MPJBaseServiceImpl<StudentRe
|
|
|
public Boolean updateStduyStatus(StudentReportSignDto dto) {
|
|
|
LocalDate now = LocalDate.now();
|
|
|
StudentReportRecord record = this.getById(dto.getId());
|
|
|
- StudentReportPlan reportPlan = planService.getById(record.getStudentReportPlanId());
|
|
|
+ StudentReportPlan reportPlan = planMapper.selectById(record.getStudentReportPlanId());
|
|
|
if(!(now.isAfter(reportPlan.getUpdateStartTime()) && now.isBefore(reportPlan.getUpdateEndTime())) || !now.equals(reportPlan.getUpdateStartTime()) || !now.equals(reportPlan.getUpdateEndTime())){
|
|
|
throw new MyException("不在修改时间内,无法修改");
|
|
|
}
|