| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.shop.domain.dto.FileDto; |
| | | import com.ruoyi.shop.domain.dto.MgtShopTaskPageDto; |
| | | import com.ruoyi.shop.domain.dto.StaffShopTaskPageDto; |
| | | import com.ruoyi.shop.domain.pojo.task.ShopTaskRecord; |
| | |
| | | if(mgtShopTaskRecordPageVoList!=null&&!mgtShopTaskRecordPageVoList.isEmpty()){ |
| | | Long followId; |
| | | List<TaskFile> taskFileList; |
| | | List<String> picture = new ArrayList<>(); |
| | | List<String> video = new ArrayList<>(); |
| | | List<String> audio = new ArrayList<>(); |
| | | List<FileDto> picture = new ArrayList<>(); |
| | | List<FileDto> video = new ArrayList<>(); |
| | | List<FileDto> audio = new ArrayList<>(); |
| | | Long userId; |
| | | SysUser sysUser; |
| | | for(MgtShopTaskRecordPageVo mgtShopTaskRecordPageVo : mgtShopTaskRecordPageVoList){ |
| | |
| | | followId = mgtShopTaskRecordPageVo.getFollowId(); |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,1); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | picture = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | picture = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,2); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | video = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | video = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,3); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | audio = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | audio = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | mgtShopTaskRecordPageVo.setPicture(picture); |
| | | mgtShopTaskRecordPageVo.setVideo(video); |
| | |
| | | if(myShopTaskRecordPageVoList!=null&&!myShopTaskRecordPageVoList.isEmpty()){ |
| | | Long followId; |
| | | List<TaskFile> taskFileList; |
| | | List<String> picture = new ArrayList<>(); |
| | | List<String> video = new ArrayList<>(); |
| | | List<String> audio = new ArrayList<>(); |
| | | List<FileDto> picture = new ArrayList<>(); |
| | | List<FileDto> video = new ArrayList<>(); |
| | | List<FileDto> audio = new ArrayList<>(); |
| | | Long userId; |
| | | SysUser sysUser; |
| | | for(StaffMyShopTaskRecordPageVo staffMyShopTaskRecordPageVo : myShopTaskRecordPageVoList){ |
| | |
| | | followId = staffMyShopTaskRecordPageVo.getFollowId(); |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,1); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | picture = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | picture = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,2); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | video = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | video = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,3); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | audio = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | audio = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | staffMyShopTaskRecordPageVo.setPicture(picture); |
| | | staffMyShopTaskRecordPageVo.setVideo(video); |
| | |
| | | if(myShopTaskRecordPageVoList!=null&&!myShopTaskRecordPageVoList.isEmpty()){ |
| | | Long followId; |
| | | List<TaskFile> taskFileList; |
| | | List<String> picture = new ArrayList<>(); |
| | | List<String> video = new ArrayList<>(); |
| | | List<String> audio = new ArrayList<>(); |
| | | List<FileDto> picture = new ArrayList<>(); |
| | | List<FileDto> video = new ArrayList<>(); |
| | | List<FileDto> audio = new ArrayList<>(); |
| | | Long userId; |
| | | SysUser sysUser; |
| | | for(StaffMyShopTaskRecordPageVo staffMyShopTaskRecordPageVo : myShopTaskRecordPageVoList){ |
| | |
| | | followId = staffMyShopTaskRecordPageVo.getFollowId(); |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,1); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | picture = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | picture = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,2); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | video = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | video = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | taskFileList = taskFileService.listByFollowIdAndFollowType(followId,3); |
| | | if(taskFileList!=null&&!taskFileList.isEmpty()){ |
| | | audio = taskFileList.stream().map(k->k.getFileUrl()).collect(Collectors.toList()); |
| | | audio = taskFileList.stream() |
| | | .map(taskFile -> { |
| | | FileDto fileDto = new FileDto(); |
| | | fileDto.setFileName(taskFile.getFileName()); |
| | | fileDto.setFileUrl(taskFile.getFileUrl()); |
| | | return fileDto; |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | staffMyShopTaskRecordPageVo.setPicture(picture); |
| | | staffMyShopTaskRecordPageVo.setVideo(video); |