Mybatis返回int类型为空时报错 attempted to return null from a method with a primitive return type (int)
/**
* //查询上传文件是否存在
* @param fileMD5
* @param userID
* @param fileUrl
* @return
*/
@Select("SELECT userspaceid FROM r_userspace where userID=#{userID} and fileMD5=#{fileMD5} and fileUrl=#{fileUrl}")
Public int selectupFile(@Param("fileMD5")String fileMD5,@Param("userID")int userID,@Param