|
|
|
@ -7,6 +7,8 @@ import com.docus.core.util.DateUtil;
|
|
|
|
|
import com.docus.core.util.Func;
|
|
|
|
|
import com.docus.server.report.api.ShunDePeopleService;
|
|
|
|
|
import com.docus.server.report.api.dto.SdJxReportDto;
|
|
|
|
|
import com.docus.server.report.api.dto.SdNurseInsertSugarRequest;
|
|
|
|
|
import com.docus.server.report.api.dto.SdNurseInsertSugarResponse;
|
|
|
|
|
import com.docus.server.report.api.dto.SdPacsServerConfig;
|
|
|
|
|
import com.docus.server.report.client.JaxWsDynamicClient;
|
|
|
|
|
import com.docus.server.report.config.SdRyReportQueryConfig;
|
|
|
|
@ -39,6 +41,7 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
|
private static final Lock PACS_PDF_LOCK = new ReentrantLock();
|
|
|
|
|
private static final Lock INSPECT_REPORT_LOCK = new ReentrantLock();
|
|
|
|
|
private static final Lock LIS_REPORT_LOCK = new ReentrantLock();
|
|
|
|
|
private static final Lock NURSE_INSERT_SUGAR_LOCK = new ReentrantLock();
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private SdRyReportQueryConfig sdRyReportQueryConfig;
|
|
|
|
@ -151,7 +154,24 @@ public class ShunDePeopleServiceImpl implements ShunDePeopleService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public SdNurseInsertSugarResponse getNurseInsertSugarReport(SdNurseInsertSugarRequest request) {
|
|
|
|
|
String randomUuid = Func.randomUUID();
|
|
|
|
|
NURSE_INSERT_SUGAR_LOCK.lock();
|
|
|
|
|
try {
|
|
|
|
|
String requestParam = Func.toJson(request);
|
|
|
|
|
log.info("[{}]查询移动护理 请求参数:{}", randomUuid, requestParam);
|
|
|
|
|
String respBody = sendPost(sdRyReportQueryConfig.getReportQueryNurseInsertSugarUrl(), requestParam);
|
|
|
|
|
log.info("[{}]查询移动护理 响应:{}", randomUuid, respBody);
|
|
|
|
|
TimeUnit.MILLISECONDS.sleep(sdRyReportQueryConfig.getReportQueryNurseInsertSugarInterval());
|
|
|
|
|
return Func.readJson(respBody, SdNurseInsertSugarResponse.class);
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
log.error("["+randomUuid+"]"+"查询移动护理出错了:" + ex.getMessage(), ex);
|
|
|
|
|
return new SdNurseInsertSugarResponse();
|
|
|
|
|
} finally {
|
|
|
|
|
NURSE_INSERT_SUGAR_LOCK.unlock();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private String organizationQuerySdRyInspectReportUrl(String reportQueryLisUrl) {
|
|
|
|
|
return reportQueryLisUrl + "/query?uuid=" + IdUtil.standardUUID() +
|
|
|
|
|
"&action=" + sdRyReportQueryConfig.getReportQueryInspectAction() +
|
|
|
|
|