com.macro.mall.model.PmsProductCategory Java Examples

The following examples show how to use com.macro.mall.model.PmsProductCategory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PmsProductCategoryController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("分页查询商品分类")
@RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<PmsProductCategory>> getList(@PathVariable Long parentId,
                                                            @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                            @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(productCategoryList));
}
 
Example #2
Source File: PmsProductCategoryController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("分页查询商品分类")
@RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET)
@ResponseBody
@PreAuthorize("hasAuthority('pms:productCategory:read')")
public Object getList(@PathVariable Long parentId,
                      @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                      @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum);
    return new CommonResult().pageSuccess(productCategoryList);
}
 
Example #3
Source File: PmsProductCategoryController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("分页查询商品分类")
@RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<PmsProductCategory>> getList(@PathVariable Long parentId,
                                                            @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                            @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(productCategoryList));
}
 
Example #4
Source File: PmsProductCategoryController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("根据id获取商品分类")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@PreAuthorize("hasAuthority('pms:productCategory:read')")
public Object getItem(@PathVariable Long id) {
    PmsProductCategory productCategory = productCategoryService.getItem(id);
    return new CommonResult().success(productCategory);
}
 
Example #5
Source File: HomeController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取首页商品分类")
@RequestMapping(value = "/productCateList/{parentId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<PmsProductCategory>> getProductCateList(@PathVariable Long parentId) {
    List<PmsProductCategory> productCategoryList = homeService.getProductCateList(parentId);
    return CommonResult.success(productCategoryList);
}
 
Example #6
Source File: HomeController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取首页商品分类")
@RequestMapping(value = "/productCateList/{parentId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<PmsProductCategory>> getProductCateList(@PathVariable Long parentId) {
    List<PmsProductCategory> productCategoryList = homeService.getProductCateList(parentId);
    return CommonResult.success(productCategoryList);
}
 
Example #7
Source File: PmsProductCategoryController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据id获取商品分类")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<PmsProductCategory> getItem(@PathVariable Long id) {
    PmsProductCategory productCategory = productCategoryService.getItem(id);
    return CommonResult.success(productCategory);
}
 
Example #8
Source File: PmsProductCategoryController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据id获取商品分类")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@PreAuthorize("hasAuthority('pms:productCategory:read')")
public CommonResult<PmsProductCategory> getItem(@PathVariable Long id) {
    PmsProductCategory productCategory = productCategoryService.getItem(id);
    return CommonResult.success(productCategory);
}
 
Example #9
Source File: PmsProductCategoryController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("分页查询商品分类")
@RequestMapping(value = "/list/{parentId}", method = RequestMethod.GET)
@ResponseBody
@PreAuthorize("hasAuthority('pms:productCategory:read')")
public CommonResult<CommonPage<PmsProductCategory>> getList(@PathVariable Long parentId,
                                                            @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                            @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<PmsProductCategory> productCategoryList = productCategoryService.getList(parentId, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(productCategoryList));
}
 
Example #10
Source File: HomeController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取首页商品分类")
@RequestMapping(value = "/productCateList/{parentId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<PmsProductCategory>> getProductCateList(@PathVariable Long parentId) {
    List<PmsProductCategory> productCategoryList = homeService.getProductCateList(parentId);
    return CommonResult.success(productCategoryList);
}
 
Example #11
Source File: PmsProductCategoryController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据id获取商品分类")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<PmsProductCategory> getItem(@PathVariable Long id) {
    PmsProductCategory productCategory = productCategoryService.getItem(id);
    return CommonResult.success(productCategory);
}
 
Example #12
Source File: PmsProductCategoryWithChildrenItem.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
public List<PmsProductCategory> getChildren() {
    return children;
}
 
Example #13
Source File: PmsProductCategoryWithChildrenItem.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
public List<PmsProductCategory> getChildren() {
    return children;
}
 
Example #14
Source File: PmsProductCategoryWithChildrenItem.java    From mall-swarm with Apache License 2.0 4 votes vote down vote up
public void setChildren(List<PmsProductCategory> children) {
    this.children = children;
}
 
Example #15
Source File: PmsProductCategoryWithChildrenItem.java    From macrozheng-mall with MIT License 4 votes vote down vote up
public List<PmsProductCategory> getChildren() {
    return children;
}
 
Example #16
Source File: PmsProductCategoryWithChildrenItem.java    From macrozheng with Apache License 2.0 4 votes vote down vote up
public void setChildren(List<PmsProductCategory> children) {
    this.children = children;
}
 
Example #17
Source File: PmsProductCategoryWithChildrenItem.java    From macrozheng-mall with MIT License 4 votes vote down vote up
public void setChildren(List<PmsProductCategory> children) {
    this.children = children;
}
 
Example #18
Source File: PmsProductCategoryService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 根据ID获取商品分类
 */
PmsProductCategory getItem(Long id);
 
Example #19
Source File: HomeService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取商品分类
 * @param parentId 0:获取一级分类;其他:获取指定二级分类
 */
List<PmsProductCategory> getProductCateList(Long parentId);
 
Example #20
Source File: PmsProductCategoryService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 分页获取商品分类
 */
List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
 
Example #21
Source File: HomeService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取商品分类
 * @param parentId 0:获取一级分类;其他:获取指定二级分类
 */
List<PmsProductCategory> getProductCateList(Long parentId);
 
Example #22
Source File: PmsProductCategoryService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 根据ID获取商品分类
 */
PmsProductCategory getItem(Long id);
 
Example #23
Source File: PmsProductCategoryService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 分页获取商品分类
 */
List<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
 
Example #24
Source File: HomeService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取商品分类
 * @param parentId 0:获取一级分类;其他:获取指定二级分类
 */
List<PmsProductCategory> getProductCateList(Long parentId);
 
Example #25
Source File: PmsProductCategoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExample(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example); 
Example #26
Source File: PmsProductCategoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByPrimaryKey(PmsProductCategory record); 
Example #27
Source File: PmsProductCategoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByExampleWithBLOBs(@Param("record") PmsProductCategory record, @Param("example") PmsProductCategoryExample example); 
Example #28
Source File: PmsProductCategoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
PmsProductCategory selectByPrimaryKey(Long id); 
Example #29
Source File: PmsProductCategoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByPrimaryKeySelective(PmsProductCategory record); 
Example #30
Source File: PmsProductCategoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByPrimaryKeyWithBLOBs(PmsProductCategory record);