Skip to content

Commit

Permalink
Enable export of single barcodes even if not WorkflowStatus Specialis…
Browse files Browse the repository at this point in the history
…t Reviewd
  • Loading branch information
GenieTim committed Nov 26, 2023
1 parent 03d2548 commit 033d7ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ public void start() {
SpecimenLifeCycle sls = new SpecimenLifeCycle();
if (specimenToExport == null) {
Map<String, Object> queryParams = new HashMap<>();
queryParams.put("workFlowStatus", WorkFlowStatus.STAGE_CLEAN);
queryParams.put("nahimaExported", false);
if (this.oneSpecimenBarcode != null && !this.oneSpecimenBarcode.equals("")) {
queryParams.put("barcode", this.oneSpecimenBarcode);
} else {
queryParams.put("workFlowStatus", WorkFlowStatus.STAGE_CLEAN);
}
specimenToExport = sls.findBy(queryParams);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public List<T> findBy(Map<String, Object> propertyValueMap, int maxResults, int
p = cb.like(propertyToMatch, (String) entry.getValue());
} else {
Object value = entry.getValue();
if (value instanceof String || value instanceof Date || value instanceof java.lang.Number) {
if (value instanceof Boolean || value instanceof String || value instanceof Date || value instanceof java.lang.Number) {
p = cb.equal(propertyToMatch, entry.getValue());
} else {
log.warn("Will not handle property: " + entry.getKey() + " with value type " + " " + value.getClass().toGenericString());
Expand Down

0 comments on commit 033d7ed

Please sign in to comment.