|
|
@ -246,12 +246,14 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
UserEntity userEntity = new UserEntity(); |
|
|
|
userEntity.setFromApp(UserConstant.APP_RESI); |
|
|
|
userEntity.setFromClient(UserConstant.CLIENT_WX); |
|
|
|
userEntity.setCustomerId(wechatDTO.getCustomerId()); |
|
|
|
if (baseDao.insert(userEntity) < NumConstant.ONE) { |
|
|
|
log.error("小程序登陆,居民端user表新增数据失败"); |
|
|
|
throw new RenException(UserConstant.SAVE_USER); |
|
|
|
} |
|
|
|
//user_wechat表新增
|
|
|
|
userWechatEntity.setUserId(userEntity.getId()); |
|
|
|
userWechatEntity.setCustomerId(wechatDTO.getCustomerId()); |
|
|
|
if (userWechatDao.insert(userWechatEntity) < NumConstant.ONE) { |
|
|
|
log.error("小程序登陆,居民端user_wechat表新增数据失败"); |
|
|
|
throw new RenException(UserConstant.SAVE_USER_WECHAT); |
|
|
|