Commit eb4b96b9 by xiaoer.li@freemud.com

Merge remote-tracking branch 'remotes/origin/feature/套餐固定商品主食标识_1.9.19' into develop

# Conflicts:
#	assortment-ordercenter-sdk/pom.xml
#	assortment-ordercenter-sdk/readme.md
#	order-application-service/pom.xml
parents c0f2ccd3 32f51ebb
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<dependency> <dependency>
<groupId>cn.freemud</groupId> <groupId>cn.freemud</groupId>
<artifactId>ordercenter-sdk</artifactId> <artifactId>ordercenter-sdk</artifactId>
<version>1.1.9-SNAPSHOT</version> <version>1.2.0.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.freemud.application.service.sdk</groupId> <groupId>com.freemud.application.service.sdk</groupId>
......
...@@ -26,4 +26,5 @@ ...@@ -26,4 +26,5 @@
| 1.2.7.RELEASE | 判断优化 | 丁凯 | 2020-04-03 | | 1.2.7.RELEASE | 判断优化 | 丁凯 | 2020-04-03 |
| 1.4.2-SNAPSHOT | 核销券码失败订单状态闭环开发 | 侯书虎 | 2020-04-08 | | 1.4.2-SNAPSHOT | 核销券码失败订单状态闭环开发 | 侯书虎 | 2020-04-08 |
| 1.4.3-SNAPSHOT | 查询订单返回新增参数 | 侯书虎 | 2020-04-08 | | 1.4.3-SNAPSHOT | 查询订单返回新增参数 | 侯书虎 | 2020-04-08 |
| 1.4.4-SNAPSHOT | 订单扩展信息 | 丁凯 | 2020-04-13 | | 1.4.4-SNAPSHOT | 订单扩展信息 | 丁凯 | 2020-04-13 |
\ No newline at end of file | 1.2.8.RELEASE | 增加延时队列 | 海波 | 2020-04-13 |
\ No newline at end of file
...@@ -2531,6 +2531,11 @@ public class OrderSdkAdapter { ...@@ -2531,6 +2531,11 @@ public class OrderSdkAdapter {
if (StringUtils.isNotBlank(product.getThirdCategoryId())){ if (StringUtils.isNotBlank(product.getThirdCategoryId())){
extInfo.setThirdCategoryId(product.getThirdCategoryId()); extInfo.setThirdCategoryId(product.getThirdCategoryId());
} }
extInfo.setStapleFood(product.getStapleFood());
//if (product.getStapleFood()!=null && product.getStapleFood()>0) {
// extInfo.setStapleFood(1);
//}
// todo 订单行扩展字段商品组 // todo 订单行扩展字段商品组
extInfo.setProductGroupList(product.getProductGroupList()); extInfo.setProductGroupList(product.getProductGroupList());
......
...@@ -158,4 +158,7 @@ public class CreateOrderProductRequest extends BaseConfig { ...@@ -158,4 +158,7 @@ public class CreateOrderProductRequest extends BaseConfig {
/** 商品组 **/ /** 商品组 **/
private List<ProductGroupVo> productGroupList; private List<ProductGroupVo> productGroupList;
/** 是否主食**/
private Integer stapleFood;
} }
...@@ -48,4 +48,7 @@ public class OrderProductAddInfoDto extends BaseConfig { ...@@ -48,4 +48,7 @@ public class OrderProductAddInfoDto extends BaseConfig {
/** 商品组 **/ /** 商品组 **/
private List<ProductGroupVo> productGroupList; private List<ProductGroupVo> productGroupList;
/** 是否主食 **/
private Integer stapleFood;
} }
...@@ -1941,6 +1941,7 @@ public class OrderAdapter { ...@@ -1941,6 +1941,7 @@ public class OrderAdapter {
createOrderProductDemoDto.setHasStockProudct(cartGoodsDetailDto.isStockLimit()); createOrderProductDemoDto.setHasStockProudct(cartGoodsDetailDto.isStockLimit());
createOrderProductDemoDto.setWeight(cartGoodsDetailDto.getWeight()); createOrderProductDemoDto.setWeight(cartGoodsDetailDto.getWeight());
createOrderProductDemoDto.setUnit(cartGoodsDetailDto.getUnit()); createOrderProductDemoDto.setUnit(cartGoodsDetailDto.getUnit());
createOrderProductDemoDto.setStapleFood(0);
return createOrderProductDemoDto; return createOrderProductDemoDto;
} }
......
...@@ -39,6 +39,8 @@ public class ProductComboListDto { ...@@ -39,6 +39,8 @@ public class ProductComboListDto {
private Integer status; private Integer status;
private Integer stockLimit; private Integer stockLimit;
private String unit; private String unit;
/* 是否主食*/
private Integer stapleFood;
protected List<ProductAttributeGroup> productAttributeGroupList; protected List<ProductAttributeGroup> productAttributeGroupList;
} }
...@@ -52,4 +52,8 @@ public class GetProductsVo { ...@@ -52,4 +52,8 @@ public class GetProductsVo {
/** 商品组 */ /** 商品组 */
private List<ProductGroup> productGroupList; private List<ProductGroup> productGroupList;
/*
* 是否主食
*/
private Integer stapleFood;
} }
...@@ -128,15 +128,20 @@ public class ItemServiceImpl implements ItemService{ ...@@ -128,15 +128,20 @@ public class ItemServiceImpl implements ItemService{
*/ */
private void saveComboProductsThirdInfo(ProductInfo productBean,Map<String, GetProductsVo> resultMap){ private void saveComboProductsThirdInfo(ProductInfo productBean,Map<String, GetProductsVo> resultMap){
GetProductsVo spuProductsVo = resultMap.get(productBean.getPid()); GetProductsVo spuProductsVo = resultMap.get(productBean.getPid());
List<Integer> stapleFood = Arrays.asList(0, 1);
//套餐固定商品 //套餐固定商品
if (CollectionUtils.isNotEmpty(productBean.getProductComboList())) { if (CollectionUtils.isNotEmpty(productBean.getProductComboList())) {
for (ProductComboListDto productComboListDto : productBean.getProductComboList()) { for (ProductComboListDto productComboListDto : productBean.getProductComboList()) {
GetProductsVo comboProductsVo = new GetProductsVo(); GetProductsVo comboProductsVo = new GetProductsVo();
comboProductsVo.setCustomerCode(productComboListDto.getCustomerCode()); comboProductsVo.setCustomerCode(productComboListDto.getCustomerCode());
comboProductsVo.setProductCode(productComboListDto.getProductCode()); comboProductsVo.setProductCode(productComboListDto.getProductCode());
if (productComboListDto.getStapleFood()!=null && stapleFood.contains(productComboListDto.getStapleFood())) {
comboProductsVo.setStapleFood(productComboListDto.getStapleFood());
} else {
comboProductsVo.setStapleFood(0);
}
//第三方商品属性信息 //第三方商品属性信息
comboProductsVo.setProductAttributeGroupList(productComboListDto.getProductAttributeGroupList()); comboProductsVo.setProductAttributeGroupList(productComboListDto.getProductAttributeGroupList());
if(CollectionUtils.isNotEmpty(spuProductsVo.getProductGroupList())){ if(CollectionUtils.isNotEmpty(spuProductsVo.getProductGroupList())){
/** 商品组 */ /** 商品组 */
for(ProductGroup group : spuProductsVo.getProductGroupList()){ for(ProductGroup group : spuProductsVo.getProductGroupList()){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment