Browse Source

居民用户微信登录接口修改

master
wangchao 5 years ago
parent
commit
764615519b
  1. 4
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerUserServiceImpl.java

4
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerUserServiceImpl.java

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

Loading…
Cancel
Save