fix:发布商品状态错误
This commit is contained in:
@@ -70,7 +70,7 @@ public class ListingServiceImpl extends ServiceImpl<ListingMapper, ListingEntity
|
|||||||
|
|
||||||
Long listingId;
|
Long listingId;
|
||||||
if (dto.getId() == null) {
|
if (dto.getId() == null) {
|
||||||
entity.setStatus(ListingStatusEnum.DRAFT.getCode());
|
entity.setStatus(dto.getStatus());
|
||||||
this.save(entity);
|
this.save(entity);
|
||||||
listingId = entity.getId();
|
listingId = entity.getId();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user