|
@@ -187,6 +187,10 @@ public class CloudTeacherOrderServiceImpl extends BaseServiceImpl<Long, CloudTea
|
|
|
throw new Exception("存在已经支付完成的学生,请重新选择");
|
|
|
}
|
|
|
Integer tenantId = null;
|
|
|
+ List<CloudTeacherOrder> cloudTeacherOrders = cloudTeacherOrderDao.queryCloudTeacherOrderByIds(ids);
|
|
|
+ if (cloudTeacherOrders.stream().filter(next -> next.getStatus() == 4).collect(Collectors.toSet()).size() > 0) {
|
|
|
+ throw new Exception("存在已取消的学生,请重新选择");
|
|
|
+ }
|
|
|
BigDecimal sumAmount = new BigDecimal(0);
|
|
|
for (CloudTeacherStudent cts : cloudTeacherStudents) {
|
|
|
if (cts.getAmount() == null) {
|