|
@@ -107,6 +107,7 @@ public class ShopServiceImpl implements ShopService {
|
|
|
for (ProductItemVo product : productList) {
|
|
|
String typeName = shopMapper.getTypeName(product.getBigTypeId(), product.getSmallTypeId(), product.getTinyTypeId());
|
|
|
product.setTypeName(typeName);
|
|
|
+ product.setIsChecked(false);
|
|
|
// 设置商品主图及价格
|
|
|
Integer userId = shopMapper.getUserIdByshopId(shopId);
|
|
|
priceUtilService.setProductDetails(userId, product);
|
|
@@ -531,7 +532,7 @@ public class ShopServiceImpl implements ShopService {
|
|
|
for (String productId : split) {
|
|
|
if (StringUtils.isNotBlank(productId)) {
|
|
|
ProductFormVo product = shopMapper.getProductForm(Integer.valueOf(productId));
|
|
|
- if (2 == product.getValidFlag()) {
|
|
|
+ if (2 != product.getValidFlag()) {
|
|
|
return ResponseJson.error("只能下架已上架的商品");
|
|
|
}
|
|
|
PromotionsVo promotions = promotionsMapper.getPromotionsByProductId(product.getProductId());
|