This commit is contained in:
parent
adc9a4f1c1
commit
f979a8f275
|
|
@ -571,13 +571,12 @@ public class UserServiceImpl implements UserService {
|
||||||
} else {
|
} else {
|
||||||
userDao.update(userWechat);
|
userDao.update(userWechat);
|
||||||
}
|
}
|
||||||
if (userPhone != null) {
|
if (null != userPhone) {
|
||||||
//用户资产信息
|
UserAsset userAssetPhone = userAssetDao.get(userPhone.getUserId());
|
||||||
UserAssetDto userAssetDtoWechat = getUserAssetInfo(userWechat.getUserId());
|
UserAsset userAssetWechat = userAssetDao.get(userWechat.getUserId());
|
||||||
UserAssetDto userAssetDtoPhone = getUserAssetInfo(userPhone.getUserId());
|
userAssetPhone.setGoldValue(userAssetPhone.getGoldValue().add(userAssetWechat.getGoldValue()));
|
||||||
UserAsset userAsset = new UserAsset(userPhone.getUserId(),new BigDecimal(userAssetDtoWechat.getGoldValue().intValue() + userAssetDtoPhone.getGoldValue().intValue()));
|
userAssetDao.update(userAssetPhone);
|
||||||
userAssetDao.update(userAsset);
|
userAssetDao.delete(userAssetWechat);
|
||||||
|
|
||||||
}
|
}
|
||||||
return new JsonResult<JSONObject>(ResultEnum.success.getKey());
|
return new JsonResult<JSONObject>(ResultEnum.success.getKey());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue