admin
2019-06-26 1d36d85eebd73a1bef9c8b5ea77bbfc28260e878
淘礼金的领取链接修改后同步到数据库
1个文件已修改
11 ■■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/tlj/UserTaoLiJinRecordServiceImpl.java
@@ -98,6 +98,8 @@
        return userTaoLiJinRecordMapper.selectByPrimaryKey(id);
    }
    @Transactional
    @Override
    public UserTaoLiJinRecord createSelfBuyTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
            throws UserTaoLiJinRecordException {
@@ -138,6 +140,10 @@
            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,
@@ -146,6 +152,7 @@
    }
    @Transactional
    @Override
    public UserTaoLiJinRecord createShareTaoLiJin(Long uid, int totalNum, TaoBaoGoodsBrief goods)
            throws UserTaoLiJinRecordException {
@@ -196,6 +203,10 @@
                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;
    }