|
@@ -1,5 +1,7 @@
|
|
|
package com.uas.platform.b2b.controller;
|
|
package com.uas.platform.b2b.controller;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.ui.ModelMap;
|
|
import org.springframework.ui.ModelMap;
|
|
@@ -10,6 +12,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import com.uas.platform.b2b.model.Cart;
|
|
import com.uas.platform.b2b.model.Cart;
|
|
|
|
|
+import com.uas.platform.b2b.model.Vendor;
|
|
|
import com.uas.platform.b2b.service.CartService;
|
|
import com.uas.platform.b2b.service.CartService;
|
|
|
import com.uas.platform.core.model.PageParams;
|
|
import com.uas.platform.core.model.PageParams;
|
|
|
|
|
|
|
@@ -82,9 +85,26 @@ public class CartController {
|
|
|
return cartService.deleteCarts();
|
|
return cartService.deleteCarts();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 购物车详情
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param id
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
@RequestMapping(value = "/getCartDetail/{id}", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/getCartDetail/{id}", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Cart getCartDetail(@PathVariable Long id) {
|
|
public Cart getCartDetail(@PathVariable Long id) {
|
|
|
return cartService.getCartDetail(id);
|
|
return cartService.getCartDetail(id);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 供应商资料
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value = "/vendorInfo", method = RequestMethod.GET)
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ private List<Vendor> getVendorInfo() {
|
|
|
|
|
+ return cartService.getVendorInfo();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|