Browse Source

20210604

pt
zy_Java 5 years ago
parent
commit
d91faccb0c
  1. 4
      recovery/src/main/java/com/ccsens/recovery/service/PatientService.java
  2. 4
      recovery/src/main/resources/application.yml

4
recovery/src/main/java/com/ccsens/recovery/service/PatientService.java

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

4
recovery/src/main/resources/application.yml

@ -1,6 +1,6 @@
spring: spring:
profiles: profiles:
active: test active: prod
include: util-test,common include: util-prod,common

Loading…
Cancel
Save