Commit 04c7e86b by xiaoer.li@freemud.com

fix:isStaple

parent de7030af
......@@ -40,7 +40,7 @@ public class ProductComboListDto {
private Integer stockLimit;
private String unit;
/* 是否主食*/
private Integer stapleFood;
private Integer isStaple;
protected List<ProductAttributeGroup> productAttributeGroupList;
}
......@@ -135,8 +135,8 @@ public class ItemServiceImpl implements ItemService{
GetProductsVo comboProductsVo = new GetProductsVo();
comboProductsVo.setCustomerCode(productComboListDto.getCustomerCode());
comboProductsVo.setProductCode(productComboListDto.getProductCode());
if (productComboListDto.getStapleFood()!=null && stapleFood.contains(productComboListDto.getStapleFood())) {
comboProductsVo.setStapleFood(productComboListDto.getStapleFood());
if (productComboListDto.getIsStaple()!=null && stapleFood.contains(productComboListDto.getIsStaple())) {
comboProductsVo.setStapleFood(productComboListDto.getIsStaple());
} else {
comboProductsVo.setStapleFood(0);
}
......
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