|
@@ -27,8 +27,8 @@ public class PmsProductAttributeCategoryController {
|
|
|
@ApiOperation("添加商品属性分类")
|
|
|
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public CommonResult create(@RequestParam String name) {
|
|
|
- int count = productAttributeCategoryService.create(name);
|
|
|
+ public CommonResult create(@RequestParam String name,@RequestParam Integer sort) {
|
|
|
+ int count = productAttributeCategoryService.create(name,sort);
|
|
|
if (count > 0) {
|
|
|
return CommonResult.success(count);
|
|
|
} else {
|
|
@@ -39,8 +39,8 @@ public class PmsProductAttributeCategoryController {
|
|
|
@ApiOperation("修改商品属性分类")
|
|
|
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public CommonResult update(@PathVariable Long id, @RequestParam String name) {
|
|
|
- int count = productAttributeCategoryService.update(id, name);
|
|
|
+ public CommonResult update(@PathVariable Long id, @RequestParam String name,@RequestParam Integer sort) {
|
|
|
+ int count = productAttributeCategoryService.update(id, name,sort);
|
|
|
if (count > 0) {
|
|
|
return CommonResult.success(count);
|
|
|
} else {
|