...
|
...
|
@@ -233,8 +233,8 @@ public class DepositServiceImpl implements DepositService { |
|
|
|
|
|
// 转卖
|
|
|
@Override
|
|
|
public boolean changeOwner(Integer uid, Integer skup, long buyOrderCode, Integer newUid) {
|
|
|
LOGGER.info("changeOwner success! uid {}, skup is {}, buyOrderCode is {}, newUid is {}", uid, skup, buyOrderCode, newUid);
|
|
|
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);
|
|
|
StorageDeposit sd = storageDepositMapper.queryByOwnerSkup(uid, skup);
|
|
|
if (sd == null) {
|
|
|
return false;
|
...
|
...
|
@@ -247,7 +247,8 @@ public class DepositServiceImpl implements DepositService { |
|
|
sd.setOwnerUid(newUid);
|
|
|
sd.setOrderCode(buyOrderCode);
|
|
|
sd.setSkup(sd.getNewSkup());
|
|
|
sd.setStatus(1);
|
|
|
sd.setStatus(isDeposit ? 1 : 2);
|
|
|
sd.setOutType(isDeposit ? 0 : 2);
|
|
|
sd.setOrderStatus(0);
|
|
|
sd.setUpdateTime(0);
|
|
|
int now = (int) (System.currentTimeMillis() / 1000);
|
...
|
...
|
|