Commit 4a673987 authored by shangying's avatar shangying

查询提现表单判断条件增加了一个是否有效

parent 206cf5da
...@@ -16,7 +16,7 @@ public interface LoanApplicationHistoryRepository extends CrudRepository<LoanApp ...@@ -16,7 +16,7 @@ public interface LoanApplicationHistoryRepository extends CrudRepository<LoanApp
LoanApplicationHistory findById(Long id); LoanApplicationHistory findById(Long id);
@Query(value = "select * from loan_application_history where id=?1 or user_id= ?1 order by id desc limit 1", nativeQuery = true) @Query(value = "select * from loan_application_history where id=?1 or user_id= ?1 and is_active= 1 order by id desc limit 1", nativeQuery = true)
LoanApplicationHistory findByIdOrUserId(Long id); LoanApplicationHistory findByIdOrUserId(Long id);
@Query(value = "select * from loan_application_history where user_id= ?1 and business_type= ?2 and is_active= 1 order by id desc limit 1", nativeQuery = true) @Query(value = "select * from loan_application_history where user_id= ?1 and business_type= ?2 and is_active= 1 order by id desc limit 1", nativeQuery = true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment