Browse Source

Merge remote-tracking branch 'origin/pt' into pt

pt
ma 5 years ago
parent
commit
6e905f2da3
  1. 4
      recovery/src/main/java/com/ccsens/recovery/service/PatientService.java
  2. 4
      recovery/src/main/resources/application.yml
  3. 1
      util/src/main/java/com/ccsens/util/baidu/BaiDuDto.java
  4. 2
      wisdomcar/src/main/java/com/ccsens/wisdomcar/api/ProjectController.java

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

1
util/src/main/java/com/ccsens/util/baidu/BaiDuDto.java

@ -15,5 +15,6 @@ public class BaiDuDto {
public static class GeneralBasic{ public static class GeneralBasic{
private String image; private String image;
private String url; private String url;
private String detect_direction = "true";
} }
} }

2
wisdomcar/src/main/java/com/ccsens/wisdomcar/api/ProjectController.java

@ -71,7 +71,7 @@ public class ProjectController {
log.info("查询开始时间结束:{}", time); log.info("查询开始时间结束:{}", time);
return JsonResponse.newInstance().ok(time); return JsonResponse.newInstance().ok(time);
} }
@MustLogin // @MustLogin
@ApiOperation(value = "图像识别", notes = "whj") @ApiOperation(value = "图像识别", notes = "whj")
@RequestMapping(value = "/identifyWords", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) @RequestMapping(value = "/identifyWords", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<ProjectVo.PersonMsg> identifyWords(@RequestParam(required = true) Part part) throws IOException { public JsonResponse<ProjectVo.PersonMsg> identifyWords(@RequestParam(required = true) Part part) throws IOException {

Loading…
Cancel
Save