Java Code Examples for com.macro.mall.model.SmsHomeRecommendSubject#setRecommendStatus()
The following examples show how to use
com.macro.mall.model.SmsHomeRecommendSubject#setRecommendStatus() .
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 updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); example.createCriteria().andIdIn(ids); SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); record.setRecommendStatus(recommendStatus); return recommendProductMapper.updateByExampleSelective(record,example); }
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 updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); example.createCriteria().andIdIn(ids); SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); record.setRecommendStatus(recommendStatus); return recommendProductMapper.updateByExampleSelective(record,example); }
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 updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); example.createCriteria().andIdIn(ids); SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); record.setRecommendStatus(recommendStatus); return recommendProductMapper.updateByExampleSelective(record,example); }
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 updateRecommendStatus(List<Long> ids, Integer recommendStatus) { SmsHomeRecommendSubjectExample example = new SmsHomeRecommendSubjectExample(); example.createCriteria().andIdIn(ids); SmsHomeRecommendSubject record = new SmsHomeRecommendSubject(); record.setRecommendStatus(recommendStatus); return recommendProductMapper.updateByExampleSelective(record,example); }