diff --git a/src/main/java/com/xit/biz/ctgy/repository/IJudgeRepository.java b/src/main/java/com/xit/biz/ctgy/repository/IJudgeRepository.java index 70180e0..21c35a3 100644 --- a/src/main/java/com/xit/biz/ctgy/repository/IJudgeRepository.java +++ b/src/main/java/com/xit/biz/ctgy/repository/IJudgeRepository.java @@ -12,7 +12,7 @@ import java.util.List; public interface IJudgeRepository extends JpaRepository { - @Query(value = "SELECT e.msMaincode FROM #{#entityName} e WHERE e.msDatagb = :msDatagb AND e.msChasu = :msChasu AND e.msSdate >= :msSdate AND e.msEdate <= :msEdate") + @Query(value = "SELECT e.msMaincode FROM #{#entityName} e WHERE e.msDatagb = :msDatagb AND e.msChasu = :msChasu AND e.msSdate = :msSdate AND e.msEdate = :msEdate") List findAllMsMaincode(@Param("msDatagb") String msDatagb, @Param("msChasu") Long msChasu, @Param("msSdate") LocalDate msSdate, @Param("msEdate")LocalDate msEdate); @Modifying diff --git a/src/main/java/com/xit/biz/ctgy/repository/IParkingRepository.java b/src/main/java/com/xit/biz/ctgy/repository/IParkingRepository.java index 7808b98..33e2484 100644 --- a/src/main/java/com/xit/biz/ctgy/repository/IParkingRepository.java +++ b/src/main/java/com/xit/biz/ctgy/repository/IParkingRepository.java @@ -11,7 +11,7 @@ import java.util.List; public interface IParkingRepository extends JpaRepository, IParkingRepositoryCustom { - @Query(value = "SELECT e.msMaincode FROM #{#entityName} e WHERE e.msChasu = :msChasu AND e.msSdate >= :msSdate AND e.msEdate <= :msEdate") + @Query(value = "SELECT e.msMaincode FROM #{#entityName} e WHERE e.msChasu = :msChasu AND e.msSdate = :msSdate AND e.msEdate = :msEdate") List findAllMsMaincode(@Param("msChasu") Long msChasu, @Param("msSdate")LocalDate msSdate, @Param("msEdate")LocalDate msEdate); @Modifying