|
|
@ -483,7 +483,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
log.info("报告单id:{},试题id:{}",param.getPatientReportId(),param.getQuestionId()); |
|
|
|
HtPatientCanvasExample canvasExample = new HtPatientCanvasExample(); |
|
|
|
canvasExample.createCriteria().andPatientReportIdEqualTo(param.getPatientReportId()).andQuestionIdEqualTo(param.getQuestionId()); |
|
|
|
canvasExample.setOrderByClause("begin_time DESC"); |
|
|
|
canvasExample.setOrderByClause("create_time DESC"); |
|
|
|
List<HtPatientCanvas> patientCanvasList = patientCanvasDao.selectByExample(canvasExample); |
|
|
|
log.info("查询画图记录:{}",patientCanvasList); |
|
|
|
if(CollectionUtil.isEmpty(patientCanvasList)){ |
|
|
@ -501,6 +501,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
patientCanvas.setQuestionId(htPatientCanvas.getQuestionId()); |
|
|
|
patientCanvas.setQuestionType(question.getType()); |
|
|
|
patientCanvas.setQuestionName(question.getQuestion()); |
|
|
|
patientCanvas.setOperateType(question.getOperateType()); |
|
|
|
patientCanvas.setBeginTime(htPatientCanvas.getBeginTime()); |
|
|
|
|
|
|
|
QuestionVo.Canvas canvas = new QuestionVo.Canvas(); |
|
|
@ -530,10 +531,11 @@ public class QuestionService implements IQuestionService { |
|
|
|
int b = 0; |
|
|
|
for(QuestionVo.Point point : canvasPoints){ |
|
|
|
if(a < 4){ |
|
|
|
point.setColor(b); |
|
|
|
a++; |
|
|
|
}else { |
|
|
|
b += c; |
|
|
|
a = 0; |
|
|
|
a = 1; |
|
|
|
} |
|
|
|
point.setColor(b); |
|
|
|
} |
|
|
@ -546,7 +548,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
a++; |
|
|
|
}else { |
|
|
|
b++; |
|
|
|
a = 0; |
|
|
|
a = 1; |
|
|
|
} |
|
|
|
point.setColor(colours.get(b)); |
|
|
|
} |
|
|
@ -565,9 +567,18 @@ public class QuestionService implements IQuestionService { |
|
|
|
parameter.setStartDuration(htPatientCanvas.getBeginTime() - htPatientCanvas.getOpenCanvasTime()); |
|
|
|
//获取轨迹信息
|
|
|
|
List<QuestionVo.Point> canvasPoints = patientCanvasDao.getCanvasPoints(htPatientCanvas.getId()); |
|
|
|
if(CollectionUtil.isEmpty(canvasPoints)){ |
|
|
|
return parameter; |
|
|
|
} |
|
|
|
//最后一笔的结束时间
|
|
|
|
String[] pointsLast = canvasPoints.get(canvasPoints.size() - 1).getValue().split(";"); |
|
|
|
if(pointsLast.length <= 0){ |
|
|
|
return parameter; |
|
|
|
} |
|
|
|
String[] split = pointsLast[pointsLast.length - 1].split(","); |
|
|
|
if(split.length <= 0){ |
|
|
|
return parameter; |
|
|
|
} |
|
|
|
long endTime = Long.parseLong(split[split.length - 1]); |
|
|
|
//超出占比
|
|
|
|
parameter.setBeyondProportion(htPatientCanvas.getBeyondProportion()); |
|
|
@ -594,7 +605,13 @@ public class QuestionService implements IQuestionService { |
|
|
|
continue; |
|
|
|
} |
|
|
|
String[] s = a[0].split(","); |
|
|
|
if(s.length <= 0){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
String[] e = a[a.length - 1].split(","); |
|
|
|
if(e.length <= 0){ |
|
|
|
continue; |
|
|
|
} |
|
|
|
long duration = Long.parseLong(e[e.length - 1]) - Long.parseLong(s[s.length - 1]); |
|
|
|
lineParameter.setDuration(duration); |
|
|
|
//长度
|
|
|
|