fix:发布商品状态错误

This commit is contained in:
litianxiang
2026-04-29 13:51:56 +08:00
parent da72640783
commit 9d4c675594

View File

@@ -70,7 +70,7 @@ public class ListingServiceImpl extends ServiceImpl<ListingMapper, ListingEntity
Long listingId;
if (dto.getId() == null) {
entity.setStatus(ListingStatusEnum.DRAFT.getCode());
entity.setStatus(dto.getStatus());
this.save(entity);
listingId = entity.getId();
} else {