Skip to content

Instantly share code, notes, and snippets.

@geraldodev
Created June 16, 2020 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geraldodev/942cc978490df50616f49517cfa7323d to your computer and use it in GitHub Desktop.
Save geraldodev/942cc978490df50616f49517cfa7323d to your computer and use it in GitHub Desktop.
;; dependencias de excel-templates joda-time/joda-time {:mvn/version "2.7"} org.clojure/data.zip {:mvn/version "0.1.1"} org.apache.poi/ooxml-schemas {:mvn/version "1.4"} ;; era 1.1 org.apache.commons/commons-lang3 {:mvn/version "3.4"}
diff build.clj ~/projetos/api/src/main/excel_templates/build.clj
6c6
< [org.apache.poi.ss.usermodel Cell Row DateUtil WorkbookFactory]
---
> [org.apache.poi.ss.usermodel Cell Row Row$MissingCellPolicy DateUtil WorkbookFactory CellType]
50c50
< (= (.getCellType cell) Cell/CELL_TYPE_FORMULA))
---
> (= (.getCellType cell) CellType/FORMULA))
63c63
< (= cell-type Cell/CELL_TYPE_STRING)
---
> (= cell-type CellType/STRING)
66c66
< (= cell-type Cell/CELL_TYPE_NUMERIC)
---
> (= cell-type CellType/NUMERIC)
71c71
< (= cell-type Cell/CELL_TYPE_BOOLEAN)
---
> (= cell-type CellType/BOOLEAN)
74c74
< (= cell-type Cell/CELL_TYPE_FORMULA)
---
> (= cell-type CellType/FORMULA)
77c77
< (= cell-type Cell/CELL_TYPE_BLANK)
---
> (= cell-type CellType/BLANK)
132c132
< (when-let [src-cell (.getCell src-row cell-num Row/RETURN_BLANK_AS_NULL)]
---
> (when-let [src-cell (.getCell src-row cell-num Row$MissingCellPolicy/RETURN_BLANK_AS_NULL)]
170c170,174
< (.createCell dst-row cell-num))]
---
> (.createCell dst-row cell-num))
> ]
> ;; era
> ; (.setCellStyle dst-cell
> ; (->> src-cell .getCellStyle .getIndex (.getCellStyleAt wb)))
172c176,177
< (->> src-cell .getCellStyle .getIndex (.getCellStyleAt wb)))))))
---
> (->> src-cell .getCellStyle .getIndex .intValue (.getCellStyleAt wb)))
> ))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment