Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
015210d5a3
|
|
@ -89,7 +89,6 @@ public class PmWorkerServiceImpl implements PmWorkerService{
|
|||
int j = mapper.insertEinPro(record);
|
||||
//3.bm_worker_ein_pro_record
|
||||
int k = mapper.insertEinProRecord(record);
|
||||
//4.pm_user 添加人员登录表 TODO
|
||||
}
|
||||
|
||||
private void addWorkerWageCardDataAndContract(PmWorker record, List<WebFileDto> fileMsg) {
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ public class FileUtilController {
|
|||
return R.fail("资源表id不能为空");
|
||||
}
|
||||
}
|
||||
Integer num= service.delFileListById( id,sourceId,sourceType,sourceTable);
|
||||
Integer num= service.delFileListById( id,sourceId,sourceTable,sourceType);
|
||||
return R.ok(num);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public interface FileUtilMapper {
|
|||
* @param sourceTable
|
||||
* @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
|
||||
* @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
|
||||
*/
|
||||
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){
|
||||
String url=minioUtils.getFileUrl(vo.getBucketName(),vo.getFilePath(),60*60*12);
|
||||
vo.setLsUrl(url);
|
||||
|
|
@ -308,8 +308,8 @@ public class FileUtilsServiceImpl {
|
|||
* @param sourceType
|
||||
* @return
|
||||
*/
|
||||
public Integer delFileListById(String id, String sourceId, String sourceTable, String sourceType) {
|
||||
List<UploadFileVo> list=mapper.getFileList(id,sourceId,sourceType,sourceTable);
|
||||
public Integer delFileListById(String id, String sourceId,String sourceTable,String sourceType) {
|
||||
List<UploadFileVo> list=mapper.getFileList(id,sourceId,sourceTable,sourceType);
|
||||
int num=mapper.delFileListBySourceId(id,sourceId,sourceTable,sourceType);
|
||||
if(num>0){
|
||||
remoteFile(list);
|
||||
|
|
|
|||
Loading…
Reference in New Issue