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