|
|
|
@ -3,7 +3,7 @@ package com.docus.server.ws.impl;
|
|
|
|
|
import com.docus.core.util.json.JSON;
|
|
|
|
|
import com.docus.log.annotation.TrackGroup;
|
|
|
|
|
import com.docus.log.context.TrackHelper;
|
|
|
|
|
import com.docus.server.collect.infrastructure.pojo.dto.ReportDTO;
|
|
|
|
|
import com.docus.server.archivefile.pojo.dto.ReportDTO;
|
|
|
|
|
import com.docus.server.visitor.VisitorProcessor;
|
|
|
|
|
import com.docus.server.ws.IReportServer;
|
|
|
|
|
import com.docus.server.ws.IReportService;
|
|
|
|
@ -22,36 +22,61 @@ public class ReportServerImpl implements IReportServer {
|
|
|
|
|
@Resource
|
|
|
|
|
private IReportService reportService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param message 原始报文
|
|
|
|
|
* @see com.docus.server.collect.infrastructure.dao.CollectTypeEnum 枚举
|
|
|
|
|
* @see com.docus.server.ws.convert.IConverter 通用转化器
|
|
|
|
|
* @see com.docus.server.ws.IWsResult 通用返回结果
|
|
|
|
|
* @see VisitorProcessor 通用处理器
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@TrackGroup(
|
|
|
|
|
group = "WEBSERVICE_XML_SA_REPORT", desc = "接收手麻报告信息",
|
|
|
|
|
group = "WEBSERVICE_XML_SA_REPORT",
|
|
|
|
|
beanNames = {"reportConverter", "wsReportResultImpl"},
|
|
|
|
|
processor = VisitorProcessor.class)
|
|
|
|
|
public String pushSAReport(String message) {
|
|
|
|
|
log.info("收到手麻消息:{}", message);
|
|
|
|
|
reportService.report(JSON.fromJSON((String) TrackHelper.getValue("jsonStr"), ReportDTO.class));
|
|
|
|
|
report();
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@TrackGroup(
|
|
|
|
|
group = "WEBSERVICE_XML_ICU_REPORT",
|
|
|
|
|
beanNames = {"reportConverter", "wsReportResultImpl"},
|
|
|
|
|
processor = VisitorProcessor.class)
|
|
|
|
|
public String pushICUReport(String message) {
|
|
|
|
|
log.info("收到重症消息:{}", message);
|
|
|
|
|
report();
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String pushICUReport(String icuReportMessage) {
|
|
|
|
|
@TrackGroup(
|
|
|
|
|
group = "WEBSERVICE_XML_EXAMINATION_REPORT",
|
|
|
|
|
beanNames = {"reportConverter", "wsReportResultImpl"},
|
|
|
|
|
processor = VisitorProcessor.class)
|
|
|
|
|
public String pushExaminationReport(String message) {
|
|
|
|
|
log.info("收到检验报告消息:{}", message);
|
|
|
|
|
report();
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String pushAddInspectionReport(String inspectionReportMessage) {
|
|
|
|
|
@TrackGroup(
|
|
|
|
|
group = "WEBSERVICE_XML_INSERT_INSPECTION_REPORT",
|
|
|
|
|
beanNames = {"reportConverter", "wsReportResultImpl"},
|
|
|
|
|
processor = VisitorProcessor.class)
|
|
|
|
|
public String pushAddInspectionReport(String message) {
|
|
|
|
|
log.info("收到检查报告新增消息:{}", message);
|
|
|
|
|
report();
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String pushUpdateInspectionReport(String inspectionReportMessage) {
|
|
|
|
|
@TrackGroup(
|
|
|
|
|
group = "WEBSERVICE_XML_UPDATE_INSPECTION_REPORT",
|
|
|
|
|
beanNames = {"reportConverter", "wsReportResultImpl"},
|
|
|
|
|
processor = VisitorProcessor.class)
|
|
|
|
|
public String pushUpdateInspectionReport(String message) {
|
|
|
|
|
log.info("收到检查报告更新消息:{}", message);
|
|
|
|
|
report();
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void report() {
|
|
|
|
|
reportService.report(JSON.fromJSON((String) TrackHelper.getValue("jsonStr"), ReportDTO.class));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|