This commit is contained in:
2025-07-28 21:43:35 +08:00
parent 0471d21e28
commit a96d9df7e6

View File

@@ -71,9 +71,7 @@ public class TemplateServiceImpl implements TemplateService {
item.setScenicId(template.getScenicId()); item.setScenicId(template.getScenicId());
item.setStatus(1); item.setStatus(1);
// 为子模板设置sort值 // 为子模板设置sort值
if (item.getSort() == null) {
item.setSort(childSort.getAndIncrement()); item.setSort(childSort.getAndIncrement());
}
templateMapper.add(item); templateMapper.add(item);
}); });
} }
@@ -109,9 +107,7 @@ public class TemplateServiceImpl implements TemplateService {
item.setScenicId(template.getScenicId()); item.setScenicId(template.getScenicId());
item.setStatus(1); item.setStatus(1);
// 为子模板设置sort值 // 为子模板设置sort值
if (item.getSort() == null) {
item.setSort(childSort.getAndIncrement()); item.setSort(childSort.getAndIncrement());
}
templateMapper.add(item); templateMapper.add(item);
}); });
} }