com.macro.mall.model.PmsProductLadder Java Examples
The following examples show how to use
com.macro.mall.model.PmsProductLadder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OmsPromotionServiceImpl.java From macrozheng-mall with MIT License | 6 votes |
/** * 根据购买商品数量获取满足条件的打折优惠策略 */ private PmsProductLadder getProductLadder(int count, List<PmsProductLadder> productLadderList) { //按数量从大到小排序 productLadderList.sort(new Comparator<PmsProductLadder>() { @Override public int compare(PmsProductLadder o1, PmsProductLadder o2) { return o2.getCount() - o1.getCount(); } }); for (PmsProductLadder productLadder : productLadderList) { if (count >= productLadder.getCount()) { return productLadder; } } return null; }
Example #2
Source File: OmsPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 6 votes |
/** * 根据购买商品数量获取满足条件的打折优惠策略 */ private PmsProductLadder getProductLadder(int count, List<PmsProductLadder> productLadderList) { //按数量从大到小排序 productLadderList.sort(new Comparator<PmsProductLadder>() { @Override public int compare(PmsProductLadder o1, PmsProductLadder o2) { return o2.getCount() - o1.getCount(); } }); for (PmsProductLadder productLadder : productLadderList) { if (count >= productLadder.getCount()) { return productLadder; } } return null; }
Example #3
Source File: OmsPromotionServiceImpl.java From mall-swarm with Apache License 2.0 | 6 votes |
/** * 根据购买商品数量获取满足条件的打折优惠策略 */ private PmsProductLadder getProductLadder(int count, List<PmsProductLadder> productLadderList) { //按数量从大到小排序 productLadderList.sort(new Comparator<PmsProductLadder>() { @Override public int compare(PmsProductLadder o1, PmsProductLadder o2) { return o2.getCount() - o1.getCount(); } }); for (PmsProductLadder productLadder : productLadderList) { if (count >= productLadder.getCount()) { return productLadder; } } return null; }
Example #4
Source File: OmsPromotionServiceImpl.java From mall with Apache License 2.0 | 6 votes |
/** * 根据购买商品数量获取满足条件的打折优惠策略 */ private PmsProductLadder getProductLadder(int count, List<PmsProductLadder> productLadderList) { //按数量从大到小排序 productLadderList.sort(new Comparator<PmsProductLadder>() { @Override public int compare(PmsProductLadder o1, PmsProductLadder o2) { return o2.getCount() - o1.getCount(); } }); for (PmsProductLadder productLadder : productLadderList) { if (count >= productLadder.getCount()) { return productLadder; } } return null; }
Example #5
Source File: OmsPromotionServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
/** * 获取打折优惠的促销信息 */ private String getLadderPromotionMessage(PmsProductLadder ladder) { StringBuilder sb = new StringBuilder(); sb.append("打折优惠:"); sb.append("满"); sb.append(ladder.getCount()); sb.append("件,"); sb.append("打"); sb.append(ladder.getDiscount().multiply(new BigDecimal(10))); sb.append("折"); return sb.toString(); }
Example #6
Source File: OmsPromotionServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
/** * 获取打折优惠的促销信息 */ private String getLadderPromotionMessage(PmsProductLadder ladder) { StringBuilder sb = new StringBuilder(); sb.append("打折优惠:"); sb.append("满"); sb.append(ladder.getCount()); sb.append("件,"); sb.append("打"); sb.append(ladder.getDiscount().multiply(new BigDecimal(10))); sb.append("折"); return sb.toString(); }
Example #7
Source File: OmsPromotionServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
/** * 获取打折优惠的促销信息 */ private String getLadderPromotionMessage(PmsProductLadder ladder) { StringBuilder sb = new StringBuilder(); sb.append("打折优惠:"); sb.append("满"); sb.append(ladder.getCount()); sb.append("件,"); sb.append("打"); sb.append(ladder.getDiscount().multiply(new BigDecimal(10))); sb.append("折"); return sb.toString(); }
Example #8
Source File: OmsPromotionServiceImpl.java From mall with Apache License 2.0 | 5 votes |
/** * 获取打折优惠的促销信息 */ private String getLadderPromotionMessage(PmsProductLadder ladder) { StringBuilder sb = new StringBuilder(); sb.append("打折优惠:"); sb.append("满"); sb.append(ladder.getCount()); sb.append("件,"); sb.append("打"); sb.append(ladder.getDiscount().multiply(new BigDecimal(10))); sb.append("折"); return sb.toString(); }
Example #9
Source File: PromotionProduct.java From mall-swarm with Apache License 2.0 | 4 votes |
public List<PmsProductLadder> getProductLadderList() { return productLadderList; }
Example #10
Source File: PromotionProduct.java From mall with Apache License 2.0 | 4 votes |
public List<PmsProductLadder> getProductLadderList() { return productLadderList; }
Example #11
Source File: PromotionProduct.java From mall with Apache License 2.0 | 4 votes |
public void setProductLadderList(List<PmsProductLadder> productLadderList) { this.productLadderList = productLadderList; }
Example #12
Source File: PromotionProduct.java From macrozheng with Apache License 2.0 | 4 votes |
public List<PmsProductLadder> getProductLadderList() { return productLadderList; }
Example #13
Source File: PromotionProduct.java From macrozheng with Apache License 2.0 | 4 votes |
public void setProductLadderList(List<PmsProductLadder> productLadderList) { this.productLadderList = productLadderList; }
Example #14
Source File: PromotionProduct.java From mall-swarm with Apache License 2.0 | 4 votes |
public void setProductLadderList(List<PmsProductLadder> productLadderList) { this.productLadderList = productLadderList; }
Example #15
Source File: PromotionProduct.java From macrozheng-mall with MIT License | 4 votes |
public List<PmsProductLadder> getProductLadderList() { return productLadderList; }
Example #16
Source File: PromotionProduct.java From macrozheng-mall with MIT License | 4 votes |
public void setProductLadderList(List<PmsProductLadder> productLadderList) { this.productLadderList = productLadderList; }
Example #17
Source File: PmsProductLadderDao.java From mall with Apache License 2.0 | 2 votes |
/** * 批量创建 */ int insertList(@Param("list") List<PmsProductLadder> productLadderList);
Example #18
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
List<PmsProductLadder> selectByExample(PmsProductLadderExample example);
Example #19
Source File: PmsProductLadderMapper.java From mall with Apache License 2.0 | votes |
int updateByPrimaryKey(PmsProductLadder record);
Example #20
Source File: PmsProductLadderMapper.java From mall with Apache License 2.0 | votes |
int updateByPrimaryKeySelective(PmsProductLadder record);
Example #21
Source File: PmsProductLadderMapper.java From mall with Apache License 2.0 | votes |
int updateByExample(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example);
Example #22
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
int insert(PmsProductLadder record);
Example #23
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
int insertSelective(PmsProductLadder record);
Example #24
Source File: PmsProductLadderMapper.java From mall with Apache License 2.0 | votes |
int insert(PmsProductLadder record);
Example #25
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
PmsProductLadder selectByPrimaryKey(Long id);
Example #26
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
int updateByExampleSelective(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example);
Example #27
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
int updateByExample(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example);
Example #28
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
int updateByPrimaryKeySelective(PmsProductLadder record);
Example #29
Source File: PmsProductLadderMapper.java From macrozheng-mall with MIT License | votes |
int updateByPrimaryKey(PmsProductLadder record);
Example #30
Source File: PmsProductLadderDao.java From macrozheng-mall with MIT License | votes |
int insertList(@Param("list") List<PmsProductLadder> productLadderList);