This commit is contained in:
PQZ 2024-08-28 17:56:16 +08:00
parent 768eaf80ba
commit 9b3128db18

View File

@ -81,8 +81,12 @@ public class DriveSchoolCourseServiceImpl implements IDriveSchoolCourseService
IPage<DriveSchoolCourse> driveSchoolCourseIPage = driveSchoolCourseMapper.selectDriveSchoolCourseList(driveSchoolCourse, page);
List<DriveSchoolCourse> driveSchoolCourses = driveSchoolCourseIPage.getRecords();
for (DriveSchoolCourse driveSchoolCours : driveSchoolCourses) {
DriveSchoolInfo driveSchoolInfo = driveSchoolInfoMapper.getSchoolInfoByDeptId(driveSchoolCours.getDeptId());
driveSchoolCours.setPhone(driveSchoolInfo.getPhone());
// update by pqz 2024年8月28日 解决空指针
DriveSchoolInfo driveSchoolInfo = driveSchoolInfoMapper.getSchoolInfoByDeptId(driveSchoolCours.getDeptId() == null ? 100:driveSchoolCours.getDeptId());
// update by pqz 2024年8月28日 解决空指针
if (null != driveSchoolInfo){
driveSchoolCours.setPhone(driveSchoolInfo.getPhone());
}
}
if (ObjectUtils.isNotEmpty(driveSchoolCourse.getPayType()) && driveSchoolCourse.getPayType().equals("2")){
driveSchoolCourses.forEach(item ->{