入伍保留学籍-批量插入(辅导员批量申请)
This commit is contained in:
@@ -211,7 +211,7 @@ public class RtEnlistmentReserveServiceImpl extends ServiceImpl<RtEnlistmentRese
|
|||||||
String duplicateMsg = duplicateList.stream()
|
String duplicateMsg = duplicateList.stream()
|
||||||
.map(item -> "学生姓名:" + item.getStudentName() + ",学号:" + item.getStudentNo())
|
.map(item -> "学生姓名:" + item.getStudentName() + ",学号:" + item.getStudentNo())
|
||||||
.collect(Collectors.joining(";"));
|
.collect(Collectors.joining(";"));
|
||||||
throw new RuntimeException("存在重复数据,不执行申请:" + duplicateMsg);
|
throw new RuntimeException("提交申请失败,以下学生已提交申请:" + duplicateMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 6. 无重复数据时,为每条待插入数据生成唯一的reserveNo(核心新增逻辑)
|
// 6. 无重复数据时,为每条待插入数据生成唯一的reserveNo(核心新增逻辑)
|
||||||
|
|||||||
Reference in New Issue
Block a user