Commit 38aefe0e authored by 杨钧's avatar 杨钧

增加 status状态判断

parent 83893877
......@@ -11,6 +11,6 @@ public interface OperateLogRepo extends JpaRepository<OperateLogModel, Long> {
@Query(value = "select * from operate_log where loan_id =?1 and status = 1 ORDER BY id DESC", nativeQuery = true)
List<OperateLogModel> findLogsByLoanId(Long loanId);
@Query(value = "select count(1) from operate_log where loan_id =?1", nativeQuery = true)
@Query(value = "select count(1) from operate_log where loan_id =?1 and status = 1", nativeQuery = true)
Long findLogsCountsByLoanId(Long loanId);
}
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