Java Code Examples for com.macro.mall.model.SmsHomeRecommendProduct#setSort()
The following examples show how to use
com.macro.mall.model.SmsHomeRecommendProduct#setSort() .
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: SmsHomeRecommendProductServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int create(List<SmsHomeRecommendProduct> homeRecommendProductList) { for (SmsHomeRecommendProduct recommendProduct : homeRecommendProductList) { recommendProduct.setRecommendStatus(1); recommendProduct.setSort(0); recommendProductMapper.insert(recommendProduct); } return homeRecommendProductList.size(); }
Example 2
Source File: SmsHomeRecommendProductServiceImpl.java From mall-swarm with Apache License 2.0 | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeRecommendProduct recommendProduct = new SmsHomeRecommendProduct(); recommendProduct.setId(id); recommendProduct.setSort(sort); return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); }
Example 3
Source File: SmsHomeRecommendProductServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int create(List<SmsHomeRecommendProduct> homeRecommendProductList) { for (SmsHomeRecommendProduct recommendProduct : homeRecommendProductList) { recommendProduct.setRecommendStatus(1); recommendProduct.setSort(0); recommendProductMapper.insert(recommendProduct); } return homeRecommendProductList.size(); }
Example 4
Source File: SmsHomeRecommendProductServiceImpl.java From macrozheng with Apache License 2.0 | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeRecommendProduct recommendProduct = new SmsHomeRecommendProduct(); recommendProduct.setId(id); recommendProduct.setSort(sort); return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); }
Example 5
Source File: SmsHomeRecommendProductServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int create(List<SmsHomeRecommendProduct> homeRecommendProductList) { for (SmsHomeRecommendProduct recommendProduct : homeRecommendProductList) { recommendProduct.setRecommendStatus(1); recommendProduct.setSort(0); recommendProductMapper.insert(recommendProduct); } return homeRecommendProductList.size(); }
Example 6
Source File: SmsHomeRecommendProductServiceImpl.java From mall with Apache License 2.0 | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeRecommendProduct recommendProduct = new SmsHomeRecommendProduct(); recommendProduct.setId(id); recommendProduct.setSort(sort); return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); }
Example 7
Source File: SmsHomeRecommendProductServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int create(List<SmsHomeRecommendProduct> homeRecommendProductList) { for (SmsHomeRecommendProduct recommendProduct : homeRecommendProductList) { recommendProduct.setRecommendStatus(1); recommendProduct.setSort(0); recommendProductMapper.insert(recommendProduct); } return homeRecommendProductList.size(); }
Example 8
Source File: SmsHomeRecommendProductServiceImpl.java From macrozheng-mall with MIT License | 5 votes |
@Override public int updateSort(Long id, Integer sort) { SmsHomeRecommendProduct recommendProduct = new SmsHomeRecommendProduct(); recommendProduct.setId(id); recommendProduct.setSort(sort); return recommendProductMapper.updateByPrimaryKeySelective(recommendProduct); }