package com.macro.mall.service;

import com.macro.mall.dto.PmsProductCategoryParam;
import com.macro.mall.dto.PmsProductCategoryWithChildrenItem;
import com.macro.mall.model.PmsProductCategory;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 产品分类Service
 * Created by macro on 2018/4/26.
 */
public interface PmsProductCategoryService {
    @Transactional
    int create(PmsProductCategoryParam pmsProductCategoryParam);

    @Transactional
    int update(Long id, PmsProductCategoryParam pmsProductCategoryParam);

    List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);

    int delete(Long id);

    PmsProductCategory getItem(Long id);

    int updateNavStatus(List<Long> ids, Integer navStatus);

    int updateShowStatus(List<Long> ids, Integer showStatus);

    List<PmsProductCategoryWithChildrenItem> listWithChildren();
}

@@ -412,9 +412,9 @@
 %0A * 
-%E4%BA%A7
+%E5%95%86
 %E5%93%81%E5%88%86%E7%B1%BBS
@@ -503,16 +503,46 @@
 rvice %7B%0A
+    /**%0A     * %E5%88%9B%E5%BB%BA%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%0A     */%0A
     @Tra
@@ -614,24 +614,54 @@
 oryParam);%0A%0A
+    /**%0A     * %E4%BF%AE%E6%94%B9%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%0A     */%0A
     @Transac
@@ -738,24 +738,56 @@
 oryParam);%0A%0A
+    /**%0A     * %E5%88%86%E9%A1%B5%E8%8E%B7%E5%8F%96%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%0A     */%0A
     List%3CPms
@@ -871,29 +871,93 @@
     
-int delete(Long id);%0A
+/**%0A     * %E5%88%A0%E9%99%A4%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%0A     */%0A    int delete(Long id);%0A%0A    /**%0A     * %E6%A0%B9%E6%8D%AEID%E8%8E%B7%E5%8F%96%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%0A     */
 %0A   
@@ -991,24 +991,56 @@
 (Long id);%0A%0A
+    /**%0A     * %E6%89%B9%E9%87%8F%E4%BF%AE%E6%94%B9%E5%AF%BC%E8%88%AA%E7%8A%B6%E6%80%81%0A     */%0A
     int upda
@@ -1084,24 +1084,56 @@
 avStatus);%0A%0A
+    /**%0A     * %E6%89%B9%E9%87%8F%E4%BF%AE%E6%94%B9%E6%98%BE%E7%A4%BA%E7%8A%B6%E6%80%81%0A     */%0A
     int upda
@@ -1179,24 +1179,59 @@
 owStatus);%0A%0A
+    /**%0A     * %E4%BB%A5%E5%B1%82%E7%BA%A7%E5%BD%A2%E5%BC%8F%E8%8E%B7%E5%8F%96%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%0A     */%0A
     List%3CPms

Update PmsProductCategoryService.java