AppVersionDao.java 693 Bytes
package com.brframework.webapppatch.dao;

import com.brframework.commondb.core.CommonRepository;
import com.brframework.webapppatch.entity.AppVersion;

/**
 * App版本更新
 * @author xu
 * @date 2019/11/14 21:12
 */
public interface AppVersionDao extends CommonRepository<Long, AppVersion> {

    /**
     * 以时间排序,获取某个状态的最新版本
     * @param os
     * @param updateStatus
     * @return
     */
    AppVersion findTop1ByOsAndUpdateStatusOrderByCreateDateDesc(String os, Integer updateStatus);

    /**
     * 以时间排序,获取当前最新的版本
     * @param os
     * @return
     */
    AppVersion findTop1ByOsOrderByCreateDateDesc(String os);
}