mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
🔥 移除无用代码
This commit is contained in:
@@ -137,24 +137,6 @@ public class FileController {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取指定路径下的文件信息内容
|
||||
*
|
||||
* @param driveId
|
||||
* 驱动器 ID
|
||||
*
|
||||
* @param path
|
||||
* 文件全路径
|
||||
*
|
||||
* @return 该文件的名称, 路径, 大小, 下载地址等信息.
|
||||
*/
|
||||
@GetMapping("/directlink/{driveId}")
|
||||
public ResultBean directlink(@PathVariable(name = "driveId") Integer driveId, String path) {
|
||||
AbstractBaseFileService fileService = driveContext.get(driveId);
|
||||
return ResultBean.successData(fileService.getFileItem(path));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 校验密码
|
||||
* @param fileItemList
|
||||
|
||||
@@ -37,6 +37,18 @@ public interface ShortLinkConfigRepository extends JpaRepository<ShortLinkConfig
|
||||
" and (:dateFrom is null or create_date >= :dateFrom" +
|
||||
" and (:dateTo is null or create_date <= :dateTo) "
|
||||
)
|
||||
// @Query(nativeQuery = true,
|
||||
// value = " select * from SHORT_LINK where " +
|
||||
// " key like concat('%', :key,'%') " +
|
||||
// " and url like concat('%', :url,'%') " +
|
||||
// " and (:dateFrom is null or date_format(create_date, '%Y-%m-%d') >= date_format(:dateFrom, '%Y-%m-%d'))" +
|
||||
// " and (:dateTo is null or date_format(create_date, '%Y-%m-%d') <= date_format(:dateTo, '%Y-%m-%d')) ) ",
|
||||
// countQuery = " select count(1) from SHORT_LINK where " +
|
||||
// " key like concat('%', :key,'%') " +
|
||||
// " and url like concat('%', :url,'%') " +
|
||||
// " and (:dateFrom is null or date_format(create_date, '%Y-%m-%d') >= date_format(:dateFrom, '%Y-%m-%d'))" +
|
||||
// " and (:dateTo is null or date_format(create_date, '%Y-%m-%d') <= date_format(:dateTo, '%Y-%m-%d')) ) "
|
||||
// )
|
||||
Page<ShortLinkConfig> findByPage(String key, String url, Date dateFrom, Date dateTo, Pageable pageable);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user