刘小明
2024-08-07 e5ca62a8fb0bf2fef9d305cde0a6edc2cf30e506
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/global/WebFileCtrl.java
@@ -25,7 +25,6 @@
@Slf4j
@RestController
@RequestMapping(path="webFile")
@SuppressWarnings("unchecked")//java版本越高,对泛型约束越严,所以配置SuppressWarnings("unchecked"
public class WebFileCtrl {
    @Autowired
@@ -42,8 +41,8 @@
    /**
     * 上传照片图片文件 (当前只对png jpg格式图片支持缩略图)
     * @param file
     * @return
     * @param file web端上传文件的post对象
     * @return 返回结果
     */
    @PostMapping("/upPhoto")
    @SsoPowerAop(power = "-1") //登录与权限同时验证
@@ -88,8 +87,8 @@
    /**
     * 上传录音音频文件
     * @param file
     * @return
     * @param file web端上传文件的post对象
     * @return 返回结果
     */
    @PostMapping("/upPhone")
    @SsoPowerAop(power = "-1")
@@ -134,8 +133,8 @@
    /**
     * 上传录像视频文件
     * @param file
     * @return
     * @param file web端上传文件的post对象
     * @return 返回结果
     */
    @PostMapping("/upVideo")
    @SsoPowerAop(power = "-1")
@@ -180,8 +179,8 @@
    /**
     * 上传文档文件
     * @param file
     * @return
     * @param file web端上传文件的post对象
     * @return 返回结果
     */
    @PostMapping("/upDocument")
    @SsoPowerAop(power = "-1")
@@ -234,7 +233,7 @@
     * @param newName 文件新名称
     * @param hash  文件新名称的哈希值
     * @param filePath 文件服务端存储相对路径
     * @return
     * @return 数据记录主键
     */
    private Long saveFileInfo(String orgName, String extName, String newName, Integer hash, String filePath){
        OthFile po = new OthFile() ;