Commit 3783b0bc authored by Ryan Loong's avatar Ryan Loong

fix 删除学生时没有删除打卡成绩的bug

parent df1357bf
...@@ -96,11 +96,13 @@ public class StudentInfoService { ...@@ -96,11 +96,13 @@ public class StudentInfoService {
* @param idList * @param idList
* @return * @return
*/ */
@Transactional(rollbackFor = Exception.class)
public Object batchDeleted(List<Integer> idList) { public Object batchDeleted(List<Integer> idList) {
List<StudentInfo> studentInfoList = selectStudentInfo(null, null, idList); List<StudentInfo> studentInfoList = selectStudentInfo(null, null, idList);
studentInfoList.forEach(x -> { studentInfoList.forEach(x -> {
x.setDeleted(null); x.setDeleted(null);
updateStudentInfo(x); updateStudentInfo(x);
studentPointService.removeByStudentId(x.getId());
}); });
return "batch deleted OK"; return "batch deleted OK";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment