人员,工资卡,合同优化修改
This commit is contained in:
parent
ba4280215f
commit
924271bf2b
|
|
@ -198,7 +198,7 @@ public class FileUtilController {
|
||||||
return R.fail("资源表id不能为空");
|
return R.fail("资源表id不能为空");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Integer num= service.delFileListById( id,sourceId,sourceType,sourceTable);
|
Integer num= service.delFileListById( id,sourceId,sourceTable,sourceType);
|
||||||
return R.ok(num);
|
return R.ok(num);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public interface FileUtilMapper {
|
||||||
* @param sourceTable
|
* @param sourceTable
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<UploadFileVo> getFileList(@Param("id") String id,@Param("sourceId") String sourceId, @Param("sourceType")String sourceType, @Param("sourceTable")String sourceTable);
|
List<UploadFileVo> getFileList(@Param("id") String id,@Param("sourceId") String sourceId , @Param("sourceTable")String sourceTable, @Param("sourceType")String sourceType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除文件集合
|
* 删除文件集合
|
||||||
|
|
@ -51,7 +51,7 @@ public interface FileUtilMapper {
|
||||||
* @param sourceTable
|
* @param sourceTable
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
int delFileListBySourceId(@Param("id")String id,@Param("sourceId")String sourceId, @Param("sourceType")String sourceType, @Param("sourceTable")String sourceTable);
|
int delFileListBySourceId(@Param("id")String id,@Param("sourceId")String sourceId, @Param("sourceTable")String sourceTable, @Param("sourceType")String sourceType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询数据集合
|
* 查询数据集合
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ public class FileUtilsServiceImpl {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public List<UploadFileVo> getFileList(String id, String sourceId, String sourceTable, String sourceType) throws Exception {
|
public List<UploadFileVo> getFileList(String id, String sourceId, String sourceTable, String sourceType) throws Exception {
|
||||||
List<UploadFileVo> list=mapper.getFileList(id,sourceId,sourceType,sourceTable);
|
List<UploadFileVo> list=mapper.getFileList(id,sourceId,sourceTable,sourceType);
|
||||||
for (UploadFileVo vo:list){
|
for (UploadFileVo vo:list){
|
||||||
String url=minioUtils.getFileUrl(vo.getBucketName(),vo.getFilePath(),60*60*12);
|
String url=minioUtils.getFileUrl(vo.getBucketName(),vo.getFilePath(),60*60*12);
|
||||||
vo.setLsUrl(url);
|
vo.setLsUrl(url);
|
||||||
|
|
@ -308,9 +308,9 @@ public class FileUtilsServiceImpl {
|
||||||
* @param sourceType
|
* @param sourceType
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Integer delFileListById(String id, String sourceId, String sourceTable, String sourceType) {
|
public Integer delFileListById(String id, String sourceId,String sourceTable,String sourceType) {
|
||||||
List<UploadFileVo> list=mapper.getFileList(id,sourceId,sourceType,sourceTable);
|
List<UploadFileVo> list=mapper.getFileList(id,sourceId,sourceTable,sourceType);
|
||||||
int num=mapper.delFileListBySourceId(id,sourceId,sourceType,sourceTable);
|
int num=mapper.delFileListBySourceId(id,sourceId,sourceTable,sourceType);
|
||||||
if(num>0){
|
if(num>0){
|
||||||
remoteFile(list);
|
remoteFile(list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue