|
|
@ -23,6 +23,8 @@ import com.docus.server.collect.web.utils.RedisMq;
|
|
|
|
import com.docus.server.collect.web.utils.SpringRestTemplateUtils;
|
|
|
|
import com.docus.server.collect.web.utils.SpringRestTemplateUtils;
|
|
|
|
import com.docus.server.common.message.MqMessage;
|
|
|
|
import com.docus.server.common.message.MqMessage;
|
|
|
|
import com.docus.server.common.util.SpringUtils;
|
|
|
|
import com.docus.server.common.util.SpringUtils;
|
|
|
|
|
|
|
|
import com.docus.server.record.common.pojo.entity.TBasic;
|
|
|
|
|
|
|
|
import com.docus.server.record.service.ITBasicService;
|
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@ -62,6 +64,8 @@ public abstract class BaseViewJobResultImpl implements IJobResult<List<Map<Strin
|
|
|
|
private RedisMq redisMq;
|
|
|
|
private RedisMq redisMq;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private IAfViewCollectionLogService afViewCollectionLogService;
|
|
|
|
private IAfViewCollectionLogService afViewCollectionLogService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private ITBasicService basicService;
|
|
|
|
|
|
|
|
|
|
|
|
private String jzhkey = "FVISIT_ID";
|
|
|
|
private String jzhkey = "FVISIT_ID";
|
|
|
|
private String syscodekey = "SYS_CODE";
|
|
|
|
private String syscodekey = "SYS_CODE";
|
|
|
@ -449,20 +453,26 @@ public abstract class BaseViewJobResultImpl implements IJobResult<List<Map<Strin
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private List<Map<String, Object>> getBasicForZYHs(List<String> zyhs) {
|
|
|
|
private List<Map<String, Object>> getBasicForZYHs(List<String> zyhs) {
|
|
|
|
List<Map<String, Object>> datas = new ArrayList<>();
|
|
|
|
|
|
|
|
String url = String.format("http://localhost:%s", getPort());
|
|
|
|
|
|
|
|
String requstParam = JSON.toJSONString(zyhs);
|
|
|
|
|
|
|
|
String sendPost = SpringRestTemplateUtils.getInstance().sendPost(url + "/api/conllection/getBasicForZYHs", requstParam, MediaType.APPLICATION_JSON, null, true);
|
|
|
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
datas = objectMapper.readValue(sendPost, new TypeReference<List<Map<String, Object>>>() {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
|
|
|
log.error("解析失败:" + sendPost);
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return datas;
|
|
|
|
List<TBasic> tBasics = basicService.findByList("inpatientNo", zyhs);
|
|
|
|
|
|
|
|
String s = com.docus.core.util.json.JSON.toJSON(tBasics);
|
|
|
|
|
|
|
|
return com.docus.core.util.json.JSON.fromJSONWithGeneric(s, new TypeReference<List<Map<String, Object>>>() {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List<Map<String, Object>> datas = new ArrayList<>();
|
|
|
|
|
|
|
|
// String url = String.format("http://localhost:%s", getPort());
|
|
|
|
|
|
|
|
// String requstParam = JSON.toJSONString(zyhs);
|
|
|
|
|
|
|
|
// String sendPost = SpringRestTemplateUtils.getInstance().sendPost(url + "/api/conllection/getBasicForZYHs", requstParam, MediaType.APPLICATION_JSON, null, true);
|
|
|
|
|
|
|
|
// ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
|
|
|
// try {
|
|
|
|
|
|
|
|
// datas = objectMapper.readValue(sendPost, new TypeReference<List<Map<String, Object>>>() {
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// } catch (Exception ex) {
|
|
|
|
|
|
|
|
// log.error("解析失败:" + sendPost);
|
|
|
|
|
|
|
|
// return null;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// return datas;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|