| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | LedSFile sFile = new LedSFile(); |
| | | BeanUtils.copyProperties(fileUploadDto, sFile); |
| | | sFile.setCilentId(SecurityUtils.getClientId()); |
| | | if (SecurityUtils.getClientId() != null) { |
| | | sFile.setUserId(SecurityUtils.getUserId()); |
| | | sFile.setUserName(SecurityUtils.getUsername()); |
| | | if (clientService.findClientId()) { |
| | | sFile.setCilentId(clientService.getClientId()); |
| | | } |
| | | sFile.setUserId(SecurityUtils.getUserId()); |
| | | sFile.setUserName(SecurityUtils.getUsername()); |
| | | if (clientService.findClientId()) { |
| | | sFile.setCilentId(clientService.getClientId()); |
| | | } |
| | | /** |
| | | * 熙汛文件上传 日志记录开始 |