| | |
| | | return userTaoLiJinRecordMapper.selectByPrimaryKey(id);
|
| | | }
|
| | |
|
| | | |
| | | @Transactional
|
| | | @Override
|
| | | public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
|
| | | throws UserTaoLiJinRecordException {
|
| | |
| | | UserTaoLiJinRecord record = createUserTaoLiJin(1, uid, goods.getAuctionId(), perface, 1, name,
|
| | | sendStartTime, sendEndTime, null, useEndTime, TaoBaoConstant.TAOBAO_RELATION_AS_SPECIAL_PID);
|
| | | record.setSendUrl(record.getSendUrl() + "&relationId=" + relationId);
|
| | | UserTaoLiJinRecord updateRecoed=new UserTaoLiJinRecord();
|
| | | updateRecoed.setId(record.getId());
|
| | | updateRecoed.setSendUrl(record.getSendUrl());
|
| | | userTaoLiJinRecordMapper.updateByPrimaryKeySelective(record);
|
| | | return record;
|
| | | } else {// 返利库商品
|
| | | return createUserTaoLiJin(1, uid, goods.getAuctionId(), perface, 1, name, sendStartTime, sendEndTime, null,
|
| | |
| | |
|
| | | }
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
|
| | | throws UserTaoLiJinRecordException {
|
| | |
| | | sendStartTime, sendEndTime, null, useEndTime, TaoBaoConstant.TAOBAO_RELATION_PID_DEFAULT);
|
| | | String sendUrl = record.getSendUrl() + "&relationId=" + relationId;
|
| | | record.setSendUrl(sendUrl);
|
| | | UserTaoLiJinRecord updateRecoed=new UserTaoLiJinRecord();
|
| | | updateRecoed.setId(record.getId());
|
| | | updateRecoed.setSendUrl(sendUrl);
|
| | | userTaoLiJinRecordMapper.updateByPrimaryKeySelective(record);
|
| | | return record;
|
| | | }
|
| | |
|