ApkMapper.java 907 Bytes
package com.huaheng.pc.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaheng.mobile.download.ApkInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApkMapper extends BaseMapper<ApkInfo> {


  //  @Select("select * from apkinfo where pkgName=#{pkgName}")
    List<ApkInfo> getApkInfoByPkgName(String pkgName);

  //  @Options(useGeneratedKeys = true, keyProperty = "id")
  // @Insert("insert into apkinfo(pkgName, versionCode, versionName, url, md5) values(#{pkgName},#{versionCode},#{versionName},#{url},#{md5})")
    int insertApkInfo(@Param("pkgName") String pkgName, @Param("versionCode") int versionCode, @Param("versionName") String versionName, @Param("url") String url, @Param("md5") String md5);

 //   @Options(useGeneratedKeys = true, keyProperty = "id")
  //  @Insert("delete from apkinfo")
    void clearApkInfo();

}