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

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

parent df1357bf
......@@ -96,11 +96,13 @@ public class StudentInfoService {
* @param idList
* @return
*/
@Transactional(rollbackFor = Exception.class)
public Object batchDeleted(List<Integer> idList) {
List<StudentInfo> studentInfoList = selectStudentInfo(null, null, idList);
studentInfoList.forEach(x -> {
x.setDeleted(null);
updateStudentInfo(x);
studentPointService.removeByStudentId(x.getId());
});
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