|
@@ -150,16 +150,12 @@ public class SecondGoodsServiceImpl extends ServiceImpl<SecondGoodsMapper, Secon
|
|
|
if (!saveStoreImages(savedGoodsId, goodsDTO.getImgUrl())) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+ goods = secondGoodsMapper.selectById(savedGoodsId);
|
|
|
// 执行内容审核(图片和文本)
|
|
|
if (!performContentReviews(goods, goodsDTO)) {
|
|
|
return true; // 审核不通过时已设置状态,返回成功但标记为审核失败
|
|
|
}
|
|
|
|
|
|
- // 如果所有审核都通过,设置为上架状态
|
|
|
- goods.setGoodsStatus(3); // 上架
|
|
|
- goods.setReleaseTime(new Date()); // 上架时间
|
|
|
- updateById(goods);
|
|
|
return true;
|
|
|
} catch (Exception e) {
|
|
|
// 记录异常日志
|
|
@@ -214,13 +210,15 @@ public class SecondGoodsServiceImpl extends ServiceImpl<SecondGoodsMapper, Secon
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 所有审核通过
|
|
|
+ // 如果所有审核都通过,设置为上架状态
|
|
|
goods.setGoodsStatus(3); // 上架
|
|
|
+ goods.setFailedReason("");
|
|
|
+ goods.setReleaseTime(new Date()); // 上架时间
|
|
|
+ updateById(goods);
|
|
|
// 插入审核记录
|
|
|
createGoodsAudit(goods, "",1);
|
|
|
// 发送审核成功消息
|
|
|
sendMessage(goods);
|
|
|
- goods.setFailedReason("");
|
|
|
return true;
|
|
|
}
|
|
|
|