forked from wangziqi/ruoyi-vue-pro
fix(education): clear optional collection metadata
This commit is contained in:
@@ -53,10 +53,19 @@ public interface QuestionCollectionMapper extends BaseMapperX<QuestionCollection
|
||||
.eq(QuestionCollectionDO::getDeleted, false));
|
||||
}
|
||||
default int updateDraftCas(Long tenantId, Long id, QuestionCollectionDO values, int expectedVersion) {
|
||||
return update(values, new LambdaUpdateWrapper<QuestionCollectionDO>().eq(QuestionCollectionDO::getId, id)
|
||||
return update(null, new LambdaUpdateWrapper<QuestionCollectionDO>().eq(QuestionCollectionDO::getId, id)
|
||||
.eq(QuestionCollectionDO::getTenantId, tenantId).eq(QuestionCollectionDO::getScope, "TENANT_OWNED")
|
||||
.eq(QuestionCollectionDO::getDeleted, false).eq(QuestionCollectionDO::getPublicationStatus, "DRAFT")
|
||||
.eq(QuestionCollectionDO::getAuthoringVersion, expectedVersion)
|
||||
.set(QuestionCollectionDO::getEntryId, values.getEntryId())
|
||||
.set(QuestionCollectionDO::getNodeId, values.getNodeId())
|
||||
.set(QuestionCollectionDO::getName, values.getName())
|
||||
.set(QuestionCollectionDO::getTitle, values.getTitle())
|
||||
.set(QuestionCollectionDO::getCollectionType, values.getCollectionType())
|
||||
.set(QuestionCollectionDO::getDurationMinutes, values.getDurationMinutes())
|
||||
.set(QuestionCollectionDO::getAccessRules, values.getAccessRules())
|
||||
.set(QuestionCollectionDO::getSortOrder, values.getSortOrder())
|
||||
.set(QuestionCollectionDO::getMetadata, values.getMetadata())
|
||||
.set(QuestionCollectionDO::getAuthoringVersion, expectedVersion + 1));
|
||||
}
|
||||
default int advanceMembershipCas(Long tenantId, Long id, int expectedVersion, int count) {
|
||||
|
||||
Reference in New Issue
Block a user