taobao.shop.remainshowcase.get 获取卖家店铺剩余橱窗数量
        
        目前只支持标题、公告和描述的更新
435263
def update(self, session, title=None, bulletin=None, desc=None):
        ''''''
        request = TOPRequest('taobao.shop.remainshowcase.get')
        if title!=None: request['title'] = title
        if bulletin!=None: request['bulletin'] = bulletin
        if desc!=None: request['desc'] = desc
        self.create(self.execute(request, session)['shop'])
        return self
545237
@SuppressWarnings("unchecked")
    public <T> T persist(T object) {
        pm.currentTransaction().begin();
        pm.makePersistent(object);
        pm.currentTransaction().commit();
        pm.getFetchPlan().setDetachmentOptions(FetchPlan.DETACH_LOAD_FIELDS);
        pm.refresh(object);
        return object;
    }
1017637
function addQuery(url, query) {
    let urlObj = url_opera.parse(url);
    let urlQue = querystring.parse(urlObj.query);
    query = query || {};
    // 把页面url中的请求参数和数据连接中的请求参数合并
    urlQue = Object.assign({}, query, urlQue);

    // 把合并之后参数进行stringify，作为新的参数
    let queStr = querystring.stringify(urlQue);
    let urlStr = urlObj.protocol + '//' + urlObj.host + urlObj.pathname;

    urlStr += queStr ? ('?' + queStr) : '';

    return urlStr;
  }
78373
def update(self, pid, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.product.update')
        request['pid'] = pid
        for k, v in kwargs.iteritems():
            if k not in ('name', 'standard_price', 'cost_price', 'retail_price_low', 'retail_price_high', 'outer_id', 'quantity', 'alarm_number','desc','prov','city','postage_type','postage_id','postage_ordinary','postage_fast','postage_ems','status','sku_ids','sku_cost_prices','sku_quantitys','sku_outer_ids','have_invoice','have_guarantee','discount_id','sku_standard_prices','sku_properties','sku_properties_del','is_authz','pic_path','image','properties','property_alias','input_properties','dealer_cost_price','sku_dealer_cost_prices','category_id') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['pid','modified'], models={'modified':TOPDate})
        return self
270560
def get(self, parent_cid=None, cids=[], fields=[]):
        ''''''
        request = TOPRequest('taobao.itemcats.get')
        if not fields:
            itemCat = ItemCat()
            fields = itemCat.fields
        request['fields'] = fields
        if parent_cid!=None:
            request['parent_cid'] = parent_cid
        if cids:
            request['cids'] = ','.join([str(cid) for cid in cids])
        self.create(self.execute(request))
        return self.item_cats
484352
@NoAuth
    @RequestMapping(value = "/item", method = RequestMethod.GET)
    @ResponseBody
    public ValueVo getItem(ConfForm confForm) {

        LOG.info(confForm.toString());

        //
        // 校验
        //
        ConfigFullModel configModel = null;
        try {
            configModel = configValidator4Fetch.verifyConfForm(confForm, false);
        } catch (Exception e) {
            LOG.warn(e.toString());
            return ConfigUtils.getErrorVo(e.getMessage());
        }

        return configFetchMgr.getConfItemByParameter(configModel.getApp().getId(), configModel.getEnv().getId(),
                configModel.getVersion(), configModel.getKey());
    }
431035
def listurl_get(self, q, **kwargs):
        ''''''
        request = TOPRequest('taobao.taobaoke.listurl.get')
        request['q'] = q
        for k, v in kwargs.iteritems():
            if k not in ('nick', 'outer_code', 'pid') and v==None: continue
            request[k] = v
        self.create(self.execute(request), fields=['taobaoke_item'], models={'taobaoke_item':TaobaokeItem})
        return self.taobaoke_item
679718
def get(self, fields=[]):
        ''''''
        request = TOPRequest('taobao.areas.get')
        if not fields:
            area = Area()
            fields = area.fields
        request['fields'] = fields
        self.create(self.execute(request))
        return self.areas
1226825
def refunds_get(self, **kwargs):
        ''''''
        request = TOPRequest('taobao.increment.refunds.get')
        for k, v in kwargs.iteritems():
            if k not in ('status', 'nick', 'start_modified', 'end_modified', 'page_no', 'page_size') and v==None: continue
            request[k] = v
        self.create(self.execute(request), fields=['notify_refunds', 'total_results'], models={'notify_refunds':NotifyRefund})
        return self.notify_refunds
263605
def trades_get(self, **kwargs):
        ''''''
        request = TOPRequest('taobao.increment.trades.get')
        for k, v in kwargs.iteritems():
            if k not in ('status', 'nick', 'type', 'start_modified', 'end_modified', 'page_no', 'page_size') and v==None: continue
            request[k] = v
        self.create(self.execute(request), fields=['notify_trades', 'total_results'], models={'notify_trades':NotifyTrade})
        return self.notify_trades
78670
def get(self, page_size, current_page, session):
        ''''''
        request = TOPRequest('taobao.crm.groups.get')
        request['page_size'] = page_size
        request['current_page'] = current_page
        self.create(self.execute(request, session))
        return self.groups
637668
def search(self, user_nick, collect_type, page_no, session=None):
        ''''''
        request = TOPRequest('taobao.favorite.search')
        request['user_nick'] = user_nick
        request['collect_type'] = collect_type
        request['page_no'] = page_no
        self.create(self.execute(request, session))
        return self.result
1168518
private static PersistMeta scanJpaAnnotations(Class<?> clazz) {
    //扫描名字处理策略
    boolean mapCamelCaseToUnderscore = true;
    NameMappingPolicy mapping = clazz.getAnnotation(NameMappingPolicy.class);
    if (null != mapping) {
      mapCamelCaseToUnderscore = "mapCamelCaseToUnderscore".equals(mapping.value());
    }

    PersistMeta meta = new PersistMeta();
    //扫描@Table注解获得表名字
    Table table = clazz.getAnnotation(Table.class);
    String tableName;
    if (null != table) {
      tableName = table.name();
    } else {
      tableName = nameConvert(clazz.getSimpleName(), mapCamelCaseToUnderscore);
    }
    meta.setTableName(tableName);
    log.info("Entity: {}, TableName: {}", clazz.getName(), tableName);

    //扫描分表操作，如果没有找到则不做处理
    TableSplitPolicy policy = clazz.getAnnotation(TableSplitPolicy.class);
    if (null != policy) {
      for (Class<?> clz = clazz; clz != Object.class; clz = clz.getSuperclass()) {
        try {
          Method method = clz.getDeclaredMethod(policy.value());
          method.setAccessible(true);
          meta.setPostfix(method);
          break;
        } catch (NoSuchMethodException ignored) {
        }
      }
    }

    //扫描@Column获取所有的数据表列，扫描类继承层次
    Map<String, Field> columns = Maps.newHashMap();
    final int ignoreModifier = Modifier.FINAL | Modifier.STATIC | Modifier.VOLATILE | Modifier.TRANSIENT;
    for (Class<?> clz = clazz; clz != Object.class; clz = clz.getSuperclass()) {
      Field[] fields = clz.getDeclaredFields();
      for (Field field : fields) {
        //有@Transient注解，代表不保存到db中
        if (field.isAnnotationPresent(Transient.class))
          continue;
        if ((field.getModifiers() & ignoreModifier) > 0)
          continue;

        String columnName;
        Column column = field.getAnnotation(Column.class);
        String fieldName = field.getName();
        if (column != null) {
          columnName = column.name();
          if (Strings.isNullOrEmpty(columnName)) {
            columnName = nameConvert(fieldName, mapCamelCaseToUnderscore);
          }
        } else {
          columnName = nameConvert(fieldName, mapCamelCaseToUnderscore);
        }
        columns.put(columnName, field);
        log.info("{}, fieldName:{}, columnName:{}", clazz.getName(), fieldName, columnName);
      }
    }
    meta.setColumns(columns);
    return meta;
  }
1053728
def get(self, nick, fields=[], props=None, page_no=None, page_size=None):
        ''''''
        request = TOPRequest('taobao.products.get')
        request['nick'] = nick
        if not fields:
            product = Product()
            fields = product.fields
        request['fields'] = fields
        if props!=None: request['props'] = props
        if page_no!=None: request['page_no'] = page_no
        if page_size!=None: request['page_size'] = page_size
        self.create(self.execute(request))
        return self.products
637976
private void postHandleCasVersion(Object t, int rows) {
        Field casVersionField = DOInfoReader.getCasVersionColumn(t.getClass());
        if(casVersionField != null) {
            if(rows <= 0) {
                throw new CasVersionNotMatchException("update fail for class:"
                        + t.getClass().getName() + ",data:" + JSON.toJson(t));
            } else {
                Object casVersion = DOInfoReader.getValue(casVersionField, t);
                if(casVersion instanceof Integer) {
                    Integer newVersion = ((Integer) casVersion) + 1;
                    DOInfoReader.setValue(casVersionField, t, newVersion);
                } else if (casVersion instanceof Long) {
                    Long newVersion = ((Long) casVersion) + 1;
                    DOInfoReader.setValue(casVersionField, t, newVersion);
                } else {
                    // 其它类型ignore，已经在update之前就断言casVersion必须是Integer或Long类型
                }
            }
        }
    }
562592
def items_get(self, session, **kwargs):
        ''''''
        request = TOPRequest('taobao.fenxiao.distributor.items.get')
        for k, v in kwargs.iteritems():
            if k not in ('distributor_id', 'start_modified', 'end_modified', 'page_no', 'page_size', 'product_id') and v==None: continue
            request[k] = v
        self.create(self.execute(request, session), fields=['total_results','records'], models={'records':FenxiaoItemRecord})
        return self.records
391242
def get(self, session):
        ''''''
        request = TOPRequest('taobao.aftersale.get')
        self.create(self.execute(request, session))
        return self.after_sales