|
|
@@ -8,6 +8,7 @@ import cn.tr.core.exception.ServiceException;
|
|
|
import cn.tr.core.exception.TRExcCode;
|
|
|
import cn.tr.core.strategy.LoginUserStrategy;
|
|
|
import cn.tr.module.mobile.repository.ImGroupUserRepository;
|
|
|
+import cn.tr.module.smart.app.controller.dto.AppDoctorBindClinicDTO;
|
|
|
import cn.tr.module.smart.app.controller.dto.AppDoctorClinicFinishDTO;
|
|
|
import cn.tr.module.smart.app.controller.dto.AppDoctorClinicQueryByPatientCodeDTO;
|
|
|
import cn.tr.module.smart.app.controller.dto.AppDoctorClinicRoomDTO;
|
|
|
@@ -790,6 +791,25 @@ public class BizClinicRoomServiceImpl implements IBizClinicRoomService {
|
|
|
return baseRepository.stdQueryClinicList(source);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param source
|
|
|
+ * @description: 医生端绑定手术信息
|
|
|
+ * @author wangzl
|
|
|
+ * @date 2025/10/10
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public Boolean bindClinic(AppDoctorBindClinicDTO source) {
|
|
|
+ String userId = LoginUserStrategy.tr.getCurrentUserId();
|
|
|
+
|
|
|
+ List<String> clinicIds = source.getClinicIds();
|
|
|
+ if (clinicIds.stream().anyMatch(Objects::isNull)) {
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "手术ID列表中包含空值");
|
|
|
+ }
|
|
|
+ //直接进行插入 因医生端绑定手术信息列表都是未进行绑定的手术信息
|
|
|
+ return clinicRoomDoctorUserService.stdInsertBizClinicRoomDoctors(userId, clinicIds);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 微信小程序基于医生已填写的信息更新数据
|
|
|
*/
|