Commit ec63d84f authored by 杨钧's avatar 杨钧

用户操作日志按时间正序排列

parent 75e89692
......@@ -8,7 +8,7 @@ import java.util.List;
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)
@Query(value = "select * from operate_log where loan_id =?1 and status = 1 ORDER BY created_at ASC", nativeQuery = true)
List<OperateLogModel> findLogsByLoanId(Long loanId);
@Query(value = "select count(1) from operate_log where loan_id =?1 and status = 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