|
@@ -71,10 +71,26 @@ public class PushFacade {
|
|
|
* @return
|
|
|
*/
|
|
|
public PushPlanDTO pushPlan(PushPlanVO pushPlanVO) {
|
|
|
+ Map<String, Object> debug = new LinkedHashMap<>();
|
|
|
+ long l1 = System.currentTimeMillis();
|
|
|
PushPlanDTO pushPlanDTO = new PushPlanDTO();
|
|
|
if (pushPlanVO.getOperationName() != null) {
|
|
|
+ WordCrfDTO wordCrfDTO = new WordCrfDTO();
|
|
|
+ wordCrfDTO.setOperationName(pushPlanVO.getOperationName());
|
|
|
+ // 标准词转换
|
|
|
+ long standStart = System.currentTimeMillis();
|
|
|
+ StandConvert standConvert = commonFacade.dataTypeGet(wordCrfDTO);
|
|
|
+ Map<String, Map<String, String>> standConvertMap = neoFacade.standConvertCrf(standConvert);
|
|
|
+ commonFacade.dataTypeSet(wordCrfDTO, standConvertMap);
|
|
|
+ CoreUtil.getDebugStr(standStart, "标准词转换耗时", debug);
|
|
|
+ // 推送随访计划
|
|
|
+ long pushStart = System.currentTimeMillis();
|
|
|
pushPlanDTO = followupPlanInfoFacade.getFollowUpPlans(pushPlanVO.getOperationName(), pushPlanVO.getHospitalId());
|
|
|
+ CoreUtil.getDebugStr(pushStart, "推送耗时", debug);
|
|
|
+ pushPlanDTO.setDebug(debug);
|
|
|
}
|
|
|
+ CoreUtil.getDebugStr(l1, "本次调用总计耗时", debug);
|
|
|
+
|
|
|
return pushPlanDTO;
|
|
|
}
|
|
|
}
|