You've already forked FrameTour-BE
sort
This commit is contained in:
@@ -71,9 +71,7 @@ public class TemplateServiceImpl implements TemplateService {
|
||||
item.setScenicId(template.getScenicId());
|
||||
item.setStatus(1);
|
||||
// 为子模板设置sort值
|
||||
if (item.getSort() == null) {
|
||||
item.setSort(childSort.getAndIncrement());
|
||||
}
|
||||
templateMapper.add(item);
|
||||
});
|
||||
}
|
||||
@@ -109,9 +107,7 @@ public class TemplateServiceImpl implements TemplateService {
|
||||
item.setScenicId(template.getScenicId());
|
||||
item.setStatus(1);
|
||||
// 为子模板设置sort值
|
||||
if (item.getSort() == null) {
|
||||
item.setSort(childSort.getAndIncrement());
|
||||
}
|
||||
templateMapper.add(item);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user