|
@@ -59,19 +59,17 @@ public class LisDockService {
|
|
|
this.service = service;
|
|
|
}
|
|
|
|
|
|
- public ResultVo<Map<String, Object>> scanBarCode(String barCode) throws Exception {
|
|
|
- JSONObject customerInfo = getCustomerInfo(barCode);
|
|
|
+ public ResultVo<Map<String, Object>> scanBarCode(QueryInspectionParam param) throws Exception {
|
|
|
+ JSONObject customerInfo = getCustomerInfo(param.getContent());
|
|
|
if (null == customerInfo) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER, "未查询到此条码对应的身份信息。");
|
|
|
}
|
|
|
Map<String, Object> map = new HashMap<>(Capacity.TWO);
|
|
|
map.put("customerInfo", customerInfo);
|
|
|
String tjNo = dao.selectTjNo(customerInfo.getString("idCard"));
|
|
|
- QueryInspectionParam param = new QueryInspectionParam();
|
|
|
+ map.put("tjNo", tjNo);
|
|
|
param.setType(3);
|
|
|
param.setContent(tjNo);
|
|
|
- param.setStart(DateFormat.getDateInstance().parse("2021-02-20"));
|
|
|
- param.setEnd(new Date());
|
|
|
List<InspectionsIndex> list = service.queryInspectionsIndex(param).get().getData();
|
|
|
list.removeIf(item -> !item.getAPLY_CTNT().contains("大便培养") &&
|
|
|
!item.getAPLY_CTNT().contains("甲肝抗体") && !item.getAPLY_CTNT().contains("戊肝抗体"));
|
|
@@ -79,6 +77,14 @@ public class LisDockService {
|
|
|
return ResultVoUtil.success(map);
|
|
|
}
|
|
|
|
|
|
+ public ResultVo<List<InspectionsIndex>> getIndexByTjNo(QueryInspectionParam param) throws Exception {
|
|
|
+ param.setType(3);
|
|
|
+ List<InspectionsIndex> list = service.queryInspectionsIndex(param).get().getData();
|
|
|
+ list.removeIf(item -> !item.getAPLY_CTNT().contains("大便培养") &&
|
|
|
+ !item.getAPLY_CTNT().contains("甲肝抗体") && !item.getAPLY_CTNT().contains("戊肝抗体"));
|
|
|
+ return ResultVoUtil.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
public ResultVo<Map<String, String>> pushSelectedResult(PushResultParam param) throws ExecutionException, InterruptedException {
|
|
|
String itemCode;
|
|
|
CustomerInfo customerInfo = param.getCustomerInfo();
|