일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 옵저버블
- ajax 사용 예시
- angular modal
- angular route
- flex-1
- formgroup
- 셀렉트박스 커스텀
- 앵귤러 애니메이션
- summary
- Ionic modal
- Angular Router
- Router
- 아이오닉 스크롤 이벤트
- 호버
- 스크롤 이벤트
- 스크롤 이벤트 감지
- angular button
- ApexChart
- Oracle LISTAGG 사용 예시
- 모달
- scroll
- 앵귤러 모달
- route
- TAILWIND
- mysql if
- 검색
- prisma
- modal
- angular animation
- egov spring ajax 사용 예시
- Today
- Total
목록IT (598)
깜놀하는 해므찌로
const uniqueEntities = Array.from( new Set(entities.map((entity) => entity.user.id)) ); const uniqueUsers = await this.prismaService.user.findMany({ where: { id: { in: uniqueEntities, }, }, });
async search(option: PaginationInfluencerRequestOptionDTO): Promise { // Define the 'where' condition for filtering const where: Prisma.InfluencerRequestWhereInput = { content: { contains: option.query }, deletedAt: null || undefined, }; // Define the 'orderBy' conditi..
async applyRequest(id: string, admin: AdminDTO): Promise { // Tx: 하나의 작업 단위로 묶기 return this.prismaService.$transaction(async (tx) => { // create 가 실패한 경우 중괄호 내부 요소 전부 rollback const created = await tx.influencerRequest.update({ data: { status: InfluencerRequestStatus.COMPLETED, adminId: admin.id, }, where: { id }, }); // 위 입력이 성공할 경우 로그 입력 await tx.log.create({ data: { content: '승인 처리', influenc..

0. 마우스를 가져다 대면 유저 테이블을 조회한다는 사실을 알 수 있습니다. const entities = await this.prismaService.influencerRequest.findMany({ where, orderBy, take: option.pageSize, skip: (option.pageNo - 1) * option.pageSize, include: { // 사용자 정보를 포함하여 조회 user: { select: { nickname: true, username: true }, }, }, }); 1. include 를 활용하여 user 테이블을 조회합니다. 2. 사용할 컬럼만 지목해서 가져옵니다. (닉네임, 성명) 3. true 를 명시하면 해당 컬럼 데이터도 가져오겠다는 뜻입니다.
등록 1. 앵귤러 제공 ngClass 디렉티브를 활용하여 조건에 따라 등록 버튼을 막을 수 있습니다.

model Category { id String @id @default(uuid()) region Region name String bjdongs Bjdong[] createdAt DateTime @default(now()) deletedAt DateTime? admin Admin @relation(fields: [adminId], references: [id]) adminId String } model Sido { id String @id @default(uuid()) name String code String sigungus Sigungu[] bjdongs Bjdong[] } model Sigungu { id String @id @default(uuid()) name String code String..

0. 프로젝트 최상단 라인에 배포를 실행할 sh 및 pem 확장자 파일 생성 #!/bin/bash HOST=123.123.123.7 echo "🚀 페이지 배포를 시작합니다." echo "🛠️ 프로젝트를 빌드합니다." nx build landing if [ $? -eq 0 ] then echo "✅ 프로젝트 빌드를 성공했습니다." else echo "🚫 프로젝트 빌드를 실패했습니다. 배포를 종료합니다." exit 1 fi echo "📁 빌드된 파일을 서버에 전송합니다." ssh -i scripts/private_key.pem -o StrictHostKeyChecking=no ubuntu@$HOST "rm -rf /home/ubuntu/landing/*" ssh -i scripts/private_key.pe..