|
@@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.fjhx.file.entity.FileInfoVo;
|
|
|
import com.fjhx.file.utils.ObsFileUtil;
|
|
|
import com.fjhx.xmhjc.entity.product.po.ProductCategory;
|
|
|
+import com.fjhx.xmhjc.entity.product.po.ProductInfo;
|
|
|
import com.fjhx.xmhjc.entity.product.po.ProductSubCategory;
|
|
|
import com.fjhx.xmhjc.entity.product.vo.ProductSubCategoryVo;
|
|
|
import com.fjhx.xmhjc.mapper.product.ProductCategoryMapper;
|
|
@@ -110,8 +111,12 @@ public class ProductCategoryServiceImpl extends ServiceImpl<ProductCategoryMappe
|
|
|
Map<Long, List<FileInfoVo>> fileMap = ObsFileUtil.getFileMap(businessIdList, 1);
|
|
|
x.setCategoryCoverList(fileMap.get(x.getId()));
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
return list;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void changeStatus(ProductCategoryDto productCategoryDto) {
|
|
|
+ lambdaUpdate().set(ProductCategory::getStatus, productCategoryDto.getStatus())
|
|
|
+ .eq(ProductCategory::getId, productCategoryDto.getId()).update();
|
|
|
+ }
|
|
|
}
|