新建分组初始化排序字段

This commit is contained in:
wangw 2024-06-27 09:59:18 +08:00
parent b315c23402
commit 40bc9f45da
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class TbProductGroupServiceImpl implements TbProductGroupService {
resources.setCreatedAt(Instant.now().toEpochMilli());
resources.setUpdatedAt(Instant.now().toEpochMilli());
TbProductGroup save = tbProductGroupRepository.save(resources);
save.setSort(save.getId());
resources.setSort(save.getId());
return tbProductGroupMapper.toDto(tbProductGroupRepository.save(resources));
}