feat: 게시판 관리 반영

dev
minuk926 3 years ago
parent f5894c88df
commit 483ae3580a

@ -7,5 +7,5 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
public interface IBoardRepository extends JpaRepository<MinCivBoard680, Long> { public interface IBoardRepository extends JpaRepository<MinCivBoard680, Long>, IBoardRepositoryCustom {
} }

@ -0,0 +1,10 @@
package com.xit.biz.ctgy.repository;
import com.xit.biz.ctgy.entity.MinCivBoard680;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface IBoardRepositoryCustom {
Page<MinCivBoard680> findAll2(final MinCivBoard680 entity, Pageable pageable);
}

@ -0,0 +1,35 @@
package com.xit.biz.ctgy.repository;
import com.querydsl.jpa.impl.JPAQueryFactory;
import com.xit.biz.ctgy.entity.MinCivBoard680;
import lombok.AllArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
@AllArgsConstructor
public class IBoardRepositoryImpl implements IBoardRepositoryCustom{
private final JPAQueryFactory queryFactory;
@Override
public Page<MinCivBoard680> findAll2(final MinCivBoard680 entity, Pageable pageable){
/*
SELECT Ci_code,
Ci_name,
ci_contentNo,
Ci_title,
Ci_nalja,
Ci_step,
Ci_revel,
Ci_ref,
ci_hit
FROM MIN_CIV_BOARD680
WHERE Ci_code IN (SELECT Ci_code
FROM (SELECT Ci_code, rownum RCNT
FROM MIN_CIV_BOARD680 "& strSearchSQL1 &"
ORDER BY Ci_ref DESC, ci_step ASC, Ci_code DESC))
*/
return null;
}
}
Loading…
Cancel
Save