...
|
...
|
@@ -395,7 +395,7 @@ public class DepositServiceImpl implements DepositService { |
|
|
*/
|
|
|
@Override
|
|
|
public boolean changeOwner(Integer uid, Integer skup, long buyOrderCode, Integer newUid, boolean isDeposit) {
|
|
|
LOGGER.info("changeOwner success! uid {}, skup is {}, buyOrderCode is {}, newUid is {}, isDeposit is {}", uid, skup, buyOrderCode, newUid, isDeposit);
|
|
|
LOGGER.info("changeOwner enter! uid {}, skup {}, buyOrderCode {}, newUid {}, isDeposit {}", uid, skup, buyOrderCode, newUid, isDeposit);
|
|
|
StorageDeposit sd = storageDepositMapper.queryByOwnerSkup(uid, skup);
|
|
|
if (sd == null) {
|
|
|
return false;
|
...
|
...
|
@@ -426,7 +426,7 @@ public class DepositServiceImpl implements DepositService { |
|
|
LOGGER.warn("DepositService.changeOwner setDepotNum fail,StorageDeposit {} depotNum {}", sd, depotNum);
|
|
|
}
|
|
|
// 物权转移
|
|
|
LOGGER.info("sale success! uid {}, skup is {}, buyOrderCode is {}, newUid is {}", uid, skup, buyOrderCode, newUid);
|
|
|
LOGGER.info("changeOwner processing! uid {}, skup is {}, buyOrderCode is {}, newUid is {}", uid, skup, buyOrderCode, newUid);
|
|
|
sd.setId(null);
|
|
|
sd.setOwnerUid(newUid);
|
|
|
long orderCode = sd.getOrderCode();
|
...
|
...
|
@@ -445,7 +445,7 @@ public class DepositServiceImpl implements DepositService { |
|
|
sd.setNewSkup(0);
|
|
|
sd.setSource(DepositSourceEnum.SOURCE_BUYER.getCode());
|
|
|
sd.setDepositType(DepositTypeEnum.TYPE_REAL.getCode());
|
|
|
LOGGER.info("new owner record is sd", sd);
|
|
|
LOGGER.info("save storageDeposit 2 new owner record {}", sd);
|
|
|
storageDepositMapper.insert(sd);
|
|
|
autoTransfer(orderCode, newUid, buyOrderCode);
|
|
|
clearCache(uid, sd.getProductId(), sd.getStorageId());
|
...
|
...
|
|