|  | @@ -10,19 +10,19 @@ import com.fs.store.service.IFsStoreProductCategoryService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 商品分类Service业务层处理
 | 
	
		
			
				|  |  | - * 
 | 
	
		
			
				|  |  | + *
 | 
	
		
			
				|  |  |   * @author fs
 | 
	
		
			
				|  |  |   * @date 2022-03-15
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  @Service
 | 
	
		
			
				|  |  | -public class FsStoreProductCategoryServiceImpl implements IFsStoreProductCategoryService 
 | 
	
		
			
				|  |  | +public class FsStoreProductCategoryServiceImpl implements IFsStoreProductCategoryService
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private FsStoreProductCategoryMapper fsStoreProductCategoryMapper;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 查询商品分类
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  |       * @param cateId 商品分类ID
 | 
	
		
			
				|  |  |       * @return 商品分类
 | 
	
		
			
				|  |  |       */
 | 
	
	
		
			
				|  | @@ -34,19 +34,23 @@ public class FsStoreProductCategoryServiceImpl implements IFsStoreProductCategor
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 查询商品分类列表
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  |       * @param fsStoreProductCategory 商品分类
 | 
	
		
			
				|  |  |       * @return 商品分类
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public List<FsStoreProductCategory> selectFsStoreProductCategoryList(FsStoreProductCategory fsStoreProductCategory)
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -        return fsStoreProductCategoryMapper.selectFsStoreProductCategoryList(fsStoreProductCategory);
 | 
	
		
			
				|  |  | +        List<FsStoreProductCategory> fsStoreProductCategories = fsStoreProductCategoryMapper.selectFsStoreProductCategoryList(fsStoreProductCategory);
 | 
	
		
			
				|  |  | +        for (FsStoreProductCategory storeProductCategory : fsStoreProductCategories) {
 | 
	
		
			
				|  |  | +            storeProductCategory.setCateName(String.format("%s_%d", storeProductCategory.getCateName(), storeProductCategory.getCateId()));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return fsStoreProductCategories;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 新增商品分类
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  |       * @param fsStoreProductCategory 商品分类
 | 
	
		
			
				|  |  |       * @return 结果
 | 
	
		
			
				|  |  |       */
 | 
	
	
		
			
				|  | @@ -59,7 +63,7 @@ public class FsStoreProductCategoryServiceImpl implements IFsStoreProductCategor
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 修改商品分类
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  |       * @param fsStoreProductCategory 商品分类
 | 
	
		
			
				|  |  |       * @return 结果
 | 
	
		
			
				|  |  |       */
 | 
	
	
		
			
				|  | @@ -72,7 +76,7 @@ public class FsStoreProductCategoryServiceImpl implements IFsStoreProductCategor
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 批量删除商品分类
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  |       * @param cateIds 需要删除的商品分类ID
 | 
	
		
			
				|  |  |       * @return 结果
 | 
	
		
			
				|  |  |       */
 | 
	
	
		
			
				|  | @@ -84,7 +88,7 @@ public class FsStoreProductCategoryServiceImpl implements IFsStoreProductCategor
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 删除商品分类信息
 | 
	
		
			
				|  |  | -     * 
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  |       * @param cateId 商品分类ID
 | 
	
		
			
				|  |  |       * @return 结果
 | 
	
		
			
				|  |  |       */
 |