fix:发布商品状态错误
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user