|
@@ -647,9 +647,9 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
|
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "医生信息不存在");
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "医生信息不存在");
|
|
|
}
|
|
}
|
|
|
List<String> clinicIds = source.getClinicIds();
|
|
List<String> clinicIds = source.getClinicIds();
|
|
|
- if(clinicIds.stream().anyMatch(Objects::isNull)){
|
|
|
|
|
- throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "手术信息id包含空值");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (clinicIds.stream().anyMatch(Objects::isNull)) {
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "手术信息id包含空值");
|
|
|
|
|
+ }
|
|
|
//先删除跟手术医生关联
|
|
//先删除跟手术医生关联
|
|
|
clinicRoomDoctorUserRepository.delete(new LambdaQueryWrapper<BizClinicRoomDoctorUserPO>()
|
|
clinicRoomDoctorUserRepository.delete(new LambdaQueryWrapper<BizClinicRoomDoctorUserPO>()
|
|
|
.in(BizClinicRoomDoctorUserPO::getClinicRoomId, clinicIds));
|
|
.in(BizClinicRoomDoctorUserPO::getClinicRoomId, clinicIds));
|
|
@@ -712,6 +712,7 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
|
|
|
* @date 2025/9/23
|
|
* @date 2025/9/23
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean stdInsertDoctorApp(BizClinicAddOrEditDTO source) {
|
|
public Boolean stdInsertDoctorApp(BizClinicAddOrEditDTO source) {
|
|
|
String userId = LoginUserStrategy.tr.getCurrentUserId();
|
|
String userId = LoginUserStrategy.tr.getCurrentUserId();
|
|
|
String patientCode = source.getPatientCode();
|
|
String patientCode = source.getPatientCode();
|