| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
|
| | |
| | | @Resource
|
| | | private CommonGoodsService commonGoodsService;
|
| | |
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | @Override
|
| | | public void addCollection(Long uid, TaoBaoGoodsBrief goods) throws CollectionGoodsException {
|
| | | if (uid == null || uid == 0)
|
| | |
| | | }
|
| | |
|
| | |
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | @Override
|
| | | public void addJDCollection(Long uid, JDGoods jdGoods) throws CollectionGoodsException {
|
| | | if (uid == null || uid == 0)
|
| | |
| | | }
|
| | |
|
| | |
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | @Override
|
| | | public void addPDDCollection(Long uid, PDDGoodsDetail goods) throws CollectionGoodsException {
|
| | | if (uid == null || uid == 0)
|
| | |
| | | collectionGoodsV2Mapper.insertSelective(goods);
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Transactional(rollbackFor=Exception.class)
|
| | | @Override
|
| | | public void cancelCollection(Long uid, Long id) throws CollectionGoodsException {
|
| | | if (uid == null || uid == 0)
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public List<CollectionGoodsV2> getCollectionGoodsList(Long uid, int page, int pageSize, Integer source) {
|
| | | return collectionGoodsV2Mapper.selectByUidOrderByCreateTimeDesc(uid, (page - 1) * pageSize, pageSize, source);
|
| | | public List<CollectionGoodsV2> getCollectionGoodsList(Long uid, int page, int pageSize, Integer source, boolean notBackSuVip) {
|
| | | return collectionGoodsV2Mapper.selectByUidOrderByCreateTimeDesc(uid, (page - 1) * pageSize, pageSize, source, notBackSuVip);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public long getCollectionGoodsCount(Long uid, Integer source) {
|
| | | return collectionGoodsV2Mapper.selectCountByUid(uid, source);
|
| | | public long getCollectionGoodsCount(Long uid, Integer source, boolean notBackSuVip) {
|
| | | return collectionGoodsV2Mapper.selectCountByUid(uid, source, notBackSuVip);
|
| | | }
|
| | |
|
| | | @Override
|