|
@ -36,6 +36,7 @@ import com.epmet.dto.form.WxLoginUserInfoFormDTO; |
|
|
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO; |
|
|
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO; |
|
|
import com.epmet.entity.CustomerUserEntity; |
|
|
import com.epmet.entity.CustomerUserEntity; |
|
|
import com.epmet.entity.UserEntity; |
|
|
import com.epmet.entity.UserEntity; |
|
|
|
|
|
import com.epmet.entity.UserWechatEntity; |
|
|
import com.epmet.redis.CustomerUserRedis; |
|
|
import com.epmet.redis.CustomerUserRedis; |
|
|
import com.epmet.service.CustomerUserService; |
|
|
import com.epmet.service.CustomerUserService; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
@ -171,7 +172,8 @@ public class CustomerUserServiceImpl extends BaseServiceImpl<CustomerUserDao, Cu |
|
|
userEntity.setFromClient(UserConstant.CLIENT_WX); |
|
|
userEntity.setFromClient(UserConstant.CLIENT_WX); |
|
|
userDao.insert(userEntity); |
|
|
userDao.insert(userEntity); |
|
|
dto.setUserId(userEntity.getId()); |
|
|
dto.setUserId(userEntity.getId()); |
|
|
|
|
|
UserWechatEntity userWechatEntity = ConvertUtils.sourceToTarget(dto,UserWechatEntity.class); |
|
|
|
|
|
userWechatDao.insert(userWechatEntity); |
|
|
} |
|
|
} |
|
|
return new Result<String>().ok(entity.getId()); |
|
|
return new Result<String>().ok(entity.getId()); |
|
|
} |
|
|
} |
|
|