nullable TravelLocation.score and importance
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user