This commit is contained in:
yiyan 2019-12-26 10:22:35 +08:00
parent acc200a54e
commit adc9a4f1c1
1 changed files with 8 additions and 1 deletions

View File

@ -571,8 +571,15 @@ public class UserServiceImpl implements UserService {
} else {
userDao.update(userWechat);
}
if (userPhone != null) {
//用户资产信息
UserAssetDto userAssetDtoWechat = getUserAssetInfo(userWechat.getUserId());
UserAssetDto userAssetDtoPhone = getUserAssetInfo(userPhone.getUserId());
UserAsset userAsset = new UserAsset(userPhone.getUserId(),new BigDecimal(userAssetDtoWechat.getGoldValue().intValue() + userAssetDtoPhone.getGoldValue().intValue()));
userAssetDao.update(userAsset);
return wechatValidate(unionId);
}
return new JsonResult<JSONObject>(ResultEnum.success.getKey());
}
public void updateData(String sql){