|
|
@ -741,13 +741,25 @@ public class QuestionService implements IQuestionService { |
|
|
|
*/ |
|
|
|
private QuestionVo.Parameter getParameter(HtQuestion question, HtPatientCanvas htPatientCanvas, QuestionDto.QueryPatientCanvas param) { |
|
|
|
QuestionVo.Parameter parameter = new QuestionVo.Parameter(); |
|
|
|
//开始画图时长:打开画板到第一笔画图时长
|
|
|
|
parameter.setStartDuration(htPatientCanvas.getBeginTime() - htPatientCanvas.getOpenCanvasTime()); |
|
|
|
// //开始画图时长:打开画板到第一笔画图时长
|
|
|
|
// parameter.setStartDuration(htPatientCanvas.getBeginTime() - htPatientCanvas.getOpenCanvasTime());
|
|
|
|
//获取轨迹信息
|
|
|
|
List<QuestionVo.Point> canvasPoints = patientCanvasDao.getCanvasPoints(htPatientCanvas.getId()); |
|
|
|
if(CollectionUtil.isEmpty(canvasPoints)){ |
|
|
|
return parameter; |
|
|
|
} |
|
|
|
//第一笔的开始时间
|
|
|
|
String[] pointsStart = canvasPoints.get(0).getValue().split(";"); |
|
|
|
if(pointsStart.length <= 0){ |
|
|
|
return parameter; |
|
|
|
} |
|
|
|
String[] splitStart = pointsStart[0].split(","); |
|
|
|
if(splitStart.length <= 0){ |
|
|
|
return parameter; |
|
|
|
} |
|
|
|
long startTime = Long.parseLong(splitStart[splitStart.length - 1]); |
|
|
|
//开始画图时长:打开画板到第一笔画图时长
|
|
|
|
parameter.setStartDuration(htPatientCanvas.getBeginTime() - htPatientCanvas.getOpenCanvasTime() + startTime); |
|
|
|
//最后一笔的结束时间
|
|
|
|
String[] pointsLast = canvasPoints.get(canvasPoints.size() - 1).getValue().split(";"); |
|
|
|
if(pointsLast.length <= 0){ |
|
|
@ -761,7 +773,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
//超出占比
|
|
|
|
parameter.setBeyondProportion(htPatientCanvas.getBeyondProportion()); |
|
|
|
//画图总时长
|
|
|
|
parameter.setTotalDuration(endTime + parameter.getStartDuration()); |
|
|
|
parameter.setTotalDuration(endTime - startTime + parameter.getStartDuration()); |
|
|
|
//总笔画数
|
|
|
|
parameter.setLineNums(canvasPoints.size()); |
|
|
|
//共几分钟
|
|
|
|