Explorar o código

修改订单记录

change %!s(int64=3) %!d(string=hai) anos
pai
achega
9a315716f8

+ 6 - 9
zhongzheng-api/src/main/java/com/zhongzheng/controller/order/OrderController.java

@@ -8,10 +8,7 @@ import com.zhongzheng.common.enums.BusinessType;
 import com.zhongzheng.common.utils.SecurityUtils;
 import com.zhongzheng.common.utils.ServletUtils;
 import com.zhongzheng.framework.web.service.WxTokenService;
-import com.zhongzheng.modules.order.bo.OrderAddBo;
-import com.zhongzheng.modules.order.bo.OrderEditBo;
-import com.zhongzheng.modules.order.bo.OrderGoodsQueryBo;
-import com.zhongzheng.modules.order.bo.OrderQueryBo;
+import com.zhongzheng.modules.order.bo.*;
 import com.zhongzheng.modules.order.service.IOrderGoodsService;
 import com.zhongzheng.modules.order.service.IOrderService;
 import com.zhongzheng.modules.order.vo.OrderGoodsVo;
@@ -70,12 +67,12 @@ public class OrderController extends BaseController {
     }
 
     /**
-     * 修改订单
+     * 修改订单商品
      */
-    @ApiOperation("修改订单")
-    @Log(title = "订单", businessType = BusinessType.UPDATE)
+    @ApiOperation("修改订单商品")
+    @Log(title = "订单商品", businessType = BusinessType.UPDATE)
     @PostMapping("edit")
-    public AjaxResult<Void> edit(@RequestBody OrderEditBo bo) {
-        return toAjax(iOrderService.updateByEditBo(bo) ? 1 : 0);
+    public AjaxResult<Void> edit(@RequestBody OrderGoodsEditBo bo) {
+        return toAjax(iOrderGoodsService.updateByEditBo(bo) ? 1 : 0);
     }
 }