트랜젝션처리 임시폴더 uid업데이트 #89

Merged
teddy merged 1 commits from feat/training_260202 into develop 2026-02-13 11:58:26 +09:00
Showing only changes of commit 060a815e1c - Show all commits

View File

@@ -159,14 +159,17 @@ public class ModelTrainMngCoreService {
* @param modelId * @param modelId
* @param req * @param req
*/ */
@Transactional
public void updateModelMaster(Long modelId, ModelTrainMngDto.UpdateReq req) { public void updateModelMaster(Long modelId, ModelTrainMngDto.UpdateReq req) {
ModelMasterEntity entity = ModelMasterEntity entity =
modelMngRepository modelMngRepository
.findById(modelId) .findById(modelId)
.orElseThrow(() -> new CustomApiException("NOT_FOUND_DATA", HttpStatus.NOT_FOUND)); .orElseThrow(() -> new CustomApiException("NOT_FOUND_DATA", HttpStatus.NOT_FOUND));
//임시폴더 UID업데이트
if (req.getRequestPath() != null && !req.getRequestPath().isEmpty()) { if (req.getRequestPath() != null && !req.getRequestPath().isEmpty()) {
entity.setRequestPath(req.getRequestPath()); entity.setRequestPath(req.getRequestPath());
} }
//TODO 삭제예정
if (req.getResponsePath() != null && !req.getResponsePath().isEmpty()) { if (req.getResponsePath() != null && !req.getResponsePath().isEmpty()) {
entity.setRequestPath(req.getResponsePath()); entity.setRequestPath(req.getResponsePath());