|
|
package com.yohoufo.order.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.yoho.core.config.ConfigReader;
|
...
|
...
|
@@ -53,21 +54,25 @@ public class QiniuLiveRecordService { |
|
|
}
|
|
|
|
|
|
public void copyQiniuLiveRecord(StorageDeposit storageDeposit) {
|
|
|
LOG.info("copyQiniuLiveRecord storageDeposit is {}", storageDeposit);
|
|
|
if (Objects.isNull(storageDeposit)) {
|
|
|
return;
|
|
|
}
|
|
|
QiniuLiveRecord qiniuLiveRecords = qiniuLiveRecordMapper.selectByOrderCode(storageDeposit.getOrderCode());
|
|
|
QiniuLiveRecord qiniuLiveRecords = qiniuLiveRecordMapper.selectByOrderCode4Copy(storageDeposit.getOrderCode());
|
|
|
if (Objects.isNull(qiniuLiveRecords)) {
|
|
|
LOG.warn("copyQiniuLiveRecord qiniuLiveRecords is null");
|
|
|
return;
|
|
|
}
|
|
|
SellerOrder sellerOrder = sellerOrderMapper.selectBySkup(storageDeposit.getNewSkup());
|
|
|
if (Objects.isNull(sellerOrder)) {
|
|
|
LOG.warn("copyQiniuLiveRecord sellerOrder is null");
|
|
|
return;
|
|
|
}
|
|
|
qiniuLiveRecords.setId(null);
|
|
|
qiniuLiveRecords.setOrderCode(storageDeposit.getNewOrderCode());
|
|
|
qiniuLiveRecords.setSkup(sellerOrder.getSkup());
|
|
|
qiniuLiveRecords.setSellerOrderCode(sellerOrder.getOrderCode());
|
|
|
LOG.info("copyQiniuLiveRecord qiniuLiveRecords for insert is {}", JSON.toJSONString(qiniuLiveRecords));
|
|
|
qiniuLiveRecordMapper.insert(qiniuLiveRecords);
|
|
|
}
|
|
|
|
...
|
...
|
|