...
|
...
|
@@ -6,23 +6,25 @@ import com.google.common.cache.CacheBuilder; |
|
|
import com.yoho.core.common.utils.DateUtil;
|
|
|
import com.yoho.core.rest.client.ServiceCaller;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.order.dal.SellerOrderGoodsMapper;
|
|
|
import com.yoho.order.dal.SellerWalletDetailMapper;
|
|
|
import com.yoho.order.dal.StoredSellerMapper;
|
|
|
import com.yoho.order.dal.TradeBillsMapper;
|
|
|
import com.yoho.order.model.*;
|
|
|
import com.yoho.order.model.StoredSeller;
|
|
|
import com.yoho.order.model.StoredSellerReqVo;
|
|
|
import com.yoho.order.model.TradeBills;
|
|
|
import com.yoho.order.model.TradeBillsReq;
|
|
|
import com.yoho.ufo.order.constant.MoneyTypeEnum;
|
|
|
import com.yoho.ufo.order.constant.TradeStatusEnum;
|
|
|
import com.yoho.ufo.order.response.StoredSellerRespVo;
|
|
|
import com.yoho.ufo.order.service.ITradeBillsService;
|
|
|
import com.yoho.ufo.service.impl.UserHelper;
|
|
|
import com.yoho.ufo.service.model.PageResponseBO;
|
|
|
import com.yohobuy.ufo.model.enums.StoredSellerStatusEnum;
|
|
|
import com.yohobuy.ufo.model.order.bo.AppraiseExpressInfoBo;
|
|
|
import com.yohobuy.ufo.model.order.resp.*;
|
|
|
import com.yohobuy.ufo.model.order.resp.TradeBillsResp;
|
|
|
import com.yohobuy.ufo.model.user.req.AuthorizeInfoReq;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.elasticsearch.common.collect.Lists;
|
|
|
import org.elasticsearch.common.collect.Maps;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -35,7 +37,6 @@ import java.util.Map; |
|
|
import java.util.concurrent.Callable;
|
|
|
import java.util.concurrent.ExecutionException;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @author craig.qin
|
...
|
...
|
@@ -63,6 +64,12 @@ public class TradeBillsServiceImpl implements ITradeBillsService { |
|
|
@Autowired
|
|
|
private StoredSellerMapper storedSellerMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private SellerWalletDetailMapper sellerWalletDetailMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
|
|
|
|
|
@Override
|
|
|
public PageResponseBO<StoredSellerRespVo> queryStoredSeller(StoredSellerReqVo req){
|
|
|
if(req.getUid()==null&&StringUtils.isNotBlank(req.getMobile())){
|
...
|
...
|
@@ -105,10 +112,12 @@ public class TradeBillsServiceImpl implements ITradeBillsService { |
|
|
resp.setValidStatus(item.getValidStatus());
|
|
|
resp.setValidStatusDesc(StoredSellerStatusEnum.getDescriptionByCode(item.getValidStatus()));
|
|
|
resp.setMobile(getMobileByUidFromCache(item.getUid()));
|
|
|
resp.setEnterTime(item.getEnterTime()<=0?null:item.getEnterTime());
|
|
|
resp.setQuitTime(item.getQuitTime()<=0?null:item.getQuitTime());
|
|
|
resp.setSelfSkuNum(0);
|
|
|
resp.setBreakRuleTimes(0);
|
|
|
resp.setEnterTime(item.getEnterTime());
|
|
|
resp.setQuitTime(item.getQuitTime());
|
|
|
// 上架skuP
|
|
|
resp.setSelfSkuNum(sellerOrderGoodsMapper.selectCountCanCell(item.getUid()));
|
|
|
// 违约次数
|
|
|
resp.setBreakRuleTimes(sellerWalletDetailMapper.selectUserBreakRulesCount(item.getUid()));
|
|
|
respList.add(resp);
|
|
|
}
|
|
|
return respList;
|
...
|
...
|
|