|
@@ -3,6 +3,9 @@ package com.iamberry.rst.controllers.customer;
|
|
import com.iamberry.rst.core.address.City;
|
|
import com.iamberry.rst.core.address.City;
|
|
import com.iamberry.rst.core.address.Province;
|
|
import com.iamberry.rst.core.address.Province;
|
|
import com.iamberry.rst.core.customer.*;
|
|
import com.iamberry.rst.core.customer.*;
|
|
|
|
+import com.iamberry.rst.core.order.Product;
|
|
|
|
+import com.iamberry.rst.core.order.ProductColor;
|
|
|
|
+import com.iamberry.rst.core.order.ProductType;
|
|
import com.iamberry.rst.faces.customer.CustomerBasicInfoSaveService;
|
|
import com.iamberry.rst.faces.customer.CustomerBasicInfoSaveService;
|
|
import com.iamberry.wechat.tools.ResponseJson;
|
|
import com.iamberry.wechat.tools.ResponseJson;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
@@ -172,12 +175,12 @@ public class CustomerBasicInfoSaveController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "/query_channelCategoryList")
|
|
@RequestMapping(value = "/query_channelCategoryList")
|
|
public ResponseJson queryChannelCategoryList(HttpServletRequest request) {
|
|
public ResponseJson queryChannelCategoryList(HttpServletRequest request) {
|
|
- String channelCategoryId = request.getParameter("provinceListInfo");
|
|
|
|
|
|
+ String channelCategoryId = request.getParameter("channelCategoryId");
|
|
List<ChannelDivisionInfo> channelCategoryList = null;
|
|
List<ChannelDivisionInfo> channelCategoryList = null;
|
|
channelCategoryList = customerBasicInfoSaveService.queryChannelCategoryList(channelCategoryId);
|
|
channelCategoryList = customerBasicInfoSaveService.queryChannelCategoryList(channelCategoryId);
|
|
if (channelCategoryList != null || channelCategoryList.size() > 0) {
|
|
if (channelCategoryList != null || channelCategoryList.size() > 0) {
|
|
ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
- rj.addResponseKeyValue("provinceList", channelCategoryList);
|
|
|
|
|
|
+ rj.addResponseKeyValue("channelCategoryList", channelCategoryList);
|
|
return rj;
|
|
return rj;
|
|
} else {
|
|
} else {
|
|
return new ResponseJson(500, "查询失败", 500);
|
|
return new ResponseJson(500, "查询失败", 500);
|
|
@@ -192,7 +195,7 @@ public class CustomerBasicInfoSaveController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "/query_channelTypeList")
|
|
@RequestMapping(value = "/query_channelTypeList")
|
|
public ResponseJson queryChannelTypeList(HttpServletRequest request) {
|
|
public ResponseJson queryChannelTypeList(HttpServletRequest request) {
|
|
- String channelCategoryId = request.getParameter("channelCategory");
|
|
|
|
|
|
+ String channelCategoryId = request.getParameter("channelCategoryId");
|
|
List<ChannelDivisionInfo> channelTypeList = null;
|
|
List<ChannelDivisionInfo> channelTypeList = null;
|
|
channelTypeList = customerBasicInfoSaveService.queryChannelTypeList(channelCategoryId);
|
|
channelTypeList = customerBasicInfoSaveService.queryChannelTypeList(channelCategoryId);
|
|
if (channelTypeList != null || channelTypeList.size() > 0) {
|
|
if (channelTypeList != null || channelTypeList.size() > 0) {
|
|
@@ -205,6 +208,46 @@ public class CustomerBasicInfoSaveController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 初始化销售产品
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "/query_promotingProductsList")
|
|
|
|
+ public ResponseJson queryPromotingProductsList(HttpServletRequest request) {
|
|
|
|
+ String promotingProductsInfo = request.getParameter("promotingProductsInfo");
|
|
|
|
+ List<Product> promotingProductsList = null;
|
|
|
|
+ promotingProductsList = customerBasicInfoSaveService.queryPromotingProductsList(promotingProductsInfo);
|
|
|
|
+ if (promotingProductsList != null || promotingProductsList.size() > 0) {
|
|
|
|
+ ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
|
|
+ rj.addResponseKeyValue("promotingProductsList", promotingProductsList);
|
|
|
|
+ return rj;
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseJson(500, "查询失败", 500);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据销售产品初始化价格
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @RequestMapping(value = "/query_supplyPriceList")
|
|
|
|
+ public ResponseJson querySupplyPriceList(HttpServletRequest request) {
|
|
|
|
+ String promotingProductsId = request.getParameter("promotingProductsId");
|
|
|
|
+ List<ProductColor> supplyPriceList = null;
|
|
|
|
+ supplyPriceList = customerBasicInfoSaveService.querySupplyPriceList(promotingProductsId);
|
|
|
|
+ if (supplyPriceList != null || supplyPriceList.size() > 0) {
|
|
|
|
+ ResponseJson rj =new ResponseJson(200, "查询成功", 200);
|
|
|
|
+ rj.addResponseKeyValue("supplyPriceList", supplyPriceList);
|
|
|
|
+ return rj;
|
|
|
|
+ } else {
|
|
|
|
+ return new ResponseJson(500, "查询失败", 500);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 验证方法
|
|
* 验证方法
|
|
*
|
|
*
|
|
* @param customerBasicInfo
|
|
* @param customerBasicInfo
|