예제 #1
0
 /**
  * 根据条件查询店铺信息、店铺授权信息
  *
  * @param shopBean
  * @return
  */
 @Transactional(readOnly = true)
 public List<ShopBean> findShopBean(ShopBean shopBean) {
   Shop shopQuery = new Shop();
   shopQuery.setPlatformType(shopBean.getPlatformType());
   shopQuery.setId(shopBean.getShopId());
   // 查询所有店铺及授权信息
   List<Shop> shopList = shopService.getShopAndAuth(shopQuery);
   return convertShopList2ShopBeanList(shopList);
 }
예제 #2
0
 /**
  * 获取订单的最后抓取时间
  *
  * @param shopBean
  * @return
  */
 public Date getLastFetchReturnTime(ShopBean shopBean) {
   OrderFetch orderFetch =
       orderFetchService.findLastOrderFetch(
           shopBean.getPlatformType(),
           shopBean.getShopId(),
           FetchDataType.FETCH_RETURN,
           shopBean.getFetchOptType());
   return orderFetch == null ? null : orderFetch.getFetchTime();
 }