updated code

This commit is contained in:
rajesh
2025-02-27 15:00:56 +05:30
parent 274609af29
commit 2f746e503b
2 changed files with 2 additions and 0 deletions

View File

@@ -197,6 +197,7 @@ public class CompanyDocumentDao {
DocumentCategoryEntity categoryEntity = categoryDao.validateCategory(companyDocumentRequest.getCategoryId());
setIfUpdated(companyDocumentEntity::getCategoryEntity, companyDocumentEntity::setCategoryEntity, categoryEntity);
}
setIfUpdated(companyDocumentEntity::getName, companyDocumentEntity::setName, companyDocumentRequest.getName());
companyDocumentRepository.save(companyDocumentEntity);
/** This code is responsible for adding a version history log for the "updating company document" operation. **/

View File

@@ -8,5 +8,6 @@ import java.time.LocalDateTime;
@Data
public class CompanyDocumentRequest {
private Long categoryId;
private String name ;
private LocalDateTime expirationDate;
}