|
|
@@ -53,7 +53,7 @@ public interface InquiryRemindDao extends JpaRepository<InquiryRemind, Long>, Jp
|
|
|
* @param venduseruu
|
|
|
* @param venduu
|
|
|
*/
|
|
|
- @Query(value = "select * from purc$inquiry$remind where ir_date > date_add(now(),interval -16 hour) and ir_date < now() and ir_venduseruu =?1 and ir_venduu = ?2",nativeQuery = true)
|
|
|
+ @Query(value = "select * from purc$inquiry$remind where ir_date > date_add(now(),interval -16 HOUR) and ir_date < now() and ir_venduseruu =?1 and ir_venduu = ?2 and ir_enuu != ir_venduu",nativeQuery = true)
|
|
|
List<InquiryRemind> findInquiryRemind(BigInteger venduseruu,BigInteger venduu);
|
|
|
|
|
|
/**
|
|
|
@@ -61,7 +61,7 @@ public interface InquiryRemindDao extends JpaRepository<InquiryRemind, Long>, Jp
|
|
|
* @param venduseruu
|
|
|
* @param venduu
|
|
|
*/
|
|
|
- @Query(value = "select * from purc$inquiry$remind where ir_date > date_add(now(),interval -5 hour) and ir_date < now() and ir_venduseruu =?1 and ir_venduu = ?2",nativeQuery = true)
|
|
|
+ @Query(value = "select * from purc$inquiry$remind where ir_date > date_add(now(),interval -5 hour) and ir_date < now() and ir_venduseruu =?1 and ir_venduu = ?2 and ir_enuu != ir_venduu ",nativeQuery = true)
|
|
|
List<InquiryRemind> findInquiryRemind1(BigInteger venduseruu,BigInteger venduu);
|
|
|
|
|
|
/**
|
|
|
@@ -69,7 +69,7 @@ public interface InquiryRemindDao extends JpaRepository<InquiryRemind, Long>, Jp
|
|
|
* @param venduseruu
|
|
|
* @param venduu
|
|
|
*/
|
|
|
- @Query(value = "select * from purc$inquiry$remind where ir_date > date_add(now(),interval -3 hour) and ir_date < now() and ir_venduseruu =?1 and ir_venduu = ?2",nativeQuery = true)
|
|
|
+ @Query(value = "select * from purc$inquiry$remind where ir_date > date_add(now(),interval -3 hour) and ir_date < now() and ir_venduseruu =?1 and ir_venduu = ?2 and ir_enuu != ir_venduu",nativeQuery = true)
|
|
|
List<InquiryRemind> findInquiryRemind2(BigInteger venduseruu,BigInteger venduu);
|
|
|
|
|
|
/**
|