新建分组初始化排序字段
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user