|
@@ -1,12 +1,15 @@
|
|
|
package com.caimei.controller.order;
|
|
|
|
|
|
+import com.caimei.entity.CmOperationUser;
|
|
|
import com.caimei.entity.WxJsonModel;
|
|
|
import com.caimei.service.order.OrderService;
|
|
|
+import com.caimei.utils.SessionHelper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -51,4 +54,23 @@ public class OrderController {
|
|
|
Map<String, Object> map = orderService.particulars(orderID);
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 提交订单
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ResponseBody
|
|
|
+ @RequestMapping("/submitOrder")
|
|
|
+ public WxJsonModel submitOrder(Integer organizeID,HttpServletRequest request) {
|
|
|
+ WxJsonModel wxJsonModel = WxJsonModel.newInstance();
|
|
|
+ //检查用户是否登入
|
|
|
+ CmOperationUser currentUser = SessionHelper.getCurrentUser(request);
|
|
|
+ if(null == currentUser){
|
|
|
+ wxJsonModel.error("1000","用户账户异常");
|
|
|
+ }
|
|
|
+ //保存商品
|
|
|
+
|
|
|
+ return wxJsonModel.success();
|
|
|
+ }
|
|
|
}
|