diff --git a/nw/src/main/java/lab/cherry/nw/service/Impl/QsheetServiceImpl.java b/nw/src/main/java/lab/cherry/nw/service/Impl/QsheetServiceImpl.java index d41798c..439ec97 100644 --- a/nw/src/main/java/lab/cherry/nw/service/Impl/QsheetServiceImpl.java +++ b/nw/src/main/java/lab/cherry/nw/service/Impl/QsheetServiceImpl.java @@ -9,21 +9,20 @@ import java.util.Map; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; -import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; -import org.apache.commons.io.FilenameUtils; + import org.bson.types.ObjectId; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; -import com.mongodb.client.gridfs.model.GridFSFile; + import lab.cherry.nw.error.enums.ErrorCode; import lab.cherry.nw.error.exception.CustomException; import lab.cherry.nw.error.exception.EntityNotFoundException; +import lab.cherry.nw.model.FileEntity; import lab.cherry.nw.model.OrgEntity; import lab.cherry.nw.model.QsheetEntity; -import lab.cherry.nw.model.QsheetLogEntity; import lab.cherry.nw.model.QsheetEntity.ItemData; import lab.cherry.nw.model.UserEntity; import lab.cherry.nw.repository.QsheetRepository; @@ -112,22 +111,32 @@ public void createQsheet(QsheetEntity.QsheetCreateDto qsheetCreateDto, List(); for(ItemData data : qsheetUpdateDto.getData()){ ItemData tempData = ItemData.builder() - .orderIndex(data.getOrderIndex()) - .process(data.getProcess()) - .content(data.getContent()) - .actor(data.getActor()) - .note(data.getNote()) - .filePath(data.getFilePath()) - .build(); + .orderIndex(data.getOrderIndex()) + .process(data.getProcess()) + .content(data.getContent()) + .actor(data.getActor()) + .note(data.getNote()) + .filePath(data.getFilePath()) + .build(); newItemData.add(tempData); } }