核销码批量查询

@param model
@return
@throws AlipayApiException
422929
public static AlipayCommerceCityfacilitatorVoucherBatchqueryResponse voucherBatchqueryToResponse(
			AlipayCommerceCityfacilitatorVoucherBatchqueryModel model) throws AlipayApiException {
		AlipayCommerceCityfacilitatorVoucherBatchqueryRequest request = new AlipayCommerceCityfacilitatorVoucherBatchqueryRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
1245463
public function actionModel($model = null)
    {
        if (!$model) {
            $model = $this->prompt('Namespaced path to the ngrest model (e.g. "app\models\Users"):');
        }
        $object = Yii::createObject(['class' => $model]);
        
        if (!$object instanceof NgRestModelInterface) {
            throw new Exception("Model must be instance of NgRestModelInterface.");
        }
        
        $reflector = new \ReflectionClass($model);
        $fileName = $reflector->getFileName();
        $path = dirname($fileName);
        $apiEndpoint = $object->ngrestApiEndpoint();
        $i18n = !empty($object->i18n);
        $data = [
            'path' =>  $path,
            'fileName' => basename($fileName),
            'content' => $this->generateModelContent(
                $reflector->getNamespaceName(),
                $reflector->getShortName(),
                $apiEndpoint,
                Yii::$app->db->getTableSchema($object->tableName(), true),
                $i18n
             ),
        ];
        
        $this->generateFile($data);
    }
545079
public <S extends Model> int deleteByModel(S model) {
        this.beforeCheck();
        String       sql             = this.buildDeleteSQL(model);
        List<Object> columnValueList = AnimaUtils.toColumnValues(model, false);
        return this.execute(sql, columnValueList);
    }
1263152
public static <S extends Model> Object getAndRemovePrimaryKey(S model) {
        String fieldName = getPKField(model.getClass());
        Object value     = invokeMethod(model, getGetterName(fieldName), EMPTY_ARG);
        if (null != value) {
            invokeMethod(model, getSetterName(fieldName), NULL_ARG);
        }
        return value;
    }
656187
public <S extends Model> int updateByModel(S model) {
        this.beforeCheck();

        Object primaryKey = AnimaUtils.getAndRemovePrimaryKey(model);

        StringBuilder sql = new StringBuilder(this.buildUpdateSQL(model, null));

        List<Object> columnValueList = AnimaUtils.toColumnValues(model, false);

        ifNotNullThen(primaryKey, () -> {
            sql.append(" WHERE ").append(this.primaryKeyColumn).append(" = ?");
            columnValueList.add(primaryKey);
        });

        return this.execute(sql.toString(), columnValueList);
    }
558275
public void addServletModel(final ServletModel model) throws NamespaceException, ServletException {
		servletLock.writeLock().lock();
		try {
            associateBundle(model.getContextModel().getVirtualHosts(), model.getContextModel().getBundle());
            for (String virtualHost:resolveVirtualHosts(model)) {
                if (servlets.get(virtualHost) == null) {
                    servlets.put(virtualHost, new HashSet<>());
                }
                if (model.getServlet() != null && servlets.get(virtualHost).contains(model.getServlet())) {
                        throw new ServletException("servlet already registered with a different alias");
                }
                if (model.getAlias() != null) {
                        final String alias = getFullPath(model.getContextModel(), model.getAlias());
                        if (aliasMapping.get(virtualHost) == null) {
                            aliasMapping.put(virtualHost, new HashMap<>());
                        }
                        if (aliasMapping.get(virtualHost).containsKey(alias)) {
                                throw new NamespaceException("alias: '" + alias + "' is already in use in this or another context");
                        }
                        aliasMapping.get(virtualHost).put(alias, model);
                }
                if (model.getServlet() != null) {
                        servlets.get(virtualHost).add(model.getServlet());
                }
                for (String urlPattern : model.getUrlPatterns()) {
                        if (servletUrlPatterns.get(virtualHost) == null) {
                            servletUrlPatterns.put(virtualHost, new HashMap<>());
                        }
                        servletUrlPatterns.get(virtualHost).put(getFullPath(model.getContextModel(), urlPattern),
                                        new UrlPattern(getFullPath(model.getContextModel(), urlPattern), model));
                }
            }
		} finally {
			servletLock.writeLock().unlock();
		}
	}
651663
public void removeServletModel(final ServletModel model) {
		servletLock.writeLock().lock();
		try {
            deassociateBundle(model.getContextModel().getVirtualHosts(), model.getContextModel().getBundle());
            for (String virtualHost:resolveVirtualHosts(model)) {
                if (model.getAlias() != null) {
                        aliasMapping.get(virtualHost).remove(getFullPath(model.getContextModel(), model.getAlias()));
                }
                if (model.getServlet() != null) {
                        servlets.get(virtualHost).remove(model.getServlet());
                }
                if (model.getUrlPatterns() != null) {
                        for (String urlPattern : model.getUrlPatterns()) {
                                servletUrlPatterns.get(virtualHost).remove(getFullPath(model.getContextModel(), urlPattern));
                        }
                }
            }
		} finally {
			servletLock.writeLock().unlock();
		}
	}
228557
public static AlipayCommerceCityfacilitatorVoucherGenerateResponse voucherGenerateToResponse(
			AlipayCommerceCityfacilitatorVoucherGenerateModel model) throws AlipayApiException {
		AlipayCommerceCityfacilitatorVoucherGenerateRequest request = new AlipayCommerceCityfacilitatorVoucherGenerateRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
820285
@POST
    public final Response insert(@NotNull @Valid final MODEL model) throws Exception {
        return super.insert(model);
    }
1087486
public static AlipayCommerceCityfacilitatorStationQueryResponse stationQueryToResponse(
			AlipayCommerceCityfacilitatorStationQueryModel model) throws AlipayApiException {
		AlipayCommerceCityfacilitatorStationQueryRequest request = new AlipayCommerceCityfacilitatorStationQueryRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
1271137
public function loadModel($id, $model = false)
    {
        if (!$model)
            $model = str_replace('Controller', '', get_class($this));
        if ($this->_loadModel === null) {
            $this->_loadModel = CActiveRecord::model($model)->findbyPk($id);
            if ($this->_loadModel === null)
                throw new CHttpException(404, Yii::t('email', 'The requested page does not exist.'));
        }
        return $this->_loadModel;
    }
496103
public static AlipayFundTransToaccountTransferResponse transferToResponse(
			AlipayFundTransToaccountTransferModel model) throws AlipayApiException {
		AlipayFundTransToaccountTransferRequest request = new AlipayFundTransToaccountTransferRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
374607
public static AlipayFundCouponOrderPagePayResponse fundCouponOrderPagePayToResponse(
			AlipayFundCouponOrderPagePayModel model) throws AlipayApiException {
		AlipayFundCouponOrderPagePayRequest request = new AlipayFundCouponOrderPagePayRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
832839
protected Assertion getAssertionFrom(final Map<String, Object> model) {
        return (Assertion) model.get(CasViewConstants.MODEL_ATTRIBUTE_NAME_ASSERTION);
    }
469345
public static AlipayCommerceCityfacilitatorVoucherRefundResponse metroRefundToResponse(
			AlipayCommerceCityfacilitatorVoucherRefundModel model) throws AlipayApiException {
		AlipayCommerceCityfacilitatorVoucherRefundRequest request = new AlipayCommerceCityfacilitatorVoucherRefundRequest();
		request.setBizModel(model);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
533961
protected Map<String, Object> getModelAttributes(final Map<String, Object> model) {
        return (Map<String, Object>) model.get(CasProtocolConstants.VALIDATION_CAS_MODEL_ATTRIBUTE_NAME_ATTRIBUTES);
    }
421480
@GetMapping
  public String init(Model model) {

    final UriComponents uriComponents =
        ServletUriComponentsBuilder.fromCurrentContextPath().build();
    model.addAttribute("molgenisUrl", uriComponents.toUriString() + URI + "/swagger.yml");
    model.addAttribute("baseUrl", uriComponents.toUriString());

    final String currentUsername = SecurityUtils.getCurrentUsername();
    if (currentUsername != null) {
      model.addAttribute(
          "token", tokenService.generateAndStoreToken(currentUsername, "For Swagger UI"));
    }
    return "view-swagger-ui";
  }