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

This commit is contained in:
2026-02-13 11:55:35 +09:00
parent 1eb4d04779
commit 060a815e1c

View File

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