|
|
@ -107,7 +107,7 @@ public class PatientService implements IPatientService{ |
|
|
|
PatientRobot patientRobot = new PatientRobot(); |
|
|
|
patientRobot.setId(snowflake.nextId()); |
|
|
|
patientRobot.setPatientId(patient.getId()); |
|
|
|
patientRobot.setPatientId(robot.getId()); |
|
|
|
patientRobot.setRobotId(param.getRobotId()); |
|
|
|
patientRobot.setStartTime(System.currentTimeMillis()); |
|
|
|
patientRobotMapper.insertSelective(patientRobot); |
|
|
|
|
|
|
@ -132,6 +132,7 @@ public class PatientService implements IPatientService{ |
|
|
|
//存储一条训练记录
|
|
|
|
RecipeRecord recRecord = new RecipeRecord(); |
|
|
|
recRecord.setId(snowflake.nextId()); |
|
|
|
recRecord.setPatientId(param.getPatientId()); |
|
|
|
recRecord.setStartTime(System.currentTimeMillis()); |
|
|
|
recRecord.setDecomposeId(param.getRecipeProjectId()); |
|
|
|
recRecord.setRecoveryDoctorId(param.getSceneDoctorId()); |
|
|
@ -243,6 +244,7 @@ public class PatientService implements IPatientService{ |
|
|
|
@Override |
|
|
|
public void completeRecovery(PatientDto.EndRecovery param, Long userId) throws Exception { |
|
|
|
//TODO 给患者和机器人关联的记录添加结束时间
|
|
|
|
|
|
|
|
//TODO 将处方项目关联的任务设为完成
|
|
|
|
//发送消息,让机器人切回康复中心的项目
|
|
|
|
Set<String> userIdSet = new HashSet<>(); |
|
|
|