본문 바로가기

Programming313

[typeorm] countBy 사용시에 동일한 컬럼 두번 정의 불가 TypeORM의 countBy()는 where 조건을 객체 형태로 받기 때문에, 같은 컬럼에 여러 개의 조건을 적용하려면 배열을 사용해야 한다고 하네요 ,,배열 안에 동일한 컬럼명을 두번 명시 할 수가 없었습니다MoreThanOrEqual ,LessThanOrEqual  대신 Between 으로 처리 해 보았습니다. ex) async getUnReadCount(userToken : TokenPayload) : Promise { this.logger.log(`${this.getUnReadCount.name} Occurred`); const startDt = `${CnvDateStrHelper.getDaySpanStr(-7)}000000`; const endDt = `${CnvDateStr.. 2025. 3. 20.
[JAVA] File Header 확인 하여 , TIFF 또는 PDF 파일 여부 체크 예제 private boolean debugOutputMode = false; /** * * @param fileHeader * @return True 일경우 PDF 또는 TIFF 파일 */ public boolean CheckFileHeaderTiffOrPdf(byte[] fileHeader) { try { String tiffHeaderChk = new String(Arrays.copyOfRange(fileHeader, 0, 2)); if(debugOutputMode) System.out.println(String.format("tiffHeaderChk=%s",tiffHeaderChk)); //Little Endian 또는 BigEndian 일 경우 i.. 2025. 3. 16.
[nestjs] java jar library 함수 호출 예제 1. Jar 함수는 아래와 같이 작성 하였습니다. 2. nestjs 에서 jar Library의 함수를 호출 한 방법 입니다. node java npm을 설치 해주었습니다.$ yarn add java instance의 함수 호출 시에는 함수명 끝 부분에 Sync를 붙여야 정상적으로 호출 됩니다.ex) LEAEncryptStr( "" ,"",""); -> LEAEncryptStrSync ( "" ,"","");   encryption.ts 파일 내용 입니다.export class Encryption { private java = require("java"); private leaCipher = null; constructor() { this.java.classpath.push('./jar.. 2025. 2. 26.
[nestjs] windows powershell 환경에서 HTTPS 인증서 생성 및 적용 방법 입니다. 출처 :https://xionwcfm.tistory.com/255 윈도우 환경에서 mkcert 사용해보자🐕 mkcert...를 사용해봅시다. https://github.com/FiloSottile/mkcert GitHub - FiloSottile/mkcert: A simple zero-config tool to make locally trusted development certificates with any names you'd lik A simple zero-config tool to make locally trusted dxionwcfm.tistory.comhttps://msm1307.tistory.com/179 nestjs https 적용 (feat: mkcert)mkcert란?로컬 개발 환경에서.. 2025. 2. 26.