|
|
@@ -11,6 +11,7 @@ import com.xjrsoft.common.enums.ArchivesStatusEnum;
|
|
|
import com.xjrsoft.common.enums.DeleteMark;
|
|
|
import com.xjrsoft.common.enums.EnabledMark;
|
|
|
import com.xjrsoft.common.enums.RoleEnum;
|
|
|
+import com.xjrsoft.common.exception.MyException;
|
|
|
import com.xjrsoft.common.utils.LocalDateUtil;
|
|
|
import com.xjrsoft.common.utils.RedisUtil;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
@@ -116,6 +117,11 @@ public class BandingTaskClassStudentServiceImpl extends MPJBaseServiceImpl<Bandi
|
|
|
.in(BaseNewStudent::getId, dto.getNewStudentIds())
|
|
|
);
|
|
|
|
|
|
+ List<BaseNewStudent> notPaymnyList = list.stream().filter(x -> "未交费".equals(x.getPaymnystate())).collect(Collectors.toList());
|
|
|
+ if(!notPaymnyList.isEmpty() && dto.getIsHandle() == 1){
|
|
|
+ throw new MyException("选择的学生中存在未交费情况,无法手动分班");
|
|
|
+ }
|
|
|
+
|
|
|
List<BandingTaskClassStudent> dataList = new ArrayList<>();
|
|
|
long createUserId = StpUtil.getLoginIdAsLong();
|
|
|
|