shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.ishop.merchant.controller;
 
import com.ishop.merchant.BaseController;
import com.ishop.model.po.EbMerchantProductCategory;
import com.ishop.model.vo.ProductCategoryVo;
import com.walker.db.page.GenericPager;
import com.walker.web.ResponseValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
@Deprecated
@RestController
@RequestMapping("/merchant/product/category")
public class MerchantProductCategoryController extends BaseController {
 
//    @RequestMapping(value = "/list", method = RequestMethod.GET)
//    public ResponseValue list(){
//        long merchantId = this.getCurrentUser().getMer_id();
//        if(merchantId <= 0){
//            return ResponseValue.error("您不是商户,无法使用该功能");
//        }
//        EbMerchantProductCategory category = new EbMerchantProductCategory();
//        category.setMerId((int)merchantId);
//        category.setIsDel(0);
//
//        GenericPager<EbMerchantProductCategory> pager = this.getMerchantProductCategoryService().selectSplit(category);
//        return ResponseValue.success(pager);
//    }
//
//    @RequestMapping(value = "/cache/tree", method = RequestMethod.GET)
//    public ResponseValue getCacheTree(){
//        long merchantId = this.getCurrentUser().getMer_id();
//        if(merchantId <= 0){
//            return ResponseValue.error("您不是商户,无法使用该功能");
//        }
//        List<ProductCategoryVo> list = this.getMerProductCategoryCache().getTree(String.valueOf(merchantId));
//        return ResponseValue.success(list);
//    }
}