|
|
@@ -18,6 +18,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -60,7 +61,9 @@ public class TradeController {
|
|
|
@ApiOperation(value = "修改分类")
|
|
|
public ResponseHelper update(
|
|
|
@ApiParam(value = "object",required = true) @RequestBody GoodsCategory goodsCategory) {
|
|
|
- goodsCategoryLogic.update(goodsCategory);
|
|
|
+ GoodsCategoryBean bean = new GoodsCategoryBean();
|
|
|
+ BeanUtils.copyProperties(goodsCategory, bean);
|
|
|
+ goodsCategoryLogic.update(bean);
|
|
|
return ResponseHelper.success();
|
|
|
}
|
|
|
|