|
|
package com.yoho.unions.server.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONException;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.service.model.response.PageResponseBO;
|
...
|
...
|
@@ -28,7 +29,7 @@ import java.util.List; |
|
|
* Created by jianhui.wang on 2017/7/25.
|
|
|
*/
|
|
|
@Service
|
|
|
public class userRegisterBuyInfoserviceImpl implements IUserRegisterBuyInfoService, IBusinessExportService {
|
|
|
public class UserRegisterBuyInfoserviceImpl implements IUserRegisterBuyInfoService, IBusinessExportService {
|
|
|
|
|
|
static Logger logger = LoggerFactory.getLogger("UserRegisterBuyInfoserviceImpl");
|
|
|
|
...
|
...
|
@@ -94,6 +95,9 @@ public class userRegisterBuyInfoserviceImpl implements IUserRegisterBuyInfoServi |
|
|
while (userRegisterBuyBO != null);
|
|
|
|
|
|
for (int k = 0; k < userInfoList.size(); k++) {
|
|
|
if (null==userRegisterBuyVO.getRegister()||null==userRegisterBuyVO.getBuy()) {
|
|
|
getuserInfoList.add(userInfoList.get(k));
|
|
|
}
|
|
|
if ("0".equals(userRegisterBuyVO.getRegister()) && ("0".equals(userInfoList.get(k).getBuy()) || "1".equals(userInfoList.get(k).getBuy()))) {
|
|
|
if ("未注册".equals(userInfoList.get(k).getRegister()) && "未购买".equals(userInfoList.get(k).getBuy())) {
|
|
|
getuserInfoList.add(userInfoList.get(k));
|
...
|
...
|
@@ -127,9 +131,8 @@ public class userRegisterBuyInfoserviceImpl implements IUserRegisterBuyInfoServi |
|
|
@Override
|
|
|
public List<? extends Object> batchExport(String confStr) {
|
|
|
try {
|
|
|
UserRegisterBuyVO userRegisterBuyVO =new UserRegisterBuyVO();
|
|
|
userRegisterBuyVO.setRegister(confStr.substring(15,16));
|
|
|
userRegisterBuyVO.setBuy(confStr.substring(27,28));
|
|
|
UserRegisterBuyVO userRegisterBuyVO = JSONObject.parseObject(confStr, UserRegisterBuyVO.class);
|
|
|
|
|
|
PageResponseBO<UserRegisterBuyBO> pageResponseBO = getUserRegisterBuyList(userRegisterBuyVO);
|
|
|
List<UserRegisterBuyBO> UserRegisterBuyBOList = pageResponseBO.getList();
|
|
|
if (CollectionUtils.isEmpty(UserRegisterBuyBOList)) {
|
...
|
...
|
|