nullable TravelLocation.score and importance

This commit is contained in:
Timi
2025-12-18 14:44:58 +08:00
parent a7b490240c
commit 812e33693b

View File

@ -62,7 +62,8 @@ public class TravelLocationServiceImplement extends AbstractEntityService<Travel
@Transactional(TimiServerDBConfig.ROLLBACKER)
@Override
public void update(TravelLocation travelLocation) {
super.update(travelLocation);
// 使用 update 以允许设置 score 和 importance 为 null
mapper.update(travelLocation);
// 删除
if (TimiJava.isNotEmpty(travelLocation.getAttachmentIds())) {
Set<Long> dbAttachSet = attachmentService.listByBizId(Attachment.BizType.JOURNAL_TRAVEL, travelLocation.getId(), MediaAttach.Type.THUMB)