...
|
...
|
@@ -5,7 +5,6 @@ import com.yoho.error.ServiceError; |
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.service.model.union.response.PageuserRegisterBuyResponseBO;
|
|
|
import com.yoho.unions.bo.UserRegisterBuyBO;
|
|
|
import com.yoho.unions.common.model.DeviceIdMatchBO;
|
|
|
import com.yoho.unions.common.service.IBusinessImportService;
|
|
|
import com.yoho.unions.dal.IOrdersMapper;
|
|
|
import com.yoho.unions.dal.IUserProfileDAO;
|
...
|
...
|
@@ -15,6 +14,7 @@ import org.apache.commons.collections.CollectionUtils; |
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
...
|
...
|
@@ -34,7 +34,7 @@ public class UserInfoImportServiceImpl implements IBusinessImportService { |
|
|
|
|
|
@Override
|
|
|
public Class getDataClass() {
|
|
|
return DeviceIdMatchBO.class;
|
|
|
return UserMobileAndUidVO.class;
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -73,6 +73,9 @@ public class UserInfoImportServiceImpl implements IBusinessImportService { |
|
|
logger.warn("UserRegisterBuyInfo:uid is {},mobile is {},userSource is {}", userProfile.getUid(), userProfile.getMobile(), userProfile.getUserSource());
|
|
|
throw new ServiceException(ServiceError.USER_NOT_EXIST);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
userRegisterBuyBO.setMobile(userProfile.getMobile());
|
|
|
userRegisterBuyBO.setRegister(true);
|
|
|
userRegisterBuyBO.setUid(userProfile.getUid());
|
...
|
...
|
@@ -85,6 +88,13 @@ public class UserInfoImportServiceImpl implements IBusinessImportService { |
|
|
userRegisterBuyList.add(userRegisterBuyBO);
|
|
|
}
|
|
|
|
|
|
|
|
|
userRegisterBuyList=Lists.transform(Lists.newArrayList(userRegisterBuyList),input -> {
|
|
|
UserRegisterBuyBO output = new UserRegisterBuyBO();
|
|
|
BeanUtils.copyProperties(input, output);
|
|
|
return output;
|
|
|
});
|
|
|
|
|
|
PageuserRegisterBuyResponseBO pageuserRegisterBuyResponseBO = new PageuserRegisterBuyResponseBO();
|
|
|
pageuserRegisterBuyResponseBO.setList(userRegisterBuyList);
|
|
|
|
...
|
...
|
|