repo_name
stringlengths 6
101
| path
stringlengths 4
300
| text
stringlengths 7
1.31M
|
|---|---|---|
vietnux/CodeEditorMobile
|
examples/ru.iiec.cxxdroid/sources/f/a/a/a/n/g/w.java
|
package f.a.a.a.n.g;
import f.a.a.a.n.b.k;
import org.json.JSONObject;
public interface w {
u a(k kVar, JSONObject jSONObject);
}
|
opensingular/singular-apps
|
requirement/requirement-module/src/main/java/org/opensingular/requirement/module/wicket/box/AbstractBoxContent.java
|
<reponame>opensingular/singular-apps
/*
* Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensingular.requirement.module.wicket.box;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.ajax.markup.html.form.AjaxButton;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.markup.html.link.DownloadLink;
import org.apache.wicket.markup.html.panel.EmptyPanel;
import org.apache.wicket.markup.html.panel.GenericPanel;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LoadableDetachableModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.StringResourceModel;
import org.apache.wicket.util.time.Duration;
import org.opensingular.form.SInstance;
import org.opensingular.form.document.RefType;
import org.opensingular.form.wicket.panel.SingularFormPanel;
import org.opensingular.lib.commons.lambda.IConsumer;
import org.opensingular.lib.commons.util.Loggable;
import org.opensingular.lib.commons.util.SingularIntegrationException;
import org.opensingular.lib.wicket.util.datatable.BSDataTable;
import org.opensingular.lib.wicket.util.datatable.BSDataTableBuilder;
import org.opensingular.lib.wicket.util.datatable.BaseDataProvider;
import org.opensingular.requirement.module.box.BoxItemDataMap;
import org.opensingular.requirement.module.box.form.STypeDynamicAdvancedFilter;
import org.opensingular.requirement.module.persistence.filter.BoxFilter;
import org.opensingular.requirement.module.service.FormRequirementService;
import org.opensingular.requirement.module.service.RequirementService;
import org.opensingular.requirement.module.service.dto.DatatableField;
import org.opensingular.requirement.module.wicket.view.behavior.SingularJSBehavior;
import org.opensingular.requirement.module.workspace.BoxDefinition;
import javax.inject.Inject;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.nio.file.Files;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import static org.opensingular.lib.wicket.util.util.WicketUtils.$b;
/**
* Classe base para construição de caixas do servidor de petições
*/
@SuppressWarnings("WeakerAccess")
public abstract class AbstractBoxContent extends GenericPanel<BoxItemDataMap> implements Loggable {
public static final int DEFAULT_ROWS_PER_PAGE = 15;
private static final long serialVersionUID = -3611649597709058163L;
@Inject
protected RequirementService requirementService;
@Inject
protected FormRequirementService formRequirementService;
/**
* Tabela de registros
*/
protected BSDataTable<BoxItemDataMap, String> table;
/**
* Form padrão
*/
private Form<?> form = new Form<>("form");
/**
* Filtro Rapido
*/
private TextField<String> filtroRapido = new TextField<>("filtroRapido", new Model<>());
/**
* Botão de pesquisa do filtro rapido
*/
private AjaxButton pesquisarButton = new AjaxButton("pesquisar") {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
super.onSubmit(target, form);
onFiltroRapido(filtroRapido.getModel(), target);
}
};
private WebMarkupContainer confirmModalWrapper = new WebMarkupContainer("confirmModalWrapper");
protected IModel<BoxDefinition> boxDefinition;
private SingularFormPanel advancedFilter;
public AbstractBoxContent(String id, IModel<BoxDefinition> boxDefinition) {
super(id, new Model<>());
this.boxDefinition = boxDefinition;
}
protected Component buildNewRequirementButton(String id) {
return new WebMarkupContainer(id);
}
@SuppressWarnings("SameParameterValue")
protected Component buildBeforeTableContainer(String id) {
return new EmptyPanel(id);
}
@SuppressWarnings("SameParameterValue")
protected Component buildAfterTableContainer(String id) {
return new EmptyPanel(id);
}
protected abstract void appendPropertyColumns(BSDataTableBuilder<BoxItemDataMap, String, IColumn<BoxItemDataMap, String>> builder);
/**
* @return Um par String e Boolean representando a propriedade de ordenação e se deve ser ascendente respectivamente.
*/
protected abstract Pair<String, SortOrder> getSortProperty();
protected abstract void appendActionColumns(BSDataTableBuilder<BoxItemDataMap, String, IColumn<BoxItemDataMap, String>> builder);
protected BSDataTable<BoxItemDataMap, String> createTable(BSDataTableBuilder<BoxItemDataMap, String, IColumn<BoxItemDataMap, String>> builder) {
appendPropertyColumns(builder);
appendActionColumns(builder);
builder.setRowsPerPage(getRowsPerPage());
return builder
.setRowsPerPage(getRowsPerPage())
.build(SingularJSBehavior.SINGULAR_JS_BEAHAVIOR_UPDATE_REGION);
}
protected void showConfirm(AjaxRequestTarget target, BoxContentConfirmModal<BoxItemDataMap> boxContentConfirmModal) {
confirmModalWrapper.addOrReplace(boxContentConfirmModal);
boxContentConfirmModal.show(target);
target.add(confirmModalWrapper);
}
protected TextField<String> getFiltroRapido() {
return filtroRapido;
}
protected AjaxButton getPesquisarButton() {
return pesquisarButton;
}
public String getFiltroRapidoModelObject() {
return filtroRapido.getModelObject();
}
@SuppressWarnings("unused")
protected void onFiltroRapido(IModel<String> model, AjaxRequestTarget target) {
target.add(table);
}
protected Integer getRowsPerPage() {
return DEFAULT_ROWS_PER_PAGE;
}
@Override
protected void onInitialize() {
super.onInitialize();
BSDataTableBuilder<BoxItemDataMap, String, IColumn<BoxItemDataMap, String>> builder = new BSDataTableBuilder<>(createDataProvider());
builder.setStripedRows(false).setBorderedTable(false);
table = createTable(builder);
table.add($b.classAppender("worklist"));
table.setOnNewRowItem(new IConsumer<Item<BoxItemDataMap>>() {
@Override
public void accept(Item<BoxItemDataMap> components) {
final String rowStyleClass = getRowStyleClass(components.getModelObject());
if (rowStyleClass != null) {
components.add(AttributeAppender.append("class", rowStyleClass));
}
}
});
queue(form.add(filtroRapido, pesquisarButton, buildNewRequirementButton("newButtonArea")));
form.add(new HelpFilterBoxPanel("help")
.configureBody(configureSearchHelpBody()));
queue(buildBeforeTableContainer("beforeTableContainer"));
queue(table);
queue(buildExportExcelDownloadLink());
queue(buildAfterTableContainer("afterTableContainer"));
queue(confirmModalWrapper.add(new WebMarkupContainer("confirmationModal")));
WebMarkupContainer advancedFilterContainer = new WebMarkupContainer("advancedFilterContainer");
createAdvancedFilter();
advancedFilterContainer.add(createClearAdvancedFilterButton());
advancedFilterContainer.add(createApllyAdvancedFilterButton());
advancedFilterContainer.add(advancedFilter);
queue(advancedFilterContainer);
}
protected DownloadLink buildExportExcelDownloadLink() {
final DownloadLink exportExcel = new DownloadLink("exportExcel", new LoadableDetachableModel<File>() {
@Override
protected File load() {
return boxDataToXLSX();
}
}, boxDefinition.getObject().getItemBox().getName() + ".xlsx");
exportExcel.setCacheDuration(Duration.NONE);
exportExcel.setDeleteAfterDownload(true);
exportExcel.setVisible(boxDefinition.getObject().getItemBox().isShowExportExcelButton());
return exportExcel;
}
private File boxDataToXLSX() {
try {
final String boxName = boxDefinition.getObject().getItemBox().getName();
final File xlsx = Files.createTempFile(boxName, ".xlsx").toFile();
final Workbook wb = new XSSFWorkbook();
final Sheet sheet = wb.createSheet(boxName);
final List<DatatableField> fields = boxDefinition.getObject().getDatatableFields();
int rowCount = 0;
Row row = sheet.createRow(rowCount);
for (int i = 0; i < fields.size(); i++) {
sheet.autoSizeColumn(i);
row.createCell(i).setCellValue(fields.get(i).getKey());
}
final CellStyle dtStyle = wb.createCellStyle();
dtStyle.setAlignment(HorizontalAlignment.LEFT);
dtStyle.setDataFormat(wb.getCreationHelper().createDataFormat().getFormat("dd/mm/yy hh:mm"));
final List<Map<String, Serializable>> dataList = boxDefinition.getObject()
.getDataProvider()
.search(newFilter().setExportDataQuery(true).first(0).count(Integer.MAX_VALUE));
for (Map<String, Serializable> dataMap : dataList) {
rowCount += 1;
row = sheet.createRow(rowCount);
for (int i = 0; i < fields.size(); i++) {
final String key = fields.get(i).getLabel();
final Cell cell = row.createCell(i);
final Serializable val = dataMap.get(key);
if (val == null) {
continue;
}
if (val instanceof Date) {
cell.setCellValue((Date) val);
cell.setCellStyle(dtStyle);
} else {
cell.setCellValue(String.valueOf(val));
}
}
}
try (OutputStream fileOut = new FileOutputStream(xlsx)) {
wb.write(fileOut);
}
return xlsx;
} catch (Exception ex) {
throw SingularIntegrationException.rethrow("Não foi possível exportar o conteudo para Excel", ex);
}
}
private Component createClearAdvancedFilterButton() {
return new AjaxLink<Void>("clear") {
@Override
public void onClick(AjaxRequestTarget target) {
filtroRapido.setDefaultModelObject(null);
advancedFilter.getInstance().clearInstance();
target.add(table, filtroRapido);
target.add(this.getParent());
}
};
}
private Component createApllyAdvancedFilterButton() {
return new AjaxLink<Void>("filter") {
@Override
public void onClick(AjaxRequestTarget target) {
target.add(table);
}
};
}
private void createAdvancedFilter() {
advancedFilter = new SingularFormPanel("advancedFilter", this::createDynamicAdvancedFilterInstance);
advancedFilter.setNested(true);
}
private SInstance createDynamicAdvancedFilterInstance() {
return formRequirementService.createInstance(RefType.of(this::createDynamicAdvancedFilter));
}
protected STypeDynamicAdvancedFilter createDynamicAdvancedFilter() {
STypeDynamicAdvancedFilter sTypeDynamicAdvancedFilter = (STypeDynamicAdvancedFilter) formRequirementService
.loadRefType(STypeDynamicAdvancedFilter.class).get();
boxDefinition.getObject().setupDynamicAdvancedFilterType(sTypeDynamicAdvancedFilter);
return sTypeDynamicAdvancedFilter;
}
/**
* Method to be override for change the body of the help inside the input of the fast search.
* This String can have html tags, the body is configurated to scape html false.
*
* @return String for the body.
*/
protected String configureSearchHelpBody() {
return null;
}
protected BaseDataProvider<BoxItemDataMap, String> createDataProvider() {
BaseDataProvider<BoxItemDataMap, String> dataProvider = new BaseDataProvider<BoxItemDataMap, String>() {
@Override
public long size() {
return countQuickSearch(newFilter());
}
@Override
public Iterator<? extends BoxItemDataMap> iterator(int first, int count, String sortProperty,
boolean ascending) {
BoxFilter boxFilter = newFilter()
.first(first)
.count(count)
.sortProperty(sortProperty)
.ascending(ascending);
return quickSearch(boxFilter).iterator();
}
};
Pair<String, SortOrder> sort = getSortProperty();
if (sort != null) {
dataProvider.setSort(sort.getLeft(), sort.getRight());
}
return dataProvider;
}
protected BoxFilter newFilter() {
return newFilterBasic().advancedFilterInstance(advancedFilter.getInstance());
}
protected String getRowStyleClass(BoxItemDataMap boxItemDataMap){
return null;
}
protected abstract BoxFilter newFilterBasic();
protected abstract List<BoxItemDataMap> quickSearch(BoxFilter filter);
protected abstract long countQuickSearch(BoxFilter filter);
protected StringResourceModel getMessage(String prop) {
return new StringResourceModel(prop.trim(), this, null);
}
}
|
DenislavVelichkov/JS-Core-January-2020
|
JS-Advanced/20-Exam-Prep-2/01-SoftDo/scripts/index.js
|
function mySolution() {
const html = {
askQuestionArea: document.querySelector("#inputSection textarea"),
pendingQusetions: document.querySelector("#pendingQuestions"),
openQuestions: document.querySelector("#openQuestions"),
nickNameArea: document.querySelector("#inputSection input"),
};
const sendButton = document.querySelector("#inputSection button");
sendButton.addEventListener("click", askQuestionHandler);
function askQuestionHandler(ev) {
ev.preventDefault();
let question = html.askQuestionArea.value;
let nickName = html.nickNameArea.value;
let newPendingQuestion = createHTMLElement("div", "pendingQuestion", null, null, null);
let img = createHTMLElement(
"img",
null,
null,
[{ key: "src", value: "./images/user.png" }, { key: "width", value: "32" }, { key: "height", value: "32" }],
null);
let span = createHTMLElement("span", null, "Anonymous", null, null);
let p = createHTMLElement("p", null, question, null, null);
let div = createHTMLElement("div", "actions", null, null, null);
let buttonArchive = createHTMLElement("button", "archive", "Archive", null, { name: "click", func: archiveQuestion });
let buttonOpen = createHTMLElement("button", "open", "Open", null, { name: "click", func: openQuestion });
newPendingQuestion.appendChild(img);
newPendingQuestion.appendChild(span);
newPendingQuestion.appendChild(p);
newPendingQuestion.appendChild(div);
div.appendChild(buttonArchive);
div.appendChild(buttonOpen);
if (nickName) {
newPendingQuestion.querySelector("span").textContent = nickName;
}
html.pendingQusetions.appendChild(newPendingQuestion);
html.askQuestionArea.value = "";
}
function archiveQuestion(ev) {
ev.target.parentNode.parentNode.remove();
}
function openQuestion(ev) {
let newOpenQuestion = ev.target.parentNode.parentNode.cloneNode(true);
newOpenQuestion.className = "openQuestion";
let parent = newOpenQuestion.childNodes[3];
while (parent.firstChild) {
parent.removeChild(newOpenQuestion.childNodes[3].lastChild);
}
let replyBtn = createHTMLElement("button", "reply", "Reply", null, { name: "click", func: replyToQuestion });
newOpenQuestion.childNodes[3].appendChild(replyBtn);
let newReplySection = createHTMLElement("div", "replySection", null, [{ key: "style", value: "display: none;" }], null);
let input = createHTMLElement("input", "replyInput", null, [{ key: "type", value: "text" }, { key: "placeholder", value: "Reply to this question here..."}], null);
let sendBtn = createHTMLElement("button", "replyButton", "Send", null, { name: "click", func: writeReply });
let ol = createHTMLElement("ol", "reply", null, [{ key: "type", value: "1"}], null);
newReplySection.appendChild(input);
newReplySection.appendChild(sendBtn);
newReplySection.appendChild(ol);
newOpenQuestion.appendChild(newReplySection);
html.openQuestions.appendChild(newOpenQuestion);
ev.target.parentNode.parentNode.remove()
}
function replyToQuestion(ev) {
if (ev.target.textContent === "Reply") {
ev.target.textContent = "Back"
ev.target.parentNode.parentNode.childNodes[4].style.display = "block";
} else {
ev.target.textContent = "Reply"
ev.target.parentNode.parentNode.childNodes[4].style.display = "none";
}
}
function writeReply(ev) {
let replyContent = ev.target.parentNode.childNodes[0];
let reply = createHTMLElement("li", null, replyContent.value, null, null);
ev.target.parentNode.childNodes[2].appendChild(reply);
replyContent.value = "";
}
function createHTMLElement(tagName, className, textContent, attributes, event) {
let newElemenet = document.createElement(tagName);
if (className) {
newElemenet.classList.add(className);
}
if (textContent) {
newElemenet.textContent = textContent;
}
if (attributes) {
Array.from(attributes).forEach(atr => newElemenet.setAttribute(atr.key, atr.value));
}
if (event) {
newElemenet.addEventListener(event.name, event.func);
}
return newElemenet;
}
}
|
KevinSjoberg/homebrew
|
Library/Formula/newick-utils.rb
|
<reponame>KevinSjoberg/homebrew
require 'formula'
class NewickUtils < Formula
homepage 'http://cegg.unige.ch/newick_utils'
url 'http://cegg.unige.ch/pub/newick-utils-1.6.tar.gz'
sha1 'a9779054dcbf957618458ebfed07991fabeb3e19'
# don't bother testing nw_gen, it's known to fail on MacOSX
patch :DATA
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make check"
system "make install"
end
test do
expected = <<-EOS
+-------------------------------------+ B
=| A
+---------------------------------------------------------------------------+ C
|------------------|------------------|------------------|------------------|
0 0.5 1 1.5 2
substitutions/site
EOS
output = pipe_output("#{bin}/nw_display -", "(B:1,C:2)A;\n")
assert_equal expected, output.split("\n").map(&:rstrip).join("\n")
end
end
__END__
--- a/tests/test_nw_gen.sh
+++ b/tests/test_nw_gen.sh
@@ -138,0 +139,2 @@
+pass=TRUE
+
|
apitore/apitore-service-dao
|
src/main/java/com/apitore/dao/impl/UserThreadDAOImpl.java
|
package com.apitore.dao.impl;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.apitore.dao.UserThreadDAO;
import com.apitore.dao.model.DBUserThread;
@Repository
public class UserThreadDAOImpl implements UserThreadDAO {
@Autowired
private SessionFactory sessionFactory;
public void setSessionFactory(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory;
}
@Override
public DBUserThread get(Long threadId, Long userId) {
Session session = sessionFactory.getCurrentSession();
Criteria crit = session.createCriteria(DBUserThread.class)
.add(Restrictions.eq("threadId", threadId))
.add(Restrictions.eq("userId", userId));
DBUserThread value = (DBUserThread) crit.uniqueResult();
return value;
}
@SuppressWarnings("unchecked")
@Override
public List<DBUserThread> gets(Long userId, int offset, int limit) {
Session session = sessionFactory.getCurrentSession();
Criteria crit = session.createCriteria(DBUserThread.class);
crit.add(Restrictions.eq("enabled", true));
crit.add(Restrictions.eq("userId", userId));
crit.addOrder(Order.desc("registeredAt"));
crit.setFirstResult(offset);
crit.setMaxResults(limit);
List<DBUserThread> list = crit.list();
return list;
}
@Override
public DBUserThread insert(DBUserThread val) {
Session session = sessionFactory.getCurrentSession();
session.persist(val);
session.flush();
return val;
}
@Override
public void update(DBUserThread val) {
Session session = sessionFactory.getCurrentSession();
session.update(val);
}
protected Session openSession() {
return sessionFactory.openSession();
}
}
|
watchdogdevel/wsdk-scanner-core
|
libclamav/c++/llvm/utils/TableGen/CodeGenInstruction.cpp
|
//===- CodeGenInstruction.cpp - CodeGen Instruction Class Wrapper ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the CodeGenInstruction class.
//
//===----------------------------------------------------------------------===//
#include "CodeGenInstruction.h"
#include "CodeGenTarget.h"
#include "Record.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/STLExtras.h"
#include <set>
using namespace llvm;
static void ParseConstraint(const std::string &CStr, CodeGenInstruction *I) {
// EARLY_CLOBBER: @early $reg
std::string::size_type wpos = CStr.find_first_of(" \t");
std::string::size_type start = CStr.find_first_not_of(" \t");
std::string Tok = CStr.substr(start, wpos - start);
if (Tok == "@earlyclobber") {
std::string Name = CStr.substr(wpos+1);
wpos = Name.find_first_not_of(" \t");
if (wpos == std::string::npos)
throw "Illegal format for @earlyclobber constraint: '" + CStr + "'";
Name = Name.substr(wpos);
std::pair<unsigned,unsigned> Op =
I->ParseOperandName(Name, false);
// Build the string for the operand
if (!I->OperandList[Op.first].Constraints[Op.second].isNone())
throw "Operand '" + Name + "' cannot have multiple constraints!";
I->OperandList[Op.first].Constraints[Op.second] =
CodeGenInstruction::ConstraintInfo::getEarlyClobber();
return;
}
// Only other constraint is "TIED_TO" for now.
std::string::size_type pos = CStr.find_first_of('=');
assert(pos != std::string::npos && "Unrecognized constraint");
start = CStr.find_first_not_of(" \t");
std::string Name = CStr.substr(start, pos - start);
// TIED_TO: $src1 = $dst
wpos = Name.find_first_of(" \t");
if (wpos == std::string::npos)
throw "Illegal format for tied-to constraint: '" + CStr + "'";
std::string DestOpName = Name.substr(0, wpos);
std::pair<unsigned,unsigned> DestOp = I->ParseOperandName(DestOpName, false);
Name = CStr.substr(pos+1);
wpos = Name.find_first_not_of(" \t");
if (wpos == std::string::npos)
throw "Illegal format for tied-to constraint: '" + CStr + "'";
std::pair<unsigned,unsigned> SrcOp =
I->ParseOperandName(Name.substr(wpos), false);
if (SrcOp > DestOp)
throw "Illegal tied-to operand constraint '" + CStr + "'";
unsigned FlatOpNo = I->getFlattenedOperandNumber(SrcOp);
if (!I->OperandList[DestOp.first].Constraints[DestOp.second].isNone())
throw "Operand '" + DestOpName + "' cannot have multiple constraints!";
I->OperandList[DestOp.first].Constraints[DestOp.second] =
CodeGenInstruction::ConstraintInfo::getTied(FlatOpNo);
}
static void ParseConstraints(const std::string &CStr, CodeGenInstruction *I) {
// Make sure the constraints list for each operand is large enough to hold
// constraint info, even if none is present.
for (unsigned i = 0, e = I->OperandList.size(); i != e; ++i)
I->OperandList[i].Constraints.resize(I->OperandList[i].MINumOperands);
if (CStr.empty()) return;
const std::string delims(",");
std::string::size_type bidx, eidx;
bidx = CStr.find_first_not_of(delims);
while (bidx != std::string::npos) {
eidx = CStr.find_first_of(delims, bidx);
if (eidx == std::string::npos)
eidx = CStr.length();
ParseConstraint(CStr.substr(bidx, eidx - bidx), I);
bidx = CStr.find_first_not_of(delims, eidx);
}
}
CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
: TheDef(R), AsmString(AsmStr) {
Namespace = R->getValueAsString("Namespace");
isReturn = R->getValueAsBit("isReturn");
isBranch = R->getValueAsBit("isBranch");
isIndirectBranch = R->getValueAsBit("isIndirectBranch");
isCompare = R->getValueAsBit("isCompare");
isBarrier = R->getValueAsBit("isBarrier");
isCall = R->getValueAsBit("isCall");
canFoldAsLoad = R->getValueAsBit("canFoldAsLoad");
mayLoad = R->getValueAsBit("mayLoad");
mayStore = R->getValueAsBit("mayStore");
isPredicable = R->getValueAsBit("isPredicable");
isConvertibleToThreeAddress = R->getValueAsBit("isConvertibleToThreeAddress");
isCommutable = R->getValueAsBit("isCommutable");
isTerminator = R->getValueAsBit("isTerminator");
isReMaterializable = R->getValueAsBit("isReMaterializable");
hasDelaySlot = R->getValueAsBit("hasDelaySlot");
usesCustomInserter = R->getValueAsBit("usesCustomInserter");
hasCtrlDep = R->getValueAsBit("hasCtrlDep");
isNotDuplicable = R->getValueAsBit("isNotDuplicable");
hasSideEffects = R->getValueAsBit("hasSideEffects");
neverHasSideEffects = R->getValueAsBit("neverHasSideEffects");
isAsCheapAsAMove = R->getValueAsBit("isAsCheapAsAMove");
hasExtraSrcRegAllocReq = R->getValueAsBit("hasExtraSrcRegAllocReq");
hasExtraDefRegAllocReq = R->getValueAsBit("hasExtraDefRegAllocReq");
hasOptionalDef = false;
isVariadic = false;
ImplicitDefs = R->getValueAsListOfDefs("Defs");
ImplicitUses = R->getValueAsListOfDefs("Uses");
if (neverHasSideEffects + hasSideEffects > 1)
throw R->getName() + ": multiple conflicting side-effect flags set!";
DagInit *OutDI = R->getValueAsDag("OutOperandList");
if (DefInit *Init = dynamic_cast<DefInit*>(OutDI->getOperator())) {
if (Init->getDef()->getName() != "outs")
throw R->getName() + ": invalid def name for output list: use 'outs'";
} else
throw R->getName() + ": invalid output list: use 'outs'";
NumDefs = OutDI->getNumArgs();
DagInit *InDI = R->getValueAsDag("InOperandList");
if (DefInit *Init = dynamic_cast<DefInit*>(InDI->getOperator())) {
if (Init->getDef()->getName() != "ins")
throw R->getName() + ": invalid def name for input list: use 'ins'";
} else
throw R->getName() + ": invalid input list: use 'ins'";
unsigned MIOperandNo = 0;
std::set<std::string> OperandNames;
for (unsigned i = 0, e = InDI->getNumArgs()+OutDI->getNumArgs(); i != e; ++i){
Init *ArgInit;
std::string ArgName;
if (i < NumDefs) {
ArgInit = OutDI->getArg(i);
ArgName = OutDI->getArgName(i);
} else {
ArgInit = InDI->getArg(i-NumDefs);
ArgName = InDI->getArgName(i-NumDefs);
}
DefInit *Arg = dynamic_cast<DefInit*>(ArgInit);
if (!Arg)
throw "Illegal operand for the '" + R->getName() + "' instruction!";
Record *Rec = Arg->getDef();
std::string PrintMethod = "printOperand";
unsigned NumOps = 1;
DagInit *MIOpInfo = 0;
if (Rec->isSubClassOf("Operand")) {
PrintMethod = Rec->getValueAsString("PrintMethod");
MIOpInfo = Rec->getValueAsDag("MIOperandInfo");
// Verify that MIOpInfo has an 'ops' root value.
if (!dynamic_cast<DefInit*>(MIOpInfo->getOperator()) ||
dynamic_cast<DefInit*>(MIOpInfo->getOperator())
->getDef()->getName() != "ops")
throw "Bad value for MIOperandInfo in operand '" + Rec->getName() +
"'\n";
// If we have MIOpInfo, then we have #operands equal to number of entries
// in MIOperandInfo.
if (unsigned NumArgs = MIOpInfo->getNumArgs())
NumOps = NumArgs;
if (Rec->isSubClassOf("PredicateOperand"))
isPredicable = true;
else if (Rec->isSubClassOf("OptionalDefOperand"))
hasOptionalDef = true;
} else if (Rec->getName() == "variable_ops") {
isVariadic = true;
continue;
} else if (!Rec->isSubClassOf("RegisterClass") &&
Rec->getName() != "ptr_rc" && Rec->getName() != "unknown")
throw "Unknown operand class '" + Rec->getName() +
"' in '" + R->getName() + "' instruction!";
// Check that the operand has a name and that it's unique.
if (ArgName.empty())
throw "In instruction '" + R->getName() + "', operand #" + utostr(i) +
" has no name!";
if (!OperandNames.insert(ArgName).second)
throw "In instruction '" + R->getName() + "', operand #" + utostr(i) +
" has the same name as a previous operand!";
OperandList.push_back(OperandInfo(Rec, ArgName, PrintMethod,
MIOperandNo, NumOps, MIOpInfo));
MIOperandNo += NumOps;
}
// Parse Constraints.
ParseConstraints(R->getValueAsString("Constraints"), this);
// Parse the DisableEncoding field.
std::string DisableEncoding = R->getValueAsString("DisableEncoding");
while (1) {
std::string OpName;
tie(OpName, DisableEncoding) = getToken(DisableEncoding, " ,\t");
if (OpName.empty()) break;
// Figure out which operand this is.
std::pair<unsigned,unsigned> Op = ParseOperandName(OpName, false);
// Mark the operand as not-to-be encoded.
if (Op.second >= OperandList[Op.first].DoNotEncode.size())
OperandList[Op.first].DoNotEncode.resize(Op.second+1);
OperandList[Op.first].DoNotEncode[Op.second] = true;
}
}
/// getOperandNamed - Return the index of the operand with the specified
/// non-empty name. If the instruction does not have an operand with the
/// specified name, throw an exception.
///
unsigned CodeGenInstruction::getOperandNamed(const std::string &Name) const {
assert(!Name.empty() && "Cannot search for operand with no name!");
for (unsigned i = 0, e = OperandList.size(); i != e; ++i)
if (OperandList[i].Name == Name) return i;
throw "Instruction '" + TheDef->getName() +
"' does not have an operand named '$" + Name + "'!";
}
std::pair<unsigned,unsigned>
CodeGenInstruction::ParseOperandName(const std::string &Op,
bool AllowWholeOp) {
if (Op.empty() || Op[0] != '$')
throw TheDef->getName() + ": Illegal operand name: '" + Op + "'";
std::string OpName = Op.substr(1);
std::string SubOpName;
// Check to see if this is $foo.bar.
std::string::size_type DotIdx = OpName.find_first_of(".");
if (DotIdx != std::string::npos) {
SubOpName = OpName.substr(DotIdx+1);
if (SubOpName.empty())
throw TheDef->getName() + ": illegal empty suboperand name in '" +Op +"'";
OpName = OpName.substr(0, DotIdx);
}
unsigned OpIdx = getOperandNamed(OpName);
if (SubOpName.empty()) { // If no suboperand name was specified:
// If one was needed, throw.
if (OperandList[OpIdx].MINumOperands > 1 && !AllowWholeOp &&
SubOpName.empty())
throw TheDef->getName() + ": Illegal to refer to"
" whole operand part of complex operand '" + Op + "'";
// Otherwise, return the operand.
return std::make_pair(OpIdx, 0U);
}
// Find the suboperand number involved.
DagInit *MIOpInfo = OperandList[OpIdx].MIOperandInfo;
if (MIOpInfo == 0)
throw TheDef->getName() + ": unknown suboperand name in '" + Op + "'";
// Find the operand with the right name.
for (unsigned i = 0, e = MIOpInfo->getNumArgs(); i != e; ++i)
if (MIOpInfo->getArgName(i) == SubOpName)
return std::make_pair(OpIdx, i);
// Otherwise, didn't find it!
throw TheDef->getName() + ": unknown suboperand name in '" + Op + "'";
}
/// HasOneImplicitDefWithKnownVT - If the instruction has at least one
/// implicit def and it has a known VT, return the VT, otherwise return
/// MVT::Other.
MVT::SimpleValueType CodeGenInstruction::
HasOneImplicitDefWithKnownVT(const CodeGenTarget &TargetInfo) const {
if (ImplicitDefs.empty()) return MVT::Other;
// Check to see if the first implicit def has a resolvable type.
Record *FirstImplicitDef = ImplicitDefs[0];
assert(FirstImplicitDef->isSubClassOf("Register"));
const std::vector<MVT::SimpleValueType> &RegVTs =
TargetInfo.getRegisterVTs(FirstImplicitDef);
if (RegVTs.size() == 1)
return RegVTs[0];
return MVT::Other;
}
|
geekayush/manifold
|
bindings/jupyter-modules/jupyter-graph-builder/src/index.js
|
<filename>bindings/jupyter-modules/jupyter-graph-builder/src/index.js
import React from 'react';
import GraphBuilder from '@mlvis/graph-builder';
export default props => (
<div style={{position: 'relative', height: 500}}>
<GraphBuilder {...props} />
</div>
);
|
thitranthanh/Achilles
|
achilles-core/src/test/java/info/archinnov/achilles/internal/persistence/operations/CounterPersisterTest.java
|
/*
* Copyright (C) 2012-2014 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package info.archinnov.achilles.internal.persistence.operations;
import static java.util.Arrays.asList;
import static org.mockito.Mockito.anyLong;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import info.archinnov.achilles.type.CounterBuilder;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Answers;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import info.archinnov.achilles.internal.context.PersistenceContext;
import info.archinnov.achilles.internal.metadata.holder.EntityMeta;
import info.archinnov.achilles.internal.metadata.holder.PropertyMeta;
import info.archinnov.achilles.type.Counter;
import java.util.ArrayList;
@RunWith(MockitoJUnitRunner.class)
public class CounterPersisterTest {
private CounterPersister persister = new CounterPersister();
@Mock
private PersistenceContext.EntityFacade context;
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
private EntityMeta meta;
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
private PropertyMeta counterMeta;
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
private PropertyMeta counterMeta2;
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
private PropertyMeta counterMeta3;
private Object entity = new Object();
@Before
public void setUp() {
when(context.getEntityMeta()).thenReturn(meta);
when(context.getEntity()).thenReturn(entity);
}
@Test
public void should_persist_counters() throws Exception {
//Given
final long delta = 10L;
final Counter counter = InternalCounterBuilder.incr(delta);
when(counterMeta.forValues().getValueFromField(entity)).thenReturn(counter);
//When
persister.persistCounters(context, asList(counterMeta));
//Then
verify(context).bindForSimpleCounterIncrement(counterMeta, delta);
}
@Test
public void should_not_persist_counters_if_null_counter() throws Exception {
//When
when(counterMeta.forValues().getValueFromField(entity)).thenReturn(CounterBuilder.incr(0L));
persister.persistCounters(context, asList(counterMeta));
//Then
verify(context, never()).bindForSimpleCounterIncrement(eq(counterMeta), anyLong());
}
@Test
public void should_not_persist_counters_if_no_delta() throws Exception {
//Given
final long delta = 0L;
final Counter counter = InternalCounterBuilder.incr(delta);
when(counterMeta.forValues().getValueFromField(entity)).thenReturn(counter);
//When
persister.persistCounters(context, asList(counterMeta));
//Then
verify(context, never()).bindForSimpleCounterIncrement(counterMeta, delta);
}
@Test
public void should_persist_clustered_counters() throws Exception {
//Given
final long delta = 10L;
when(counterMeta.forValues().getValueFromField(entity)).thenReturn(InternalCounterBuilder.incr(delta));
when(counterMeta2.forValues().getValueFromField(entity)).thenReturn(InternalCounterBuilder.incr(1L));
when(counterMeta3.forValues().getValueFromField(entity)).thenReturn(InternalCounterBuilder.incr(0L));
when(context.getAllCountersMeta()).thenReturn(asList(counterMeta, counterMeta2, counterMeta3));
//When
persister.persistClusteredCounters(context);
//Then
verify(context).pushClusteredCounterIncrementStatement(counterMeta, delta);
}
@Test(expected = IllegalStateException.class)
public void should_exception_when_persisting_null_clustered_counters() throws Exception {
//Given
when(context.getAllCountersMeta()).thenReturn(new ArrayList<PropertyMeta>());
//When
persister.persistClusteredCounters(context);
}
@Test
public void should_delete_related_counters() throws Exception {
//Given
when(meta.getAllCounterMetas()).thenReturn(asList(counterMeta, counterMeta2));
//When
persister.deleteRelatedCounters(context);
//Then
verify(context).bindForSimpleCounterDeletion(counterMeta);
verify(context).bindForSimpleCounterDeletion(counterMeta2);
}
}
|
misery/AusweisApp2
|
src/ui/qml/VersionInformationModel.h
|
<filename>src/ui/qml/VersionInformationModel.h
/*!
* \copyright Copyright (c) 2016-2018 Governikus GmbH & Co. KG, Germany
*/
#pragma once
#include <QAbstractListModel>
#include <QList>
#include <QPair>
#include <QString>
namespace governikus
{
class VersionInformationModel
: public QAbstractListModel
{
Q_OBJECT
private:
enum HistoryRoles
{
LABEL = Qt::UserRole + 1,
TEXT
};
QVector<QPair<QString, QString> > mData;
void init();
public:
VersionInformationModel(QObject* pParent = nullptr);
int rowCount(const QModelIndex& = QModelIndex()) const override;
QVariant data(const QModelIndex& pIndex, int pRole = Qt::DisplayRole) const override;
QHash<int, QByteArray> roleNames() const override;
};
} // namespace governikus
|
amosproj/amos-ss2021-is-project-linter
|
server/src/main/java/amosproj/server/linter/checks/HasIssuesEnabled.java
|
<gh_stars>1-10
package amosproj.server.linter.checks;
import amosproj.server.GitLab;
import org.gitlab4j.api.models.Project;
public class HasIssuesEnabled extends Check {
@Override
protected boolean evaluate(GitLab gitLab, Project project) {
return project.getIssuesEnabled();
}
}
|
Andreas237/AndroidPolicyAutomation
|
ExtractedJars/PACT_com.pactforcure.app/javafiles/com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.java
|
<reponame>Andreas237/AndroidPolicyAutomation
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.fasterxml.jackson.databind.ser.impl;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.databind.ser.*;
import java.io.Serializable;
import java.util.*;
public class SimpleBeanPropertyFilter
implements BeanPropertyFilter, PropertyFilter
{
public static class FilterExceptFilter extends SimpleBeanPropertyFilter
implements Serializable
{
protected boolean include(BeanPropertyWriter beanpropertywriter)
{
return _propertiesToInclude.contains(((Object) (beanpropertywriter.getName())));
// 0 0:aload_0
// 1 1:getfield #21 <Field Set _propertiesToInclude>
// 2 4:aload_1
// 3 5:invokevirtual #32 <Method String BeanPropertyWriter.getName()>
// 4 8:invokeinterface #38 <Method boolean Set.contains(Object)>
// 5 13:ireturn
}
protected boolean include(PropertyWriter propertywriter)
{
return _propertiesToInclude.contains(((Object) (propertywriter.getName())));
// 0 0:aload_0
// 1 1:getfield #21 <Field Set _propertiesToInclude>
// 2 4:aload_1
// 3 5:invokevirtual #42 <Method String PropertyWriter.getName()>
// 4 8:invokeinterface #38 <Method boolean Set.contains(Object)>
// 5 13:ireturn
}
private static final long serialVersionUID = 1L;
protected final Set _propertiesToInclude;
public FilterExceptFilter(Set set)
{
// 0 0:aload_0
// 1 1:invokespecial #19 <Method void SimpleBeanPropertyFilter()>
_propertiesToInclude = set;
// 2 4:aload_0
// 3 5:aload_1
// 4 6:putfield #21 <Field Set _propertiesToInclude>
// 5 9:return
}
}
public static class SerializeExceptFilter extends SimpleBeanPropertyFilter
implements Serializable
{
protected boolean include(BeanPropertyWriter beanpropertywriter)
{
return !_propertiesToExclude.contains(((Object) (beanpropertywriter.getName())));
// 0 0:aload_0
// 1 1:getfield #33 <Field Set _propertiesToExclude>
// 2 4:aload_1
// 3 5:invokevirtual #44 <Method String BeanPropertyWriter.getName()>
// 4 8:invokeinterface #50 <Method boolean Set.contains(Object)>
// 5 13:ifne 18
// 6 16:iconst_1
// 7 17:ireturn
// 8 18:iconst_0
// 9 19:ireturn
}
protected boolean include(PropertyWriter propertywriter)
{
return !_propertiesToExclude.contains(((Object) (propertywriter.getName())));
// 0 0:aload_0
// 1 1:getfield #33 <Field Set _propertiesToExclude>
// 2 4:aload_1
// 3 5:invokevirtual #54 <Method String PropertyWriter.getName()>
// 4 8:invokeinterface #50 <Method boolean Set.contains(Object)>
// 5 13:ifne 18
// 6 16:iconst_1
// 7 17:ireturn
// 8 18:iconst_0
// 9 19:ireturn
}
static final SerializeExceptFilter INCLUDE_ALL = new SerializeExceptFilter();
private static final long serialVersionUID = 1L;
protected final Set _propertiesToExclude;
static
{
// 0 0:new #2 <Class SimpleBeanPropertyFilter$SerializeExceptFilter>
// 1 3:dup
// 2 4:invokespecial #21 <Method void SimpleBeanPropertyFilter$SerializeExceptFilter()>
// 3 7:putstatic #23 <Field SimpleBeanPropertyFilter$SerializeExceptFilter INCLUDE_ALL>
//* 4 10:return
}
SerializeExceptFilter()
{
// 0 0:aload_0
// 1 1:invokespecial #25 <Method void SimpleBeanPropertyFilter()>
_propertiesToExclude = Collections.emptySet();
// 2 4:aload_0
// 3 5:invokestatic #31 <Method Set Collections.emptySet()>
// 4 8:putfield #33 <Field Set _propertiesToExclude>
// 5 11:return
}
public SerializeExceptFilter(Set set)
{
// 0 0:aload_0
// 1 1:invokespecial #25 <Method void SimpleBeanPropertyFilter()>
_propertiesToExclude = set;
// 2 4:aload_0
// 3 5:aload_1
// 4 6:putfield #33 <Field Set _propertiesToExclude>
// 5 9:return
}
}
protected SimpleBeanPropertyFilter()
{
// 0 0:aload_0
// 1 1:invokespecial #20 <Method void Object()>
// 2 4:return
}
public static SimpleBeanPropertyFilter filterOutAllExcept(Set set)
{
return ((SimpleBeanPropertyFilter) (new FilterExceptFilter(set)));
// 0 0:new #12 <Class SimpleBeanPropertyFilter$FilterExceptFilter>
// 1 3:dup
// 2 4:aload_0
// 3 5:invokespecial #26 <Method void SimpleBeanPropertyFilter$FilterExceptFilter(Set)>
// 4 8:areturn
}
public static transient SimpleBeanPropertyFilter filterOutAllExcept(String as[])
{
HashSet hashset = new HashSet(as.length);
// 0 0:new #31 <Class HashSet>
// 1 3:dup
// 2 4:aload_0
// 3 5:arraylength
// 4 6:invokespecial #34 <Method void HashSet(int)>
// 5 9:astore_1
Collections.addAll(((java.util.Collection) (hashset)), ((Object []) (as)));
// 6 10:aload_1
// 7 11:aload_0
// 8 12:invokestatic #40 <Method boolean Collections.addAll(java.util.Collection, Object[])>
// 9 15:pop
return ((SimpleBeanPropertyFilter) (new FilterExceptFilter(((Set) (hashset)))));
// 10 16:new #12 <Class SimpleBeanPropertyFilter$FilterExceptFilter>
// 11 19:dup
// 12 20:aload_1
// 13 21:invokespecial #26 <Method void SimpleBeanPropertyFilter$FilterExceptFilter(Set)>
// 14 24:areturn
}
public static PropertyFilter from(BeanPropertyFilter beanpropertyfilter)
{
return new PropertyFilter(beanpropertyfilter) {
public void depositSchemaProperty(PropertyWriter propertywriter, JsonObjectFormatVisitor jsonobjectformatvisitor, SerializerProvider serializerprovider)
throws JsonMappingException
{
src.depositSchemaProperty((BeanPropertyWriter)propertywriter, jsonobjectformatvisitor, serializerprovider);
// 0 0:aload_0
// 1 1:getfield #17 <Field BeanPropertyFilter val$src>
// 2 4:aload_1
// 3 5:checkcast #27 <Class BeanPropertyWriter>
// 4 8:aload_2
// 5 9:aload_3
// 6 10:invokeinterface #32 <Method void BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter, JsonObjectFormatVisitor, SerializerProvider)>
// 7 15:return
}
public void depositSchemaProperty(PropertyWriter propertywriter, ObjectNode objectnode, SerializerProvider serializerprovider)
throws JsonMappingException
{
src.depositSchemaProperty((BeanPropertyWriter)propertywriter, objectnode, serializerprovider);
// 0 0:aload_0
// 1 1:getfield #17 <Field BeanPropertyFilter val$src>
// 2 4:aload_1
// 3 5:checkcast #27 <Class BeanPropertyWriter>
// 4 8:aload_2
// 5 9:aload_3
// 6 10:invokeinterface #37 <Method void BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter, ObjectNode, SerializerProvider)>
// 7 15:return
}
public void serializeAsElement(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider, PropertyWriter propertywriter)
throws Exception
{
throw new UnsupportedOperationException();
// 0 0:new #43 <Class UnsupportedOperationException>
// 1 3:dup
// 2 4:invokespecial #44 <Method void UnsupportedOperationException()>
// 3 7:athrow
}
public void serializeAsField(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider, PropertyWriter propertywriter)
throws Exception
{
src.serializeAsField(obj, jsongenerator, serializerprovider, (BeanPropertyWriter)propertywriter);
// 0 0:aload_0
// 1 1:getfield #17 <Field BeanPropertyFilter val$src>
// 2 4:aload_1
// 3 5:aload_2
// 4 6:aload_3
// 5 7:aload 4
// 6 9:checkcast #27 <Class BeanPropertyWriter>
// 7 12:invokeinterface #48 <Method void BeanPropertyFilter.serializeAsField(Object, JsonGenerator, SerializerProvider, BeanPropertyWriter)>
// 8 17:return
}
final BeanPropertyFilter val$src;
{
src = beanpropertyfilter;
// 0 0:aload_0
// 1 1:aload_1
// 2 2:putfield #17 <Field BeanPropertyFilter val$src>
super();
// 3 5:aload_0
// 4 6:invokespecial #20 <Method void Object()>
// 5 9:return
}
}
;
// 0 0:new #10 <Class SimpleBeanPropertyFilter$1>
// 1 3:dup
// 2 4:aload_0
// 3 5:invokespecial #45 <Method void SimpleBeanPropertyFilter$1(BeanPropertyFilter)>
// 4 8:areturn
}
public static SimpleBeanPropertyFilter serializeAll()
{
return ((SimpleBeanPropertyFilter) (SerializeExceptFilter.INCLUDE_ALL));
// 0 0:getstatic #51 <Field SimpleBeanPropertyFilter$SerializeExceptFilter SimpleBeanPropertyFilter$SerializeExceptFilter.INCLUDE_ALL>
// 1 3:areturn
}
public static SimpleBeanPropertyFilter serializeAll(Set set)
{
return ((SimpleBeanPropertyFilter) (new FilterExceptFilter(set)));
// 0 0:new #12 <Class SimpleBeanPropertyFilter$FilterExceptFilter>
// 1 3:dup
// 2 4:aload_0
// 3 5:invokespecial #26 <Method void SimpleBeanPropertyFilter$FilterExceptFilter(Set)>
// 4 8:areturn
}
public static SimpleBeanPropertyFilter serializeAllExcept(Set set)
{
return ((SimpleBeanPropertyFilter) (new SerializeExceptFilter(set)));
// 0 0:new #15 <Class SimpleBeanPropertyFilter$SerializeExceptFilter>
// 1 3:dup
// 2 4:aload_0
// 3 5:invokespecial #55 <Method void SimpleBeanPropertyFilter$SerializeExceptFilter(Set)>
// 4 8:areturn
}
public static transient SimpleBeanPropertyFilter serializeAllExcept(String as[])
{
HashSet hashset = new HashSet(as.length);
// 0 0:new #31 <Class HashSet>
// 1 3:dup
// 2 4:aload_0
// 3 5:arraylength
// 4 6:invokespecial #34 <Method void HashSet(int)>
// 5 9:astore_1
Collections.addAll(((java.util.Collection) (hashset)), ((Object []) (as)));
// 6 10:aload_1
// 7 11:aload_0
// 8 12:invokestatic #40 <Method boolean Collections.addAll(java.util.Collection, Object[])>
// 9 15:pop
return ((SimpleBeanPropertyFilter) (new SerializeExceptFilter(((Set) (hashset)))));
// 10 16:new #15 <Class SimpleBeanPropertyFilter$SerializeExceptFilter>
// 11 19:dup
// 12 20:aload_1
// 13 21:invokespecial #55 <Method void SimpleBeanPropertyFilter$SerializeExceptFilter(Set)>
// 14 24:areturn
}
public void depositSchemaProperty(BeanPropertyWriter beanpropertywriter, JsonObjectFormatVisitor jsonobjectformatvisitor, SerializerProvider serializerprovider)
throws JsonMappingException
{
if(include(beanpropertywriter))
//* 0 0:aload_0
//* 1 1:aload_1
//* 2 2:invokevirtual #63 <Method boolean include(BeanPropertyWriter)>
//* 3 5:ifeq 14
beanpropertywriter.depositSchemaProperty(jsonobjectformatvisitor, serializerprovider);
// 4 8:aload_1
// 5 9:aload_2
// 6 10:aload_3
// 7 11:invokevirtual #68 <Method void BeanPropertyWriter.depositSchemaProperty(JsonObjectFormatVisitor, SerializerProvider)>
// 8 14:return
}
public void depositSchemaProperty(BeanPropertyWriter beanpropertywriter, ObjectNode objectnode, SerializerProvider serializerprovider)
throws JsonMappingException
{
if(include(beanpropertywriter))
//* 0 0:aload_0
//* 1 1:aload_1
//* 2 2:invokevirtual #63 <Method boolean include(BeanPropertyWriter)>
//* 3 5:ifeq 14
beanpropertywriter.depositSchemaProperty(objectnode, serializerprovider);
// 4 8:aload_1
// 5 9:aload_2
// 6 10:aload_3
// 7 11:invokevirtual #73 <Method void BeanPropertyWriter.depositSchemaProperty(ObjectNode, SerializerProvider)>
// 8 14:return
}
public void depositSchemaProperty(PropertyWriter propertywriter, JsonObjectFormatVisitor jsonobjectformatvisitor, SerializerProvider serializerprovider)
throws JsonMappingException
{
if(include(propertywriter))
//* 0 0:aload_0
//* 1 1:aload_1
//* 2 2:invokevirtual #77 <Method boolean include(PropertyWriter)>
//* 3 5:ifeq 14
propertywriter.depositSchemaProperty(jsonobjectformatvisitor, serializerprovider);
// 4 8:aload_1
// 5 9:aload_2
// 6 10:aload_3
// 7 11:invokevirtual #80 <Method void PropertyWriter.depositSchemaProperty(JsonObjectFormatVisitor, SerializerProvider)>
// 8 14:return
}
public void depositSchemaProperty(PropertyWriter propertywriter, ObjectNode objectnode, SerializerProvider serializerprovider)
throws JsonMappingException
{
if(include(propertywriter))
//* 0 0:aload_0
//* 1 1:aload_1
//* 2 2:invokevirtual #77 <Method boolean include(PropertyWriter)>
//* 3 5:ifeq 14
propertywriter.depositSchemaProperty(objectnode, serializerprovider);
// 4 8:aload_1
// 5 9:aload_2
// 6 10:aload_3
// 7 11:invokevirtual #82 <Method void PropertyWriter.depositSchemaProperty(ObjectNode, SerializerProvider)>
// 8 14:return
}
protected boolean include(BeanPropertyWriter beanpropertywriter)
{
return true;
// 0 0:iconst_1
// 1 1:ireturn
}
protected boolean include(PropertyWriter propertywriter)
{
return true;
// 0 0:iconst_1
// 1 1:ireturn
}
protected boolean includeElement(Object obj)
{
return true;
// 0 0:iconst_1
// 1 1:ireturn
}
public void serializeAsElement(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider, PropertyWriter propertywriter)
throws Exception
{
if(includeElement(obj))
//* 0 0:aload_0
//* 1 1:aload_1
//* 2 2:invokevirtual #90 <Method boolean includeElement(Object)>
//* 3 5:ifeq 16
propertywriter.serializeAsElement(obj, jsongenerator, serializerprovider);
// 4 8:aload 4
// 5 10:aload_1
// 6 11:aload_2
// 7 12:aload_3
// 8 13:invokevirtual #93 <Method void PropertyWriter.serializeAsElement(Object, JsonGenerator, SerializerProvider)>
// 9 16:return
}
public void serializeAsField(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider, BeanPropertyWriter beanpropertywriter)
throws Exception
{
if(include(beanpropertywriter))
//* 0 0:aload_0
//* 1 1:aload 4
//* 2 3:invokevirtual #63 <Method boolean include(BeanPropertyWriter)>
//* 3 6:ifeq 18
beanpropertywriter.serializeAsField(obj, jsongenerator, serializerprovider);
// 4 9:aload 4
// 5 11:aload_1
// 6 12:aload_2
// 7 13:aload_3
// 8 14:invokevirtual #97 <Method void BeanPropertyWriter.serializeAsField(Object, JsonGenerator, SerializerProvider)>
else
//* 9 17:return
if(!jsongenerator.canOmitFields())
//* 10 18:aload_2
//* 11 19:invokevirtual #103 <Method boolean JsonGenerator.canOmitFields()>
//* 12 22:ifne 17
{
beanpropertywriter.serializeAsOmittedField(obj, jsongenerator, serializerprovider);
// 13 25:aload 4
// 14 27:aload_1
// 15 28:aload_2
// 16 29:aload_3
// 17 30:invokevirtual #106 <Method void BeanPropertyWriter.serializeAsOmittedField(Object, JsonGenerator, SerializerProvider)>
return;
// 18 33:return
}
}
public void serializeAsField(Object obj, JsonGenerator jsongenerator, SerializerProvider serializerprovider, PropertyWriter propertywriter)
throws Exception
{
if(include(propertywriter))
//* 0 0:aload_0
//* 1 1:aload 4
//* 2 3:invokevirtual #77 <Method boolean include(PropertyWriter)>
//* 3 6:ifeq 18
propertywriter.serializeAsField(obj, jsongenerator, serializerprovider);
// 4 9:aload 4
// 5 11:aload_1
// 6 12:aload_2
// 7 13:aload_3
// 8 14:invokevirtual #107 <Method void PropertyWriter.serializeAsField(Object, JsonGenerator, SerializerProvider)>
else
//* 9 17:return
if(!jsongenerator.canOmitFields())
//* 10 18:aload_2
//* 11 19:invokevirtual #103 <Method boolean JsonGenerator.canOmitFields()>
//* 12 22:ifne 17
{
propertywriter.serializeAsOmittedField(obj, jsongenerator, serializerprovider);
// 13 25:aload 4
// 14 27:aload_1
// 15 28:aload_2
// 16 29:aload_3
// 17 30:invokevirtual #108 <Method void PropertyWriter.serializeAsOmittedField(Object, JsonGenerator, SerializerProvider)>
return;
// 18 33:return
}
}
}
|
AlexanderMac/n-params-processor
|
src/data-builder.js
|
const _ = require('lodash')
const BaseBuilder = require('./base-builder')
class DataBuilder extends BaseBuilder {
build() {
return _.omit(this.data, '_temp_')
}
}
module.exports = DataBuilder
|
turesnake/leetPractice
|
src/_leetcode/leet_m17_12.cpp
|
/*
* ====================== leet_m17_12.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.01
* MODIFY --
* ----------------------------------------------------------
* 面试题 17.12. BiNode
*/
#include "innLeet.h"
#include "TreeNode1.h"
namespace leet_m17_12 {//~
// 递归 52%, 100%
class S{
TreeNode *out {};
TreeNode *ptr {};
// tp not null
void work( TreeNode *tp ){
TreeNode *l = tp->left;
TreeNode *r = tp->right;
if(l){work(l);}
//---//
tp->left = nullptr;
ptr->right = tp;
ptr = ptr->right;
//---//
if(r){work(r);}
}
public:
TreeNode* convertBiNode(TreeNode* root) {
if(!root){ return nullptr; }
out = new TreeNode (0); // sentry
ptr = out;
work(root);
return out->right;
}
};
//=========================================================//
void main_(){
debug::log( "\n~~~~ leet: m17_12 :end ~~~~\n" );
}
}//~
|
lzxorz/freeman
|
freeman-app/src/main/java/com.freeman/sys/controller/SysPermissionController.java
|
package com.freeman.sys.controller;
import cn.hutool.core.convert.Convert;
import com.freeman.common.log.Log;
import com.freeman.common.result.R;
import com.freeman.common.base.controller.BaseController;
import com.freeman.common.base.domain.Tree;
import com.freeman.common.router.VueRouter;
import com.freeman.common.utils.StrUtil;
import com.freeman.sys.domain.SysPermission;
import com.freeman.sys.service.ISysPermissionService;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;
@Slf4j
@Validated
@RestController
@RequestMapping("/sys/permission")
public class SysPermissionController extends BaseController {
@Autowired
private ISysPermissionService permissionService;
/** 用户路由 */
@GetMapping("/{userId}")
public List<VueRouter> userRouters(@PathVariable Long userId) {
return permissionService.getUserRouters(userId);
}
/** treetable */
@GetMapping
@RequiresPermissions("menu:view")
public R tree(SysPermission permission) {
Tree all = permissionService.findTree(permission);
return R.ok("获取成功", all);
}
/** */
@Log(title = "新增菜单/按钮")
@PostMapping @PutMapping
@RequiresPermissions("menu:add")
public void add(@Valid SysPermission permission) {
permissionService.save(permission);
}
/** */
@Log(title = "修改菜单/按钮")
@PutMapping
@RequiresPermissions("menu:update")
public void update(@Valid SysPermission permission) { permissionService.save(permission); }
/** 删除菜单/按钮及其Children */
@Log(title = "删除菜单/按钮")
@DeleteMapping("/{ids}")
@RequiresPermissions("menu:delete")
public void delete(@NotBlank(message = "{required}") @PathVariable("ids") String ids) {
List<Long> idList = Convert.toList(Long.class, ids.split(StrUtil.COMMA));
permissionService.deleteSelfAndChildrenById(idList);
}
}
|
resourceidea/resourceideaapi
|
client_industry/tests/factory.py
|
import factory
from faker import Faker
from faker.providers import lorem # type: ignore
from organization.tests.factory import OrganizationFactory
faker = Faker()
faker.add_provider(lorem)
class ClientIndustryFactory(factory.django.DjangoModelFactory):
"""Client industry factory"""
class Meta:
model = 'client_industry.ClientIndustry'
name = faker.word()
organization = factory.SubFactory(OrganizationFactory)
|
cbsa-informatik-uni-siegen/gtitool
|
de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledRegexAlphabetParserPanel.java
|
<filename>de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledRegexAlphabetParserPanel.java
package de.unisiegen.gtitool.ui.style;
import java.util.ArrayList;
import java.util.TreeSet;
import de.unisiegen.gtitool.core.entities.Alphabet;
import de.unisiegen.gtitool.core.entities.Symbol;
import de.unisiegen.gtitool.core.parser.exceptions.ParserException;
import de.unisiegen.gtitool.core.parser.exceptions.ScannerException;
import de.unisiegen.gtitool.core.parser.regexalphabet.RegexAlphabetParseable;
import de.unisiegen.gtitool.ui.i18n.Messages;
import de.unisiegen.gtitool.ui.style.parser.StyledParserPanel;
/**
* A panel for a RegexAlphabetParser
*/
public class StyledRegexAlphabetParserPanel extends
StyledParserPanel < Alphabet >
{
/**
* The serial version uid
*/
private static final long serialVersionUID = -8528331934091753221L;
/**
* The parsed {@link Alphabet} can not contain this {@link Symbol}s.
*/
private TreeSet < Symbol > notRemoveableSymbols = null;
/**
* Creates a new {@link StyledAlphabetParserPanel}
*/
public StyledRegexAlphabetParserPanel ()
{
super ( new RegexAlphabetParseable () );
}
/**
* {@inheritDoc}
*
* @see StyledParserPanel#checkParsedObject(de.unisiegen.gtitool.core.entities.Entity)
*/
@Override
protected Alphabet checkParsedObject ( Alphabet alphabet )
{
ArrayList < ScannerException > exceptionList = new ArrayList < ScannerException > ();
if ( ( this.notRemoveableSymbols != null ) && ( alphabet != null ) )
{
for ( Symbol current : this.notRemoveableSymbols )
{
if ( !alphabet.contains ( current ) )
{
exceptionList.add ( new ParserException ( current.getParserOffset ()
.getStart (), current.getParserOffset ().getEnd (), Messages
.getPrettyString ( "AlphabetDialog.SymbolUsedRegex", //$NON-NLS-1$
current.toPrettyString () ).toHTMLString () ) );
}
}
}
if ( exceptionList.size () > 0 )
{
setException ( exceptionList );
return null;
}
return alphabet;
}
/**
* Sets the {@link Symbol}s which should not be removeable.
*
* @param notRemoveableSymbols The {@link Symbol}s which should not be
* removeable.
* @see #notRemoveableSymbols
*/
public void setNotRemoveableSymbols ( TreeSet < Symbol > notRemoveableSymbols )
{
this.notRemoveableSymbols = notRemoveableSymbols;
}
}
|
cppctamber/ccpwgl2
|
src/unsupported/eve/child/EveChildEffectPropagator.js
|
import { meta } from "utils";
import { EveChild } from "eve/child";
import { Tw2CurveScalarKey } from "unsupported/curve";
import { EveLocator2 } from "eve";
@meta.notImplemented
@meta.type("EveChildEffectPropagator", true)
export class EveChildEffectPropagator extends EveChild
{
@meta.string
name = "";
@meta.struct("Tw2Effect")
effect = null;
@meta.list(Tw2CurveScalarKey)
keys = [];
@meta.float
maxLifeTime = 0;
@meta.struct()
triggerSphereRadiusCurve = null;
@meta.float
turbulenceAmplitude = 0;
}
|
sabaalmas/Java-Coding-Problems
|
Chapter08/P169_FactoryPattern/src/modern/challenge/TriFunction.java
|
<filename>Chapter08/P169_FactoryPattern/src/modern/challenge/TriFunction.java
package modern.challenge;
@FunctionalInterface
public interface TriFunction<T, U, V, R> {
R apply(T t, U u, V v);
}
|
jw-park/esaas-engagements
|
features/step_definitions/search_steps.rb
|
Given(/^the following apps exist:$/) do |table|
# table is a Cucumber::MultilineArgument::DataTable
table.hashes.each do |app|
App.create(app)
end
end
Given(/^the following orgs exist:$/) do |table|
# table is a Cucumber::MultilineArgument::DataTable
table.hashes.each do |org|
Org.create(org)
end
end
Given(/^the following users exist:$/) do |table|
# table is a Cucumber::MultilineArgument::DataTable
table.hashes.each do |user|
User.create(user)
end
end
Given(/^I search for "([^"]*)"$/) do |arg1|
# puts body really good debugging trick
fill_in "keyword", with: arg1
click_on "Search"
end
Given(/^I'm logged in on the orgs page$/) do
visit "/orgs"
click_link "Log in with GitHub"
visit "/orgs"
end
|
plandes/dltools
|
src/python/zensols/deeplearn/model/analyze.py
|
"""Analysis tools to compare results.
"""
__author__ = '<NAME>'
from typing import Tuple, Iterable
from dataclasses import dataclass, field
import logging
import sys
from io import TextIOBase, StringIO
import pandas as pd
from zensols.config import Dictable
from zensols.persist import PersistedWork, persisted
from zensols.deeplearn import ModelError
from zensols.deeplearn.result import ModelResult, ModelResultManager
from . import ModelExecutor
logger = logging.getLogger(__name__)
@dataclass
class DataComparison(Dictable):
"""Contains the results from two runs used to compare. The data in this object
is used to compare the validation loss from a previous run to a run that's
currently in progress. This is provided along with the performance metrics
of the runs when written with :meth:`write`.
"""
key: str = field()
"""The results key used with a :class:`.ModelResultManager`."""
previous: ModelResult = field()
"""The previous resuls of the model from a previous run."""
current: ModelResult = field()
"""The current results, which is probably a model currently running."""
compare_df: pd.DataFrame = field()
"""A dataframe with the validation loss from the previous and current results
and that difference.
"""
def _get_dictable_attributes(self) -> Iterable[str]:
return self._split_str_to_attributes('key previous current')
def write(self, depth: int = 0, writer: TextIOBase = sys.stdout):
converge_idx = self.previous.validation.converged_epoch.index
sio = StringIO()
self._write_line(f'result: {self.key}', depth, writer)
self._write_line('loss:', depth, writer)
with pd.option_context('display.max_rows', None,
'display.max_columns', None):
print(self.compare_df, file=sio)
self._write_block(sio.getvalue().strip(), depth + 1, writer)
self._write_line('previous:', depth, writer)
self.previous.validation.write(depth + 1, writer)
self._write_line(f'converged: {converge_idx}',
depth + 1, writer)
self._write_line('current:', depth, writer)
self.current.validation.write(depth + 1, writer)
@dataclass
class ResultAnalyzer(object):
"""Load results from a previous run of the :class:`ModelExecutor` and a more
recent run. This run is usually a currently running model to compare the
results during training. This might provide meaningful information such as
whether to early stop training.
"""
executor: ModelExecutor = field()
"""The executor (not the running executor necessary) that will load the
results if not already loadded.
"""
previous_results_key: str = field()
"""The key given to retreive the previous results with
:class:`ModelResultManager`.
"""
cache_previous_results: bool = field()
"""If ``True``, globally cache the previous results to avoid having to
reload each time.
"""
def __post_init__(self):
self._previous_results = PersistedWork(
'_previous_results', self,
cache_global=self.cache_previous_results)
def clear(self):
"""Clear the previous results, if cached.
"""
self._previous_results.clear()
@property
@persisted('_previous_results')
def previous_results(self) -> ModelResult:
"""Return the previous results (see class docs).
"""
rm: ModelResultManager = self.executor.result_manager
if rm is None:
rm = ModelError('No result manager available')
return rm[self.previous_results_key]
@property
def current_results(self) -> Tuple[ModelResult, ModelResult]:
"""Return the current results (see class docs).
"""
if self.executor.model_result is None:
self.executor.load()
return self.executor.model_result
@property
def comparison(self) -> DataComparison:
"""Load the results data and create a comparison instance read to write or
jsonify.
"""
prev, cur = self.previous_results, self.current_results
prev_losses = prev.validation.losses
cur_losses = cur.validation.losses
cur_len = len(cur_losses)
df = pd.DataFrame({'epoch': range(cur_len),
'previous': prev_losses[:cur_len],
'current': cur_losses})
df['improvement'] = df['previous'] - df['current']
return DataComparison(self.previous_results_key, prev, cur, df)
|
micellius/sap-one-experience
|
public/javascripts/index/main/directives/main-user-button-directive.js
|
/**
* Created by i070970 on 8/10/14.
*/
(function () {
'use strict';
function sapMainUserButtonDirective(sapSharedAuthenticationService) {
return {
template:
'<button class="sap-navbar-button sap-user-button">' +
'<img ng-src="{{user.avatar}}" alt="{{user.firstName}} {{user.lastName}}" class="img-circle sap-user-image"/>' +
'<span class="caret"></span>' +
'</button>',
replace: true,
scope: true,
link: function (scope) {
scope.user = sapSharedAuthenticationService.getUser();
}
};
}
angular.
module('sapMain').
directive('sapMainUserButtonDirective', [
'sapSharedAuthenticationService',
sapMainUserButtonDirective
]);
}());
|
NolanKuenzi/issueTracker
|
client/client_issues/src/js/components/presentational/main.js
|
<reponame>NolanKuenzi/issueTracker
import React from 'react';
import Issues from '../container/issues';
const Main = () => (
<div>
<Issues />
</div>
);
export default Main;
|
naiger/Fishlinked
|
node_modules/twilio-chat/browser/data/userchannels.js
|
"use strict";
var _regenerator = require("babel-runtime/regenerator");
var _regenerator2 = _interopRequireDefault(_regenerator);
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require("babel-runtime/helpers/createClass");
var _createClass3 = _interopRequireDefault(_createClass2);
var _promise = require("babel-runtime/core-js/promise");
var _promise2 = _interopRequireDefault(_promise);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
return new (P || (P = _promise2.default))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : new P(function (resolve) {
resolve(result.value);
}).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../util/index");
var restpaginator_1 = require("../restpaginator");
var channeldescriptor_1 = require("../channeldescriptor");
/**
* Users channels collection
* It's a cassandra-backed pull-based collection
*/
var UserChannels = function () {
function UserChannels(client, services, url) {
(0, _classCallCheck3.default)(this, UserChannels);
this.client = client;
this.services = services;
this.url = url;
}
(0, _createClass3.default)(UserChannels, [{
key: "getChannels",
value: function getChannels() {
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return __awaiter(this, void 0, void 0, /*#__PURE__*/_regenerator2.default.mark(function _callee() {
var _this = this;
var url, response;
return _regenerator2.default.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
url = new index_1.UriBuilder(this.url).arg('PageToken', args.pageToken).build();
_context.next = 3;
return this.services.network.get(url);
case 3:
response = _context.sent;
return _context.abrupt("return", new restpaginator_1.RestPaginator(response.body.channels.map(function (x) {
return new channeldescriptor_1.ChannelDescriptor(_this.client, x);
}), function (pageToken) {
return _this.getChannels({ pageToken: pageToken });
}, response.body.meta.previous_token, response.body.meta.next_token));
case 5:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
}
}]);
return UserChannels;
}();
exports.UserChannels = UserChannels;
|
nfagan/mtype
|
src/mt/type/subscripts.cpp
|
#include "subscripts.hpp"
#include "unification.hpp"
#include "library.hpp"
#include "debug.hpp"
#include <cassert>
#define MT_SHOW1(msg, a) \
std::cout << (msg); \
unifier.type_printer().show((a)); \
std::cout << std::endl
#define MT_SHOW2(msg, a, b) \
std::cout << (msg) << std::endl; \
unifier.type_printer().show2((a), (b)); \
std::cout << std::endl
namespace mt {
SubscriptHandler::SubscriptHandler(mt::Unifier& unifier) :
unifier(unifier), library(unifier.library) {
//
}
void SubscriptHandler::maybe_unify_subscript(Type* source, TermRef term, types::Subscript& sub) {
const auto arg0 = sub.principal_argument;
if (!unifier.is_visited_type(source) && unifier.is_concrete_argument(arg0)) {
principal_argument_dispatch(source, term, sub, arg0);
}
}
void SubscriptHandler::principal_argument_dispatch(Type* source, TermRef term,
types::Subscript& sub,
Type* arg0) {
if (arg0->is_alias()) {
principal_argument_dispatch(source, term, sub, MT_ALIAS_REF(*arg0).source);
} else if (arg0->is_abstraction()) {
function_call_subscript(source, term, sub, arg0);
} else if (arg0->is_scheme() && arg0->scheme_source()->is_abstraction()) {
scheme_function_call_subscript(source, term, MT_SCHEME_REF(*arg0), sub);
} else {
maybe_unify_non_function_subscript(source, term, sub, arg0);
}
}
void SubscriptHandler::maybe_unify_non_function_subscript(Type* source, TermRef term,
types::Subscript& sub,
Type* arg0) {
assert(!sub.subscripts.empty());
const auto& sub0 = sub.subscripts[0];
if (!unifier.are_concrete_arguments(sub0.arguments)) {
return;
}
unifier.register_visited_type(source);
if (has_custom_subsref_method(arg0)) {
// @TODO: Custom subsref implementations not yet handled.
unifier.add_error(unifier.make_unhandled_custom_subscripts_error(term.source_token, arg0));
return;
} else if (!are_valid_subscript_arguments(arg0, sub0)) {
unifier.add_error(make_unresolved_function_error(term.source_token, source));
return;
}
Type* next_arg0 = nullptr;
if (sub0.is_parens()) {
if (arg0->is_list() || arg0->is_union()) {
// E.g. If `a` == {list<double>}, then `a{1}(1)` is an error.
unifier.add_error(make_unresolved_function_error(term.source_token, source));
return;
} else {
next_arg0 = arg0;
}
} else if (sub0.is_period() && arg0->is_class() && MT_CLASS_PTR(arg0)->source->is_record()) {
const auto& class_type = MT_CLASS_REF(*arg0);
const auto& record_type = MT_RECORD_REF(*class_type.source);
next_arg0 = record_period_subscript(arg0, term.source_token, sub0, record_type);
} else if (sub0.is_period() && arg0->is_record()) {
next_arg0 = record_period_subscript(arg0, term.source_token, sub0, MT_RECORD_REF(*arg0));
} else if (sub0.is_brace() && arg0->is_tuple()) {
next_arg0 = tuple_brace_subscript(source, term.source_token, MT_TUPLE_REF(*arg0));
}
if (!next_arg0) {
return;
}
auto& store = unifier.store;
auto& substitution = unifier.substitution;
if (sub.subscripts.size() == 1) {
auto lhs_term = make_term(term.source_token, sub.outputs);
auto rhs_term = make_term(term.source_token, next_arg0);
substitution->push_type_equation(make_eq(lhs_term, rhs_term));
} else {
sub.subscripts.erase(sub.subscripts.begin());
sub.principal_argument = next_arg0;
unifier.unregister_visited_type(source);
auto rhs_term = make_term(term.source_token, store.make_fresh_type_variable_reference());
substitution->push_type_equation(make_eq(term, rhs_term));
}
}
Type* SubscriptHandler::match_members(const Type* source, const Token* source_token,
const TypePtrs& members) {
if (members.empty()) {
unifier.add_error(make_unresolved_function_error(source_token, source));
return nullptr;
}
const auto& mem0 = members[0];
for (int64_t i = 1; i < int64_t(members.size()); i++) {
auto lhs_term = make_term(source_token, mem0);
auto rhs_term = make_term(source_token, members[i]);
unifier.substitution->push_type_equation(make_eq(lhs_term, rhs_term));
}
return mem0;
}
Type* SubscriptHandler::tuple_brace_subscript(const Type* source,
const Token* source_token,
const types::Tuple& arg0) {
return match_members(source, source_token, arg0.members);
}
Type* SubscriptHandler::list_parens_subscript(const Type* source, const Token* source_token,
const types::List& arg0) {
return match_members(source, source_token, arg0.pattern);
}
Type* SubscriptHandler::record_period_subscript(Type* record_source, const Token* source_token,
const types::Subscript::Sub& sub0,
const types::Record& arg0) {
assert(sub0.arguments.size() == 1 && "Expected 1 argument.");
const auto& sub_arg0 = sub0.arguments[0];
if (!sub_arg0->is_constant_value()) {
unifier.add_error(unifier.make_non_constant_field_reference_expr_error(source_token, sub_arg0));
return nullptr;
}
const auto& cv = MT_CONST_VAL_REF(*sub_arg0);
const auto maybe_field = arg0.find_field(cv);
if (!maybe_field) {
auto err =
unifier.make_reference_to_non_existent_field_error(source_token, record_source, sub_arg0);
unifier.add_error(std::move(err));
return nullptr;
}
return maybe_field->type;
}
bool SubscriptHandler::has_custom_subsref_method(const Type* arg0) const {
const auto maybe_class_type = library.class_for_type(arg0);
if (maybe_class_type) {
const auto subsref_ident = MatlabIdentifier(library.special_identifiers.subsref);
return library.method_store.has_named_method(maybe_class_type.value(), subsref_ident);
} else {
return false;
}
}
bool SubscriptHandler::are_valid_subscript_arguments(const Type* arg0,
const types::Subscript::Sub& sub) const {
if (sub.is_brace() && !arg0->is_tuple()) {
return false;
} else if (sub.is_period() && !(arg0->is_record() || arg0->is_class())) {
return false;
} else if (sub.is_parens() || sub.is_brace()) {
return arguments_have_subsindex_defined(sub.arguments);
}
return true;
}
bool SubscriptHandler::arguments_have_subsindex_defined(const TypePtrs& arguments) const {
const auto& method_store = library.method_store;
const auto subsindex = MatlabIdentifier(library.special_identifiers.subsindex);
for (const auto& arg : arguments) {
const auto maybe_lookup =
types::DestructuredTuple::type_or_first_non_destructured_tuple_member(arg);
if (!maybe_lookup) {
return false;
}
auto maybe_class = library.class_for_type(maybe_lookup.value());
if (!maybe_class || !method_store.has_named_method(maybe_class.value(), subsindex)) {
return false;
}
}
return true;
}
void SubscriptHandler::scheme_function_call_subscript(Type* source, TermRef term,
const types::Scheme& scheme,
types::Subscript& sub) {
if (unifier.is_visited_type(source)) {
return;
} else if (sub.subscripts.size() != 1 || !sub.subscripts[0].is_parens()) {
unifier.register_visited_type(source);
auto err =
unifier.make_invalid_function_invocation_error(term.source_token, sub.principal_argument);
unifier.add_error(std::move(err));
return;
}
const auto& sub0 = sub.subscripts[0];
if (!unifier.are_concrete_arguments(sub0.arguments)) {
return;
}
const auto instance_handle = unifier.instantiate(scheme);
assert(instance_handle->is_abstraction());
const auto& source_func = MT_ABSTR_REF(*instance_handle);
const auto sub_lhs_term = make_term(term.source_token, sub.outputs);
const auto sub_rhs_term = make_term(term.source_token, source_func.outputs);
unifier.substitution->push_type_equation(make_eq(sub_lhs_term, sub_rhs_term));
auto copy_args = sub0.arguments;
auto new_inputs = unifier.store.make_rvalue_destructured_tuple(std::move(copy_args));
const auto arg_lhs_term = make_term(term.source_token, new_inputs);
const auto arg_rhs_term = make_term(term.source_token, source_func.inputs);
unifier.substitution->push_type_equation(make_eq(arg_lhs_term, arg_rhs_term));
unifier.register_visited_type(source);
}
void SubscriptHandler::function_call_subscript(Type* source, TermRef term,
const types::Subscript& sub,
Type* arg0) {
if (unifier.is_visited_type(source)) {
return;
} else if (sub.subscripts.size() != 1 || !sub.subscripts[0].is_parens()) {
unifier.register_visited_type(source);
auto err =
unifier.make_invalid_function_invocation_error(term.source_token, arg0);
unifier.add_error(std::move(err));
return;
}
unifier.register_visited_type(source);
const auto& sub0 = sub.subscripts[0];
auto& store = unifier.store;
auto args_copy = sub0.arguments;
const auto args = store.make_rvalue_destructured_tuple(std::move(args_copy));
auto app = store.make_application(arg0, args, sub.outputs);
const auto app_lhs_term =
make_term(term.source_token, store.make_fresh_type_variable_reference());
const auto app_rhs_term = make_term(term.source_token, app);
unifier.substitution->push_type_equation(make_eq(app_lhs_term, app_rhs_term));
}
}
|
wvanheemstra/core
|
docs/QueryViz/queryViz.js
|
<gh_stars>1-10
var s1 = "Bars";
var s2 = "IMDB";
var s3 = "Sailors";
var s4 = "Belief worlds";
var s5 = "Abstract";
var s6 = "Core";
window.onload = function() {
$("select_query").onchange = loadQuery;
$("submit").onclick = run;
$("reset").onclick = reset;
loadQuery();
};
function loadQuery(){
var q = $("select_query").value;
$("query").value = QUERY[q];
// Holds the values for schema and query consistent
if (q == 0){
reset();
} else if (q < 200){
$("schema").value = SCHEMA[s1];
} else if (q < 300){
$("schema").value = SCHEMA[s2];
} else if (q < 400){
$("schema").value = SCHEMA[s3];
} else if (q < 500){
$("schema").value = SCHEMA[s4];
} else if (q < 600){
$("schema").value = SCHEMA[s5];
} else if (q < 700){
$("schema").value = SCHEMA[s6];
}
$("query").focus(); // focus on query text after choice
}
function run(){
var schema = $("schema").value;
var query = $("query").value;
if ((schema == "") || (query == "")){
showMessage("Input(s) unspecified");
$("image").src = "";
} else {
$("message").hide();
var parameters = {schema: schema,
query: query
};
new Ajax.Request("http://queryviz.com/online/local.php",
{
method: "get", // get URL of image
onSuccess: loadOutput,
onFailure: ajaxFailure,
onException: ajaxFailure,
parameters: parameters
}
);
}
}
// Get the unique url for the user (for now, it is still the default common/src/.....)
function loadOutput(ajax){
var dir = ajax.responseText; // responseText contains the url of the created image
$("image").src = dir;
showMessage("Image loaded.");
}
function ajaxFailure(ajax) {
var err = ajax.responseText;
showMessage(err);
$("message").style.color = "Red";
}
function reset(){
$("query").value = $("schema").value = "";
$("query").style.height = "180px"; // sets the query field height back
$("schema").style.height = "60px"; // sets the query field height back
$("select_query").value = "0"; // choose empty selection
$("image").src = ""; // delete picture
showMessage(""); // delete message
}
// Displays an error message within the fieldset for invalid user queries
function showMessage(message){
$("message").innerHTML = message;
$("message").show();
$("message").style.color = "";
}
|
Pandinosaurus/pyquickhelper
|
_unittests/ut_helpgen/test_pandoc_helper.py
|
<filename>_unittests/ut_helpgen/test_pandoc_helper.py
"""
@brief test log(time=8s)
@author <NAME>
"""
import sys
import os
import unittest
from pyquickhelper.loghelper.flog import fLOG
from pyquickhelper.pycode import get_temp_folder, is_travis_or_appveyor, ExtTestCase
from pyquickhelper.helpgen import latex2rst
class TestPandocHelper(ExtTestCase):
def test_latex2rst(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
if is_travis_or_appveyor() in ('travis', 'appveyor'):
# It requires pandoc.
return
temp = get_temp_folder(__file__, "temp_latex2rst")
data = os.path.join(temp, "..", "data", "chap9_thread.tex")
output = os.path.join(temp, "chap9_thread.rst")
temp_file = os.path.join(temp, "chap_utf8.tex")
latex2rst(data, output, encoding="latin-1",
fLOG=fLOG, temp_file=temp_file)
self.assertExists(output)
if __name__ == "__main__":
unittest.main()
|
pujiaolin/datacollector
|
commonlib/src/main/java/com/streamsets/pipeline/lib/generator/text/TextDataGeneratorFactory.java
|
<filename>commonlib/src/main/java/com/streamsets/pipeline/lib/generator/text/TextDataGeneratorFactory.java
/*
* Copyright 2017 StreamSets Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.streamsets.pipeline.lib.generator.text;
import com.google.common.collect.ImmutableSet;
import com.streamsets.pipeline.config.TextFieldMissingAction;
import com.streamsets.pipeline.lib.generator.DataGeneratorFactory;
import com.streamsets.pipeline.lib.generator.DataGenerator;
import org.apache.commons.lang.StringEscapeUtils;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class TextDataGeneratorFactory extends DataGeneratorFactory {
static final String KEY_PREFIX = "text.";
public static final String FIELD_PATH_KEY = KEY_PREFIX + "fieldPath";
static final String FIELD_PATH_DEFAULT = "";
public static final String MISSING_FIELD_ACTION_KEY = "missingField";
public static final TextFieldMissingAction MISSING_FIELD_ACTION_DEFAULT = TextFieldMissingAction.ERROR;
public static final String RECORD_SEPARATOR_IF_NULL_KEY = KEY_PREFIX + "recordSeparatorIfNull";
static final boolean RECORD_SEPARATOR_IF_NULL_DEFAULT = false;
public static final String RECORD_SEPARATOR_KEY = KEY_PREFIX + "recordSeparator";
public static final String RECORD_SEPARATOR_DEFAULT = "\\n";
public static final Map<String, Object> CONFIGS;
static {
Map<String, Object> configs = new HashMap<>();
configs.put(FIELD_PATH_KEY, FIELD_PATH_DEFAULT);
configs.put(RECORD_SEPARATOR_IF_NULL_KEY, RECORD_SEPARATOR_IF_NULL_DEFAULT);
configs.put(RECORD_SEPARATOR_KEY, RECORD_SEPARATOR_DEFAULT);
configs.put(MISSING_FIELD_ACTION_KEY, MISSING_FIELD_ACTION_DEFAULT);
CONFIGS = Collections.unmodifiableMap(configs);
}
@SuppressWarnings("unchecked")
public static final Set<Class<? extends Enum>> MODES = (Set) ImmutableSet.of();
private final String fieldPath;
private final boolean recordSeparatorIfNullDefault;
private final String recordSeparator;
private final TextFieldMissingAction missingAction;
public TextDataGeneratorFactory(Settings settings) {
super(settings);
fieldPath = settings.getConfig(FIELD_PATH_KEY);
recordSeparatorIfNullDefault = settings.getConfig(RECORD_SEPARATOR_IF_NULL_KEY);
recordSeparator = StringEscapeUtils.unescapeJava(settings.<String>getConfig(RECORD_SEPARATOR_KEY));
missingAction = settings.getConfig(MISSING_FIELD_ACTION_KEY);
}
@Override
public DataGenerator getGenerator(OutputStream os) throws IOException {
return new TextCharDataGenerator(
createWriter(os),
fieldPath,
recordSeparatorIfNullDefault,
recordSeparator,
missingAction
);
}
}
|
ElSamaritan/blockchain-OLD
|
src/CryptoNoteCore/Difficulty.cpp
|
<reponame>ElSamaritan/blockchain-OLD<filename>src/CryptoNoteCore/Difficulty.cpp<gh_stars>0
/* ============================================================================================== *
* *
* Galaxia Blockchain *
* *
* ---------------------------------------------------------------------------------------------- *
* This file is part of the Xi framework. *
* ---------------------------------------------------------------------------------------------- *
* *
* Copyright 2018-2019 Xi Project Developers <support.xiproject.io> *
* *
* This program is free software: you can redistribute it and/or modify it under the terms of the *
* GNU General Public License as published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; *
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License along with this program. *
* If not, see <https://www.gnu.org/licenses/>. *
* *
* ============================================================================================== */
#include <algorithm>
#include <stdexcept>
#include <cassert>
#include <algorithm>
#include "Difficulty.h"
// LWMA-3 difficulty algorithm
// Copyright (c) 2017-2018 Zawy, MIT License
// https://github.com/zawy12/difficulty-algorithms/issues/3
uint64_t CryptoNote::Difficulty::LWMA_3::operator()(const std::vector<uint64_t>& timestamps,
const std::vector<uint64_t>& cumulativeDifficulties,
uint32_t windowSize, uint16_t blockTime) const {
uint16_t T = blockTime;
uint64_t N = windowSize;
uint64_t L(0), ST, sum_3_ST(0), next_D, prev_D, nextTime, lastTime;
// If we dont have enough data this method is missused and we shall throw an exception.
if (timestamps.size() < static_cast<uint64_t>(N + 1) ||
cumulativeDifficulties.size() < static_cast<uint64_t>(N + 1)) {
throw std::runtime_error{"LWMA called with insufficient timestamps or difficulties."};
}
lastTime = timestamps[0];
for (uint64_t i = 1; i <= N; i++) {
if (timestamps[i] > lastTime) {
nextTime = timestamps[i];
} else {
nextTime = lastTime + 1;
}
ST = std::min(6 * static_cast<uint64_t>(T), nextTime - lastTime);
lastTime = nextTime;
L += ST * i;
if (i > N - 3) {
sum_3_ST += ST;
}
}
next_D =
(static_cast<int64_t>(cumulativeDifficulties[N] - cumulativeDifficulties[0]) * T * (N + 1) * 99) / (100 * 2 * L);
prev_D = cumulativeDifficulties[N] - cumulativeDifficulties[N - 1];
next_D = std::max((prev_D * 67) / 100, std::min(next_D, (prev_D * 150) / 100));
if (sum_3_ST < (9 * T) / 10) {
next_D = std::max(next_D, (prev_D * 108) / 100);
}
return static_cast<uint64_t>(next_D);
}
// LWMA-2 difficulty algorithm
// Copyright (c) 2017-2018 Zawy, MIT License
// https://github.com/zawy12/difficulty-algorithms/issues/3
uint64_t CryptoNote::Difficulty::LWMA_2::operator()(const std::vector<uint64_t>& timestamps,
const std::vector<uint64_t>& cumulativeDifficulties,
uint32_t windowSize, uint16_t blockTime) const {
uint16_t T = blockTime;
int64_t N = windowSize;
int64_t L(0), ST, sum_3_ST(0), next_D, prev_D;
// If we dont have enough data this method is missused and we shall throw an exception.
if (timestamps.size() < static_cast<uint64_t>(N + 1) ||
cumulativeDifficulties.size() < static_cast<uint64_t>(N + 1)) {
throw std::runtime_error{"LWMA called with insufficient timestamps or difficulties."};
}
for (int64_t i = 1; i <= N; i++) {
ST = static_cast<int64_t>(timestamps[i]) - static_cast<int64_t>(timestamps[i - 1]);
ST = std::max(-4 * static_cast<int64_t>(T), std::min(ST, 6 * static_cast<int64_t>(T)));
L += ST * i;
if (i > N - 3) {
sum_3_ST += ST;
}
}
next_D =
(static_cast<int64_t>(cumulativeDifficulties[N] - cumulativeDifficulties[0]) * T * (N + 1) * 99) / (100 * 2 * L);
prev_D = cumulativeDifficulties[N] - cumulativeDifficulties[N - 1];
next_D = std::max((prev_D * 67) / 100, std::min(next_D, (prev_D * 150) / 100));
if (sum_3_ST < (8 * T) / 10) {
next_D = std::max(next_D, (prev_D * 108) / 100);
}
return static_cast<uint64_t>(next_D);
}
uint64_t CryptoNote::Difficulty::LWMA_1::operator()(const std::vector<uint64_t>& timestamps,
const std::vector<uint64_t>& cumulativeDifficulties,
uint32_t windowSize, uint16_t blockTime) const {
// This old way was not very proper
// uint64_t T = DIFFICULTY_TARGET;
// uint64_t N = DIFFICULTY_WINDOW; // N=60, 90, and 150 for T=600, 120, 60.
auto N = windowSize;
assert(timestamps.size() == N + 1);
auto T = blockTime;
uint64_t L(0), next_D, i, this_timestamp(0), previous_timestamp(0), avg_D;
previous_timestamp = timestamps[0] - T;
for (i = 1; i <= N; i++) {
// Safely prevent out-of-sequence timestamps
if (timestamps[i] > previous_timestamp) {
this_timestamp = timestamps[i];
} else {
this_timestamp = previous_timestamp + 1;
}
L += i * std::min<uint64_t>(6ULL * T, this_timestamp - previous_timestamp);
previous_timestamp = this_timestamp;
}
if (L < N * N * T / 20) {
L = N * N * T / 20;
}
avg_D = (cumulativeDifficulties[N] - cumulativeDifficulties[0]) / N;
// Prevent round off error for small D and overflow for large D.
if (avg_D > 2000000 * N * N * T) {
next_D = (avg_D / (200 * L)) * (N * (N + 1) * T * 99);
} else {
next_D = (avg_D * N * (N + 1) * T * 99) / (200 * L);
}
// Optional. Make all insignificant digits zero for easy reading.
i = 1000000000;
while (i > 1) {
if (next_D > i * 100) {
next_D = ((next_D + i / 2) / i) * i;
break;
} else {
i /= 10;
}
}
return next_D;
}
std::shared_ptr<CryptoNote::Difficulty::IDifficultyAlgorithm> CryptoNote::Difficulty::makeDifficultyAlgorithm(
std::string_view id) {
if (id == "LWMA-v1") {
return std::make_shared<LWMA_1>();
} else if (id == "LWMA-v2") {
return std::make_shared<LWMA_2>();
} else if (id == "LWMA-v3") {
return std::make_shared<LWMA_3>();
} else {
return nullptr;
}
}
|
sophiemarceau/NEDIELTSCoach_Android
|
src/com/lels/activity/myself/adapter/MycollectAdapter.java
|
<gh_stars>0
package com.lels.activity.myself.adapter;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import com.example.hello.R;
import com.lels.constants.Constants;
import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.exception.HttpException;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.ResponseInfo;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class MycollectAdapter extends BaseAdapter {
private LayoutInflater inflater;
Context mContext;
List<HashMap<String, Object>> mlist;
public MycollectAdapter(Context context, List<HashMap<String, Object>> list) {
this.mContext = context;
this.mlist = list;
}
@Override
public int getCount() {
if (mlist.size() > 0) {
return mlist.size();
} else {
return 0;
}
}
@Override
public Object getItem(int arg0) {
if (mlist.size() > 0) {
return mlist.size();
} else {
return 0;
}
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder viewholer;
if (convertView == null) {
convertView = LayoutInflater.from(mContext).inflate(R.layout.item_myself_mycollect, null);
viewholer = new ViewHolder();
viewholer.textview_message_title = (TextView) convertView
.findViewById(R.id.textview_message_title);
viewholer.imageview_mycollect_docx_type = (ImageView) convertView.findViewById(R.id.imageview_mycollect_docx_type);
convertView.setTag(viewholer);
} else {
viewholer = (ViewHolder) convertView.getTag();
}
if (mlist.size() > 0) {
viewholer.textview_message_title.setText(mlist.get(position)
.get("Name").toString());
// if (mlist.get(position).get("FileType")
// .toString().equalsIgnoreCase("docx")) {
// viewholer.imageview_mycollect_docx_type.setImageResource(R.drawable.icon_myself_collect);
// }else{
// viewholer.imageview_mycollect_docx_type.setImageResource(R.drawable.icon_myself_collect);
// }
if(mlist.get(position).get("StorePoint").toString().equals("1")){
viewholer.imageview_mycollect_docx_type.setBackgroundResource(R.drawable.icon_myself_collect_doc);
}else{
viewholer.imageview_mycollect_docx_type.setBackgroundResource(R.drawable.icon_myself_collect);
}
}
return convertView;
}
class ViewHolder {
TextView textview_message_title;
ImageView imageview_mycollect_docx_type;
}
private void delectcollect(String token,int postion){
postion--;
String url = new Constants().URL_MYSELF_MESSAGE_DELECT;
RequestParams params = new RequestParams();
params.addHeader("Authentication", token);
params.addBodyParameter("mrId", mlist.get(postion).get("mrId").toString());
HttpUtils http = new HttpUtils();
http.configCurrentHttpCacheExpiry(1000 * 10);
http.send(HttpRequest.HttpMethod.GET, url, params,
new RequestCallBack<String>() {
@Override
public void onStart() {
super.onStart();
}
@Override
public void onSuccess(ResponseInfo<String> responseInfo) {
try {
JSONObject str = new JSONObject(responseInfo.result);
String Result = str.getString("Result");
String Infomation = str.getString("Infomation");
String Data = str.getString("Data");
} catch (JSONException e) {
e.printStackTrace();
}
}
@Override
public void onFailure(HttpException error, String msg) {
System.out.println("onFailure");
}
});
}
}
|
dreamcmi/esp-idf
|
components/ulp/ulp_riscv/ulp_riscv_utils.c
|
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "ulp_riscv_utils.h"
#include "ulp_riscv_register_ops.h"
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#include "soc/soc_ulp.h"
void ulp_riscv_rescue_from_monitor(void)
{
/* Rescue RISCV from monitor state. */
CLEAR_PERI_REG_MASK(RTC_CNTL_COCPU_CTRL_REG, RTC_CNTL_COCPU_DONE);
}
void ulp_riscv_wakeup_main_processor(void)
{
SET_PERI_REG_MASK(RTC_CNTL_STATE0_REG, RTC_CNTL_SW_CPU_INT);
}
void ulp_riscv_halt(void)
{
/* Setting the delay time after RISCV recv `DONE` signal, Ensure that action `RESET` can be executed in time. */
REG_SET_FIELD(RTC_CNTL_COCPU_CTRL_REG, RTC_CNTL_COCPU_SHUT_2_CLK_DIS, 0x3F);
/* suspends the ulp operation*/
SET_PERI_REG_MASK(RTC_CNTL_COCPU_CTRL_REG, RTC_CNTL_COCPU_DONE);
/* Resets the processor */
SET_PERI_REG_MASK(RTC_CNTL_COCPU_CTRL_REG, RTC_CNTL_COCPU_SHUT_RESET_EN);
while(1);
}
void ulp_riscv_delay_cycles(uint32_t cycles)
{
uint32_t start = ULP_RISCV_GET_CCOUNT();
while ((ULP_RISCV_GET_CCOUNT() - start) < cycles) {
/* Wait */
}
}
void ulp_riscv_timer_stop(void)
{
CLEAR_PERI_REG_MASK(RTC_CNTL_ULP_CP_TIMER_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN);
}
void ulp_riscv_timer_resume(void)
{
SET_PERI_REG_MASK(RTC_CNTL_ULP_CP_TIMER_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN);
}
void ulp_riscv_gpio_wakeup_clear(void)
{
SET_PERI_REG_MASK(RTC_CNTL_ULP_CP_TIMER_REG, RTC_CNTL_ULP_CP_GPIO_WAKEUP_CLR);
}
|
ConsensusJ/bitcoinj-addons
|
consensusj-jsonrpc-daemon/src/main/java/org/consensusj/jsonrpc/daemon/EchoJsonRpcService.java
|
<filename>consensusj-jsonrpc-daemon/src/main/java/org/consensusj/jsonrpc/daemon/EchoJsonRpcService.java
package org.consensusj.jsonrpc.daemon;
import org.consensusj.jsonrpc.introspection.AbstractJsonRpcService;
import org.consensusj.jsonrpc.introspection.JsonRpcServiceWrapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import jakarta.inject.Singleton;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
/**
* Simple Echo JSON-RPC Service
*/
@Singleton
public class EchoJsonRpcService extends AbstractJsonRpcService {
private static final Logger log = LoggerFactory.getLogger(EchoJsonRpcService.class);
private static final Map<String, Method> methods = JsonRpcServiceWrapper.reflect(MethodHandles.lookup().lookupClass());
private static final String helpString = """
echo message
help
""";
public EchoJsonRpcService() {
super(methods);
}
public CompletableFuture<String> echo(String message) {
log.debug("EchoJsonRpcService: echo {}", message);
return result(message);
}
public CompletableFuture<String> help() {
log.debug("EchoJsonRpcService: help");
return result(helpString);
}
}
|
tehora/phd-sourcecodes
|
sequential/aseq.cpp
|
<reponame>tehora/phd-sourcecodes
// Sequence analyzer
// aseq <data>
// data format: each line is of form
// qty <list-of-events>
// where events are from the 'events' string below, separated by colons if they are long time apart
// findall finds all the sequences with support >= 1000
// analyze performs the analysis based on the supports
// it is also possible to do the two steps separately:
// aseq -i <data> -f > seq-supports
// aseq -i seq-supports -a
// simply count supports interactively:
// ./aseq -i <data> -in
bool dofindall = true, doanalyse = true, dointeract = false;
#include <vector>
#include <algorithm>
#include <map>
#include <string.h>
using namespace std;
map<vector<int>, int> ss, supports;
bool supported(const vector<int>& subseq, const vector<int>& supseq) {
int pos = 0;
for(int elem: supseq) {
if(pos == subseq.size()) return true;
else if((elem & subseq[pos]) == subseq[pos]) pos++;
}
return pos == subseq.size();
}
int numtimes[256];
char buf[700000];
map<int, pair<int, int> > numtimes_code;
const string events = "fFmMsScCiIdDzZpPgGyYxX";
const int etypes = events.size();
vector<int> encode(char *b) {
int cc = 0;
vector<int> res;
for(char *p = b; *p; p++)
if(*p == ':') { res.push_back(cc); cc=0; }
else for(int t=0; t<etypes; t++) if(*p == events[t]) { cc |= (1<<t); }
res.push_back(cc);
return res;
}
#define LOW 10
vector<int> seq;
int total;
FILE *results;
int countocc() {
int qty = 0;
for(auto p: ss) if(supported(seq, p.first)) qty += p.second;
return qty;
}
int countoccApprox() {
int qty = 0;
for(auto p: ss) if(p.second <= LOW || supported(seq, p.first)) qty += p.second;
return qty;
}
char *prval(int t) {
int pos = 0;
for(int t=0; t<etypes; t++) if((i>>t)&1)
buf[pos++] = events[t];
buf[pos] = 0;
return buf;
}
char *prseq() {
int pos = 0;
for(int i: seq) {
for(int t=0; t<etypes; t++) if((i>>t)&1)
buf[pos++] = events[t];
buf[pos++] = ':';
}
pos--; buf[pos] = 0;
return buf;
}
void findall();
void pamore(int z);
void findall_more(int z) {
int S = seq.size();
for(; z<etypes; z++) {
seq[S-1] |= (1<<z);
pamore(z);
seq[S-1] &= ~(1<<z);
}
findall();
}
void findall() {
for(int z=0; z<etypes; z++) {
int S = seq.size();
seq.push_back(1<<z);
pamore(z);
seq.pop_back();
}
}
void pamore(int z) {
int coa = countoccApprox();
if(coa < 1000000) return;
int co = countocc();
if(co > 0) supports[seq] = co;
if(co >= 1) {
char *buf = prseq();
printf("%10d %10d %s\n", co, coa, buf);
fflush(stdout);
findall_more(z+1);
}
}
int minrule = 0;
char tryb = 'i';
const char *infile = "sekwencje2";
bool norep = false;
int main(int argc, char ** argv) {
for(int i=1; i<argc; i++) {
if(strcmp(argv[i], "-i") == 0)
i++, infile = argv[i];
if(strcmp(argv[i], "-m") == 0)
i++, minrule = atoi(argv[i]);
if(strcmp(argv[i], "-a") == 0) dofindall = false;
if(strcmp(argv[i], "-f") == 0) doanalyse = false;
if(strcmp(argv[i], "-in") == 0) dointeract = true;
if(strcmp(argv[i], "-nr") == 0) norep = true;
}
FILE *f = fopen(infile, "rt");
int qty;
while(!feof(f)) {
fscanf(f, "%d%s", &qty, buf);
if(qty < minrule) continue;
if(buf[0] == '*') continue;
for(char *p=buf; *p; p++) numtimes[(unsigned char) *p] += qty;
seq = encode(buf);
if(norep) {
bool haverep = false;
for(const int& u: seq) for(const int& v: seq)
if((&u) != (&v) && (u&v)) haverep = true;
if(haverep) continue;
}
ss[seq] += qty;
}
fclose(f);
for(auto& s: ss)
for(int c: s.first)
numtimes_code[c].first++,
numtimes_code[c].second += s.second;
for(auto& c: numtimes_code)
fprintf(stderr, "%-15s: %d (%d)\n", prval(c.first), c.second.first, c.second.second);
for(int z=0; z<256; z++) if(numtimes[z]) fprintf(stderr, "%c: %d\n", z, numtimes[z]);
total = 0;
int ones = 0;
int lines = 0;
for(auto p: ss) {
total += p.second;
if(p.second <= LOW) ones++;
lines++;
}
fprintf(stderr, "total = %d, low = %d, lines = %d\n", total, ones, lines);
if(dointeract) {
while(true) {
scanf("%s", buf);
if(buf[0] == '0') break;
seq = encode(buf);
printf("%d\n", countocc());
}
}
if(dofindall) {
seq.clear();
results = fopen("seq-results.txt", "w");
findall();
}
if(doanalyse) {
if(!dofindall) swap(supports, ss);
vector<pair<double, vector<int> > > csorted;
for(auto p: supports) {
bool okay = true;
// for(auto q: ss)
// if(p.first != q.first && supported(p.first, q.first))
// okay = false;
if(okay) {
seq = p.first;
printf("%10d %s", p.second, prseq());
if(p.first.size() > 1) {
seq = p.first;
seq.pop_back();
double conf = p.second * 1./ supports[seq];
printf(" (conf=%.3f)", conf);
csorted.push_back(make_pair(conf, p.first));
}
printf(" (supp=%.3f%%)", p.second * 1. / total);
printf("\n");
}
}
sort(csorted.begin(), csorted.end());
for(auto p: csorted) seq=p.second, printf("%.3f %8d %s \n", p.first, supports[p.second], prseq());
}
return 0;
}
|
MrGo123/SHDSystem
|
SpringBoot/SHDSystem/src/main/java/top/zy68/SHDSystemApplication.java
|
<reponame>MrGo123/SHDSystem
package top.zy68;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @ClassName SHDSystemApplication
* @Description 启动类
* @Author Sustart
* @Date2021/12/24 21:15
* @Version 1.0
**/
@SpringBootApplication
public class SHDSystemApplication {
public static void main(String[] args) {
SpringApplication.run(SHDSystemApplication.class, args);
}
}
|
projectPiki/pikmin2
|
unsorted_include_todo/PikiAI/ActTransportArg.h
|
<reponame>projectPiki/pikmin2<gh_stars>10-100
#ifndef _PIKIAI_ACTTRANSPORTARG_H
#define _PIKIAI_ACTTRANSPORTARG_H
/*
__vt__Q26PikiAI15ActTransportArg:
.4byte 0
.4byte 0
.4byte getName__Q26PikiAI15ActTransportArgFv
*/
namespace PikiAI {
struct ActTransportArg {
virtual void getName(); // _00
// _00 VTBL
};
} // namespace PikiAI
#endif
|
notadd/ts-module-shop
|
package/model/evaluation.entity.js
|
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const evaluation_image_entity_1 = require("./evaluation.image.entity");
const order_item_entity_1 = require("./order.item.entity");
const user_1 = require("@notadd/user");
let Evaluation = class Evaluation {
};
__decorate([
typeorm_1.PrimaryGeneratedColumn(),
__metadata("design:type", Number)
], Evaluation.prototype, "id", void 0);
__decorate([
typeorm_1.Column({ length: 200 }),
__metadata("design:type", String)
], Evaluation.prototype, "content", void 0);
__decorate([
typeorm_1.Column(),
__metadata("design:type", Boolean)
], Evaluation.prototype, "display", void 0);
__decorate([
typeorm_1.Column(),
__metadata("design:type", Number)
], Evaluation.prototype, "userId", void 0);
__decorate([
typeorm_1.Column({ unique: true }),
__metadata("design:type", Number)
], Evaluation.prototype, "orderItemId", void 0);
__decorate([
typeorm_1.OneToMany(type => evaluation_image_entity_1.EvaluationImage, evaluationImage => evaluationImage.evaluation, {
cascade: ["insert"],
lazy: false,
eager: false
}),
__metadata("design:type", Array)
], Evaluation.prototype, "images", void 0);
__decorate([
typeorm_1.ManyToOne(type => user_1.User, {
cascade: false,
nullable: false,
lazy: false,
eager: false,
onDelete: "CASCADE"
}),
__metadata("design:type", user_1.User)
], Evaluation.prototype, "user", void 0);
__decorate([
typeorm_1.OneToOne(type => order_item_entity_1.OrderItem, orderItem => orderItem.evaluation, {
cascade: ["update"],
nullable: false,
lazy: false,
eager: false,
onDelete: "CASCADE"
}),
typeorm_1.JoinColumn({
name: "orderItemId",
referencedColumnName: "id"
}),
__metadata("design:type", order_item_entity_1.OrderItem)
], Evaluation.prototype, "orderItem", void 0);
Evaluation = __decorate([
typeorm_1.Entity("evaluation")
], Evaluation);
exports.Evaluation = Evaluation;
//# sourceMappingURL=evaluation.entity.js.map
|
xuejiacore/altass-ng
|
altass-ng-executors/altass-executor-redis/src/main/java/org/chim/altass/executor/redis/bean/Param.java
|
package org.chim.altass.executor.redis.bean;
import org.chim.altass.executor.redis.constant.KeyType;
import org.chim.altass.executor.redis.constant.OpType;
import org.redisson.api.RExpirable;
import java.io.Serializable;
/**
* Class Name: Param
* Create Date: 11/5/18 11:07 PM
* Creator: Chim·Zigui
* Version: v1.0
* Updater:
* Date Time:
* Description:
*/
public class Param {
private IRedisKey redisKey = null;
private OpType op = null;
private KeyType keyType = null;
private Serializable keyId = null;
private Object[] values = null;
private RExpirable rExpirable = null;
public Param() {
}
public Param(IRedisKey key) {
}
public Param(IRedisKey key, Serializable id, Object... values) {
this.redisKey = key;
this.keyType = key.keyType();
this.values = values;
this.keyId = id;
}
public IRedisKey getRedisKey() {
return redisKey;
}
public void setRedisKey(IRedisKey redisKey) {
this.redisKey = redisKey;
}
public OpType getOp() {
return op;
}
public void setOp(OpType op) {
this.op = op;
}
public KeyType getKeyType() {
return keyType;
}
public void setKeyType(KeyType keyType) {
this.keyType = keyType;
}
public Serializable getKeyId() {
return keyId;
}
public void setKeyId(Serializable keyId) {
this.keyId = keyId;
}
public Object[] getValues() {
return values;
}
public void setValues(Object[] values) {
this.values = values;
}
public String buildKey(Serializable keyId) {
String namespace = redisKey.namespace();
if (namespace == null || namespace.length() == 0) {
throw new IllegalArgumentException("The return value of RedisKey#namespace() COULD NOT BE EMPTY.");
}
return namespace + IRedisKey.KEY_SEPARATOR +
redisKey.keyName() + IRedisKey.KEY_ID_SEPARATOR +
keyId;
}
public String buildKey() {
return buildKey(getKeyId());
}
public RExpirable getrExpirable() {
return rExpirable;
}
public void setrExpirable(RExpirable rExpirable) {
this.rExpirable = rExpirable;
}
}
|
will-gilbert/SmartGWT-Showcase
|
src/main/java/com/smartgwt/sample/showcase/client/grid/appearance/FieldPickerSample.java
|
<reponame>will-gilbert/SmartGWT-Showcase
package com.smartgwt.sample.showcase.client.grid.appearance;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.types.Autofit;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.grid.ListGridRecord;
import com.smartgwt.sample.showcase.client.PanelFactory;
import com.smartgwt.sample.showcase.client.ShowcasePanel;
public class FieldPickerSample extends ShowcasePanel {
private static final String DESCRIPTION =
" Some grids show a small subset of 100s of available fields. With this many fields, " +
"it becomes awkward to choose and arrange fields by drag reordering of " +
"headers and picking fields from a menu, " +
"<P>" +
"Enabling the Advanced Field Picker for a grid causes an alternative field " +
"picking and ordering interface to be used, shown below. Drag fields from " +
"<i>Available Fields</i> to <i>Visible Fields</i> to display them. Use drag and drop to " +
"reorder fields as well. " +
"<P>" +
"This interface also allows you to search for fields by name, and optionally to choose " +
"which are frozen. " +
"<P>" +
"The end user can open this dialog via the \"Columns..\" menu item in the header menu.";
public static class Factory implements PanelFactory {
private String id;
public ShowcasePanel create() {
FieldPickerSample panel = new FieldPickerSample();
id = panel.getID();
return panel;
}
public String getID() {
return id;
}
public String getDescription() {
return DESCRIPTION;
}
}
private ListGridField[] createFields(int fieldCount) {
ListGridField[] fields = new ListGridField[fieldCount];
for (int i = 0; i < fields.length; i++) {
fields[i]= new ListGridField("field" + (i+1), "Field " + (i+1));
}
return fields;
}
private ListGridRecord[] createRecords(int recordCount, ListGridField[] fields) {
ListGridRecord[] records = new ListGridRecord[recordCount];
for (int i =0; i < recordCount; i++) {
ListGridRecord record = new ListGridRecord();
for (int j = 0; j < fields.length; j++) {
record.setAttribute("field" + (j+1), "Row " + i + ", Value " + (j+1));
}
records[i] = record;
}
return records;
}
private ListGridField[] getOrderedFields(ListGridField[] fields) {
ListGridField[] orderedFields = new ListGridField[fields.length];
int initialFieldIndices[] = { 20, 5, 197, 59, 17, 120, 152, 91,
37, 101, 40, 9, 174, 29, 163 };
int oldIndex, newIndex;
for (newIndex = 0; newIndex < initialFieldIndices.length; newIndex++) {
int fieldIndex = initialFieldIndices[newIndex] - 1;
orderedFields[newIndex] = fields[fieldIndex];
fields[fieldIndex] = null;
}
for (oldIndex = 0; oldIndex < fields.length; oldIndex++) {
ListGridField field = fields[oldIndex];
if (field != null) {
orderedFields[newIndex++] = field;
field.setHidden(true);
}
}
return orderedFields;
}
public class MyListGrid extends ListGrid {
public MyListGrid() {
super();
setID("pickableFields");
setCanEditTitles(true);
setAutoFitData(Autofit.BOTH);
setAutoFitMaxColumns(8);
setAutoFitMaxRecords(20);
setAutoFitFieldWidths(true);
setUseAdvancedFieldPicker(true);
setFieldPickerFieldProperties("frozen");
ListGridField[] fields = createFields(200);
setFields(getOrderedFields(fields));
setData(createRecords(20, fields));
}
protected String getBaseStyle(ListGridRecord record, int rowNum, int colNum) {
return colNum % 2 == 0 ? "myEvenGridCell" : "myOddGridCell";
}
}
public Canvas getViewPanel() {
MyListGrid grid = new MyListGrid();
Canvas canvas = new Canvas();
canvas.addChild(grid);
canvas.draw();
grid.editFields();
return canvas;
}
public String getIntro() {
return DESCRIPTION;
}
}
|
Leundo/drug-control-medp
|
src/pages/Me.js
|
import React from 'react';
import { Redirect } from 'react-router-dom';
import { useState, useEffect } from "react";
import { useSelector, useDispatch } from 'react-redux';
import './Me.css';
import { Button, Layout, Menu, Modal, Space, notification } from 'antd';
import { apiGetUserMe, apiPutUserMe } from '../util/api';
import HomeSider from '../components/HomeSider';
import CompoundInput from '../components/CompoundInput';
const { Header, Content, Sider } = Layout;
// a 111111
export default function Me(props) {
const [redirect, setRedirect] = useState(null);
const username = useSelector(state => state.global.username);
const accessToken = useSelector(state => state.global.accessToken);
const dispatch = useDispatch();
const [inputName, setInputName] = useState("");
const [inputUserName, setInputUserName] = useState("");
const [inputIsAdministrator, setInputIsAdministrator] = useState("否");
const [inputPassword1, setInputPassword1] = useState("");
const [inputPassword2, setInputPassword2] = useState("");
const [isAdministrator, setIsAdministrator] = useState(false);
const updateSiderItem = () => {
apiGetUserMe(accessToken).then((res) => {
// console.log(res);
if (res.data.is_superuser === true) {
setIsAdministrator(true);
setInputIsAdministrator("是");
}
setInputName(res.data.full_name);
setInputUserName(res.data.email);
}).catch((err) => {
console.log(err);
});
}
useEffect(() => {
updateSiderItem();
}, []);
const handleMenuItemClick = (idx, e) => {
if (idx === '1') {
setRedirect("/home");
} else if (idx === '2') {
setRedirect("/bank");
} else if (idx === '3') {
setRedirect("/clist");
}
}
const onInputChange = (e, tag) => {
if (tag === "name") {
setInputName(e.target.value);
} else if (tag === "username") {
setInputUserName(e.target.value);
} else if (tag === "password1") {
setInputPassword1(e.target.value);
} else if (tag === "password2") {
setInputPassword2(e.target.value);
}
}
const onUpdateInfoClick = () => {
if (inputName === "" || inputUserName === "" || inputPassword1 === "" || inputPassword2 === "") {
notification.open({
message: "修改信息失败",
description: "请补充完整输入栏",
});
} else if (inputPassword1 !== inputPassword2) {
notification.open({
message: "修改密码失败",
description: "两次输入的密码不一致",
});
} else if (inputPassword1.length < 6) {
notification.open({
message: "修改密码失败",
description: "新的密码太短,至少需要6位",
});
} else {
apiPutUserMe(accessToken, inputName, inputUserName, inputPassword1).then((res) => {
console.log(res);
notification.open({
message: "修改信息成功",
});
}).catch((err) => {
console.log(err);
});
}
}
const onUpdatePasswordClick = () => {
if (inputPassword1 === "" || inputPassword2 === "") {
notification.open({
message: "修改密码失败",
description: "请补充完整输入栏",
});
} else if (inputPassword1 !== inputPassword2) {
notification.open({
message: "修改密码失败",
description: "两次输入的密码不一致",
});
} else if (inputPassword1.length < 6) {
notification.open({
message: "修改密码失败",
description: "新的密码太短,至少需要6位",
});
} else {
apiGetUserMe(accessToken).then((res) => {
}).catch((err) => {
console.log(err);
});
notification.open({
message: "修改密码成功",
});
}
}
if (redirect !== null) {
return (
<Redirect push to={redirect} />
);
}
return (
<Layout
className="mp-home-layout"
>
<HomeSider
defaultSelectedKey='0'
isAdministrator={isAdministrator}
handleMenuItemClick={handleMenuItemClick}
/>
<Content
className="site-layout-background"
style={{
padding: 24,
margin: 0,
minHeight: 280,
}}
>
<Space
className="mp-vlist"
direction="vertical"
size={'small'}
style={{ marginTop: 150 }}
>
<CompoundInput
isSwitchHidden={true}
fieldName="真实姓名"
text={inputName}
isRequired={true}
textWidth={200}
maxLength={30}
onInputChange={(e) => onInputChange(e, "name")}
/>
<CompoundInput
isSwitchHidden={true}
fieldName="用户名"
text={inputUserName}
isRequired={true}
textWidth={200}
maxLength={30}
onInputChange={(e) => onInputChange(e, "username")}
/>
<CompoundInput
isSwitchHidden={true}
fieldName="是否管理员"
text={inputIsAdministrator}
isRequired={false}
textWidth={200}
maxLength={30}
isDisabled={true}
onInputChange={(e) => onInputChange(e, "isadministrator")}
/>
<CompoundInput
isSwitchHidden={true}
fieldName="新密码"
text={inputPassword1}
isRequired={true}
textWidth={200}
maxLength={30}
isPassword={true}
onInputChange={(e) => onInputChange(e, "password1")}
/>
<CompoundInput
isSwitchHidden={true}
fieldName="重复新密码"
text={inputPassword2}
isRequired={true}
textWidth={200}
maxLength={30}
isPassword={true}
onInputChange={(e) => onInputChange(e, "password2")}
/>
<Button type="primary" size={'large'} onClick={onUpdateInfoClick} style={{ marginBottom: 40 }}>
修改信息
</Button>
{/* <CompoundInput
isSwitchHidden={true}
fieldName="新密码"
text={inputPassword1}
isRequired={true}
textWidth={200}
maxLength={30}
isPassword={true}
onInputChange={(e) => onAddRecordInputChange(e, "password1")}
/>
<CompoundInput
isSwitchHidden={true}
fieldName="重复新密码"
text={inputPassword2}
isRequired={true}
textWidth={200}
maxLength={30}
isPassword={true}
onInputChange={(e) => onAddRecordInputChange(e, "password2")}
/>
<Button type="primary" size={'large'} onClick={onUpdatePasswordClick}>
修改密码
</Button> */}
</Space>
</Content>
</Layout>
)
}
|
andreluiznsilva/objectify-persister
|
src/main/java/com/googlecode/objectify/persister/util/ObjectifyPersisterDAO.java
|
<filename>src/main/java/com/googlecode/objectify/persister/util/ObjectifyPersisterDAO.java<gh_stars>0
package com.googlecode.objectify.persister.util;
import java.util.List;
import com.googlecode.objectify.ObjectifyOpts;
import com.googlecode.objectify.persister.ObjectifyPersister;
import com.googlecode.objectify.persister.impl.ObjectifyPersisterFactory;
public class ObjectifyPersisterDAO {
private final ObjectifyOpts opts;
private final ObjectifyPersisterHolder holder;
private final ObjectifyPersisterFactory factory;
public ObjectifyPersisterDAO(ObjectifyPersisterFactory factory) {
this(factory, new ObjectifyOpts(), new ThreadLocalObjectifyPersisterHolder());
}
public ObjectifyPersisterDAO(ObjectifyPersisterFactory factory, ObjectifyOpts opts) {
this(factory, opts, new ThreadLocalObjectifyPersisterHolder());
}
public ObjectifyPersisterDAO(ObjectifyPersisterFactory factory, ObjectifyOpts opts, ObjectifyPersisterHolder holder) {
this.factory = factory;
this.opts = opts;
this.holder = holder;
}
public ObjectifyPersisterFactory fact() {
return factory;
}
public ObjectifyPersister ofy() {
ObjectifyPersister result = holder.get();
if (result == null) {
result = fact().begin(opts);
holder.set(result);
}
return result;
}
public void delete(Object... object) {
ofy().delete(object);
}
public <T> T findByField(Class<T> clazz, String condition, Object value) {
return ofy().query(clazz).filter(condition, value).get();
}
public <T> T findById(Class<T> clazz, Long id) {
return ofy().find(clazz, id);
}
public <T> List<T> list(Class<T> clazz) {
return ofy().query(clazz).list();
}
public void put(Object... object) {
ofy().put(object);
}
public <T> List<T> queryByField(Class<T> clazz, String condition, Object value) {
return ofy().query(clazz).filter(condition, value).list();
}
public void refresh(Object... object) {
ofy().refresh(object);
}
}
|
beingdevelop/Development-Training
|
Training Class File/BitSocialNetworkingAutomation/src/test/java/com/bit/ui/test/SignUp.java
|
<gh_stars>0
package com.bit.ui.test;
import org.junit.Test;
import org.openqa.selenium.By;
import com.bit.support.BaseTest;
public class SignUp extends BaseTest
{
@Test
public void sign_up()
{
System.out.println("Test Started - 'sign_up'");
driver.findElement(By.id("u_0_0")).sendKeys("Asad");
System.out.println("Step - 3 : Entered First Name into First Name textbox");
}
}
|
x-meta/xworker
|
xworker_swt/src/main/java/xworker/swt/custom/CTabFolderCTabItemCreator.java
|
/*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package xworker.swt.custom;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Event;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.util.UtilMap;
import org.xmeta.util.UtilString;
import xworker.swt.design.Designer;
import xworker.swt.style.StyleSetStyleCreator;
public class CTabFolderCTabItemCreator {
public static String TOPRIGHT = "__CTabFolderCTabItem_TOPRIGHT__";
public static Object create(ActionContext actionContext){
Thing self = actionContext.getObject("self");
return create(actionContext, self, -1);
}
public static Object create(ActionContext actionContext, Thing self, int index){
int style = SWT.NONE;
if(self.getBoolean("CLOSE"))
style = SWT.CLOSE | style;
CTabFolder parent = (CTabFolder) actionContext.get("parent");
CTabItem item = null;
if(index == -1){
item = new CTabItem(parent, style);
}else{
if(index > parent.getChildren().length){
index = parent.getChildren().length;
}
item = new CTabItem(parent, style, index);
}
if(self.getString("text") != null)
item.setText(UtilString.getString(self.getString("text"), actionContext));
if(self.getString("toolTipText") != null)
item.setToolTipText(UtilString.getString(self.getString("toolTipText"), actionContext));
//保存变量和创建子事物
actionContext.getScope(0).put(self.getString("name"), item);
if(!self.getBoolean("delayReload")) {
actionContext.peek().put("parent", parent);
for(Thing child : self.getAllChilds()){
Control control = (Control) child.doAction("create", actionContext);
item.setControl(control);
//应该只有一个控件节点
break;
}
actionContext.peek().remove("parent");
}
//应用模板,如果存在
Thing StyleManager = (Thing) actionContext.get("StyleManager");
if(StyleManager != null){
StyleManager.doAction("apply", actionContext, UtilMap.toParams(new Object[]{"widget", item, "widgetThing", self}));
}
Image image = (Image) StyleSetStyleCreator.createResource(self.getString("image"),
"xworker.swt.graphics.Image", "imageFile", actionContext);
if(image != null){
item.setImage(image);
}
item.setData(Designer.DATA_THING, self.getMetadata().getPath());
item.setData(Designer.DATA_ACTIONCONTEXT, actionContext);
return item;
}
public static Control getTopRightControl(ActionContext actionContext) {
Thing self = actionContext.getObject("self");
Event event = actionContext.getObject("event");
Control control = (Control) event.item.getData(TOPRIGHT);
if(control != null && !control.isDisposed()) {
return control;
}
Thing controlThing = self.doAction("getTopRightControlThing", actionContext);
if(controlThing != null) {
//parent有CTabFilder那边的Selection中的代码预先设定了
control = controlThing.doAction("create", actionContext);
if(control != null) {
event.item.setData(TOPRIGHT, control);
}
return control;
}
return null;
}
}
|
PranjalPansuriya/JavaScriptEnhancements
|
src/commands/evaluate_javascript.py
|
import sublime, sublime_plugin
import shlex, tempfile
from ..libs import util
from ..libs import JavascriptEnhancementsExecuteOnTerminalCommand
class JavascriptEnhancementsEvaluateJavascriptCommand(JavascriptEnhancementsExecuteOnTerminalCommand, sublime_plugin.WindowCommand):
is_node = True
also_non_project = True
def prepare_command(self, **kwargs):
is_line = kwargs.get("is_line") if "is_line" in kwargs else False
view = self.window.active_view()
sel = view.sel()[0]
str_selected = view.substr(sel).strip()
if is_line:
lines = view.lines(sel)
region_selected = lines[0]
str_selected = view.substr(region_selected).strip()
if not str_selected :
return
fp = tempfile.NamedTemporaryFile(delete=False)
fp.write(str.encode("console.log('\\n'); console.time('Execution Time');\n"+str_selected+"\nconsole.log('\\n'); console.timeEnd('Execution Time');"))
fp.close()
if sublime.platform() == "windows":
self.command = ["-p", "<", fp.name, "&", "del", "/f", "/q", fp.name]
else :
self.command = ["-p", "<", shlex.quote(fp.name), ";", "rm", "-rf", shlex.quote(fp.name)]
self._run()
def _run(self):
super(JavascriptEnhancementsEvaluateJavascriptCommand, self)._run()
def is_enabled(self, **args) :
view = self.window.active_view()
if not util.selection_in_js_scope(view) :
return False
return True
def is_visible(self, **args) :
view = self.window.active_view()
if not util.selection_in_js_scope(view) :
return False
return True
|
iootclab/openjdk
|
openjdk11/test/hotspot/jtreg/compiler/unsafe/TestLoopUnswitching.java
|
<gh_stars>1-10
/*
* Copyright (c) 2017, Red Hat, Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* @test
* @bug 8191887
* @summary loop cloning misses support for Opaque4 node
* @modules java.base/jdk.internal.misc:+open
*
* @run main/othervm -XX:-BackgroundCompilation TestLoopUnswitching
*
*/
import jdk.internal.misc.Unsafe;
import java.lang.reflect.Field;
import java.util.Arrays;
public class TestLoopUnswitching {
static final jdk.internal.misc.Unsafe UNSAFE = Unsafe.getUnsafe();
static final long F_OFFSET;
static class A {
int f;
A(int f) {
this.f = f;
}
}
static {
try {
Field fField = A.class.getDeclaredField("f");
F_OFFSET = UNSAFE.objectFieldOffset(fField);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
static int test1(A[] arr, boolean flag1, boolean flag2) {
int res = 0;
for (int i = 0; i < 10; i++) {
A a = arr[i];
if (flag1) { // triggers unswitching
res += UNSAFE.getInt(a, F_OFFSET);
}
if (flag2) {
// Opaque4 node here is in the loop but If is out of the loop
res += UNSAFE.getInt(a, F_OFFSET);
break;
}
res += UNSAFE.getInt(a, F_OFFSET);
}
return res;
}
static int test2(A[] arr, boolean flag1, boolean flag2) {
int res = 0;
for (int i = 0; i < 10; i++) {
A a = arr[i];
if (flag1) { // triggers unswitching
res += UNSAFE.getInt(a, F_OFFSET);
}
if (flag2) {
// Opaque4 node here is out of the loop but Bool is in the the loop
res += UNSAFE.getInt(a, F_OFFSET);
break;
}
res += a.f;
}
return res;
}
static public void main(String[] args) {
A[] arr = new A[1000];
Arrays.fill(arr, new A(0x42));
for (int i = 0; i < 20000; i++) {
test1(arr, (i%2) == 0, (i%2) == 0);
test2(arr, (i%2) == 0, (i%2) == 0);
}
}
}
|
rbuck/java-commons
|
src/main/java/com/buck/commons/net/URN.java
|
/*
* Copyright 2010-2013 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.buck.commons.net;
import com.buck.commons.algorithms.HashCode;
import com.buck.commons.i18n.ResourceBundle;
/**
* URN class following RFC 2141.
*
* @author <NAME>
*/
@SuppressWarnings({"SimplifiableIfStatement", "PointlessBitwiseExpression", "UnusedDeclaration"})
public class URN implements Comparable<URN> {
@SuppressWarnings({"FieldCanBeLocal"})
private String pre;
private String nid;
private String nss;
// hash defaults to zero
private int hash;
private static long lowMask(String chars) {
int n = chars.length();
long m = 0;
for (int i = 0; i < n; i++) {
char c = chars.charAt(i);
if (c < 64) {
m |= (1L << c);
}
}
return m;
}
// Compute the high-order mask for the characters in the given string
private static long highMask(String chars) {
int n = chars.length();
long m = 0;
for (int i = 0; i < n; i++) {
char c = chars.charAt(i);
if ((c >= 64) && (c < 128)) {
m |= (1L << (c - 64));
}
}
return m;
}
// Compute a low-order mask for the characters
// between first and last, inclusive
private static long lowMask(char first, char last) {
long m = 0;
int f = Math.max(Math.min(first, 63), 0);
int l = Math.max(Math.min(last, 63), 0);
for (int i = f; i <= l; i++) {
m |= 1L << i;
}
return m;
}
// Compute a high-order mask for the characters
// between first and last, inclusive
private static long highMask(char first, char last) {
long m = 0;
int f = Math.max(Math.min(first, 127), 64) - 64;
int l = Math.max(Math.min(last, 127), 64) - 64;
for (int i = f; i <= l; i++) {
m |= 1L << i;
}
return m;
}
// Tell whether the given character is permitted by the given mask pair
private static boolean match(char c, long lowMask, long highMask) {
if (c < 64) {
return ((1L << c) & lowMask) != 0;
}
if (c < 128) {
return ((1L << (c - 64)) & highMask) != 0;
}
return false;
}
// digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |
// "8" | "9"
private static final long L_DIGIT = lowMask('0', '9');
private static final long H_DIGIT = 0L;
// upalpha = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" |
// "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" |
// "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
private static final long L_UPALPHA = 0L;
private static final long H_UPALPHA = highMask('A', 'Z');
// lowalpha = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" |
// "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" |
// "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"
private static final long L_LOWALPHA = 0L;
private static final long H_LOWALPHA = highMask('a', 'z');
// alpha = lowalpha | upalpha
private static final long L_ALPHA = L_LOWALPHA | L_UPALPHA;
private static final long H_ALPHA = H_LOWALPHA | H_UPALPHA;
// alphanum = alpha | digit
private static final long L_ALPHANUM = L_DIGIT | L_ALPHA;
private static final long H_ALPHANUM = H_DIGIT | H_ALPHA;
// Hyphen, for use in namespace identifiers
private static final long L_HYPHEN = lowMask("-");
private static final long H_HYPHEN = highMask("-");
private static final long L_ALPHANUM_HYPHEN = L_ALPHANUM | L_HYPHEN;
private static final long H_ALPHANUM_HYPHEN = H_ALPHANUM | H_HYPHEN;
// hex = digit | "A" | "B" | "C" | "D" | "E" | "F" |
// "a" | "b" | "c" | "d" | "e" | "f"
private static final long L_HEX = L_DIGIT;
private static final long H_HEX = highMask('A', 'F') | highMask('a', 'f');
// The zero'th bit is used to indicate that escape pairs and non-US-ASCII
// characters are allowed; this is handled by the scanEscape method below.
private static final long L_ESCAPED = 1L;
private static final long H_ESCAPED = 0L;
private static final long L_OTHER = lowMask("()+,-.:=@;$_!*'");
private static final long H_OTHER = highMask("()+,-.:=@;$_!*'");
private static final long L_RESERVED = lowMask("%/?#");
private static final long H_RESERVED = highMask("%/?#");
private static final long L_TRANS = L_ALPHANUM | L_OTHER | L_RESERVED;
private static final long H_TRANS = H_ALPHANUM | H_OTHER | H_RESERVED;
/**
* Scans and parses a URN.
*/
private class Parser {
final String input;
Parser(String s) {
input = s;
}
void parse() throws URNSyntaxException {
int n = input.length();
// scan URN: prefix
int p = scan(0, n, ",", ":");
if ((p >= 0) && at(p, n, ':')) {
if (p == 0) {
Object[] arguments = {input};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_MISSING_PREFIX", arguments);
fail(message, p);
}
pre = substring(0, p).toLowerCase();
if (!"urn".equals(pre)) {
Object[] arguments = {input};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_INVALID_PREFIX", arguments);
fail(message);
}
p++;
p = parseNID(p, n);
} else {
Object[] arguments = {input};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_NOT_URN", arguments);
fail(message, p);
}
assert p == n;
}
private int parseNID(int p, int n) throws URNSyntaxException {
// scan NID
int q = scan(p, n, ",", ":");
if (q >= p && at(q, n, ':')) {
if (q == p) {
Object[] arguments = {};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_NID_TOO_SHORT", arguments);
fail(message, q);
}
if ((q - p) > 32) {
Object[] arguments = {input};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_NID_TOO_LONG", arguments);
fail(message);
}
checkChar(p, L_ALPHANUM, H_ALPHANUM, "namespace identifier");
checkChars(p, q, L_ALPHANUM_HYPHEN, H_ALPHANUM_HYPHEN, "namespace identifier");
nid = substring(p, q);
p = q + 1;
// scan NSS
p = parseNSS(p, n);
} else {
Object[] arguments = {input};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_NID_ILLEGAL", arguments);
fail(message, q);
}
return p;
}
private int parseNSS(int p, int n) throws URNSyntaxException {
int q = scan(p, n, L_ALPHANUM | L_OTHER | L_ESCAPED,
H_ALPHANUM | H_OTHER | H_ESCAPED);
if (p < n) {
checkChars(p, n, L_TRANS, H_TRANS, "namespace specific string");
nss = substring(p, n);
} else {
Object[] arguments = {input};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_NSS_TOO_SHORT", arguments);
fail(message, p);
}
return n;
}
private void fail(String reason) throws URNSyntaxException {
throw new URNSyntaxException(input, reason);
}
private void fail(String reason, int p) throws URNSyntaxException {
throw new URNSyntaxException(input, reason, p);
}
private int scanEscape(int p, int n, char c) throws URNSyntaxException {
if (c == '%') {
// Process escape pair
if ((p + 3 <= n)
&& match(charAt(p + 1), L_HEX, H_HEX)
&& match(charAt(p + 2), L_HEX, H_HEX)) {
return p + 3;
}
Object[] arguments = {};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_MALFORMED_ESCAPE", arguments);
fail(message, p);
}
return p;
}
private int scan(int start, int n, long lowMask, long highMask) throws URNSyntaxException {
int p = start;
while (p < n) {
char c = charAt(p);
if (match(c, lowMask, highMask)) {
p++;
continue;
}
if ((lowMask & L_ESCAPED) != 0) {
int q = scanEscape(p, n, c);
if (q > p) {
p = q;
continue;
}
}
break;
}
return p;
}
private void checkChars(int start, int end, long lowMask, long highMask,
String what) throws URNSyntaxException {
int p = scan(start, end, lowMask, highMask);
if (p < end) {
Object[] arguments = {what};
String message = ResourceBundle.formatResourceBundleMessage(URN.class,
"URN_ILLEGAL_CHARACTER", arguments);
fail(message, p);
}
}
private void checkChar(int p, long lowMask, long highMask, String what)
throws URNSyntaxException {
checkChars(p, p + 1, lowMask, highMask, what);
}
private int scan(int start, int end, String err, String stop) {
int p = start;
while (p < end) {
char c = charAt(p);
if (err.indexOf(c) >= 0) {
break;
}
if (stop.indexOf(c) >= 0) {
break;
}
p++;
}
return p;
}
private boolean at(int start, int end, char c) {
return (start < end) && (charAt(start) == c);
}
private char charAt(int p) {
return input.charAt(p);
}
private String substring(int start, int end) {
return input.substring(start, end);
}
}
/**
* Constructs a URN. The constructor calls a parser and scanner to validate
* the URN and decompose it to its constituent components.
*
* @param urn the URN to decompose.
* @throws URNSyntaxException if the URN does not have legal syntax
*/
public URN(String urn) throws URNSyntaxException {
new Parser(urn).parse();
}
/**
* Gets the URN string.
*
* @return the URN
*/
public String getUrn() {
return pre + ":" + nid + ":" + nss;
}
/**
* Gets the namespace identifier.
*
* @return NID
*/
public String getNid() {
return nid;
}
/**
* Gets the namespace specific string.
*
* @return NSS
*/
public String getNss() {
return nss;
}
/**
* Gets a string representation hashCode the URN. This is equivalent to
* calling {@link #getUrn}.
*
* @return string representation hashCode the URN
*/
public String toString() {
return getUrn();
}
private static int toLower(char c) {
if ((c >= 'A') && (c <= 'Z')) {
return c + ('a' - 'A');
}
return c;
}
private static int compareIgnoringCase(String s, String t) {
if (s.equals(t)) {
return 0;
} else {
int sn = s.length();
int tn = t.length();
int n = sn < tn ? sn : tn;
for (int i = 0; i < n; i++) {
int c = toLower(s.charAt(i)) - toLower(t.charAt(i));
if (c != 0) {
return c;
}
}
return sn - tn;
}
}
/**
* Compares this urn to the specified object.
* <p/>
* The result is <code>true</code> if and only if the argument is not
* <code>null</code> and is a <code>URN</code> object that represents has an
* identical NID and NSS as this object.
*
* @param obj the object to compare this <code>URN</code> against.
* @return <code>true</code> if the <code>URN </code>are equal;
* <code>false</code> otherwise.
* @see URN#compareTo(URN)
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof URN) {
URN that = (URN) obj;
return this.compareTo(that) == 0;
}
return false;
}
/**
* Compares this URN to another object, which must be a URN. <p/> <p/> <p>
* The ordering hashCode URNs is defined as follows: </p> <p/> <ul
* type=disc> <p/> <li><p> Two URNs with different prefixes are ordered
* according the ordering hashCode their prefixes, without regard to case.
* </p></li> <p/> <li><p> Two URNs with different namespace identifiers
* (NID) are ordered according the ordering hashCode their NID, without
* regard to case. </p></li> <p/> <li><p> Two URNs with different namespace
* specific strings (NSS) are ordered according the ordering hashCode their
* NSS, without regard to case. </p></li> </ul> <p/> <p> This method
* satisfies the general contract hashCode the {@link
* java.lang.Comparable#compareTo(Object) Comparable.compareTo} method.
* </p>
*
* @param that The object to which this URN is to be compared
* @return A negative integer, zero, or a positive integer as this URN is
* less than, equal to, or greater than the given URN
* @throws ClassCastException If the given object is not a URN
*/
public int compareTo(URN that) {
int c;
if ((c = compareIgnoringCase(this.pre, that.pre)) != 0) {
return c;
}
if ((c = compareIgnoringCase(this.nid, that.nid)) != 0) {
return c;
}
if ((c = compareIgnoringCase(this.nss, that.nss)) != 0) {
return c;
}
return 0;
}
/**
* Returns a hash code value for the object. The method guarantees that two
* objects with unequal hash codes cannot be equal. The method is supported
* for the benefit hashCode hash-based collections.
* <p/>
* Note that the hash code returned by this method is not equal to the hash
* code for the string returned by the toString method.
*
* @return the hash code for the URN.
*/
public int hashCode() {
int h = hash;
if (h == 0) {
h = HashCode.hashCode(pre, nid, nss);
hash = h;
}
return h;
}
}
|
CiscoISE/ciscoise-go-sdk
|
sdk/backup_and_restore.go
|
package isegosdk
import (
"fmt"
"github.com/go-resty/resty/v2"
)
type BackupAndRestoreService service
type ResponseBackupAndRestoreConfigBackup struct {
Response *ResponseBackupAndRestoreConfigBackupResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseBackupAndRestoreConfigBackupResponse struct {
ID string `json:"id,omitempty"` // Id which can be used to track the status of backup / restore of config DB.
Message string `json:"message,omitempty"` //
Link *ResponseBackupAndRestoreConfigBackupResponseLink `json:"link,omitempty"` //
}
type ResponseBackupAndRestoreConfigBackupResponseLink struct {
Rel string `json:"rel,omitempty"` //
Href string `json:"href,omitempty"` //
Type string `json:"type,omitempty"` //
}
type ResponseBackupAndRestoreCancelBackup struct {
Response *ResponseBackupAndRestoreCancelBackupResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseBackupAndRestoreCancelBackupResponse struct {
Action string `json:"action,omitempty"` //
Details string `json:"details,omitempty"` // Details of the job
Error string `json:"error,omitempty"` // Error message. False in case of no error
HostName string `json:"hostName,omitempty"` // Hostname where the job has executed
InitiatedFrom string `json:"initiatedFrom,omitempty"` //
JustComplete string `json:"justComplete,omitempty"` // Whether the job completed now. Possible values - Yes, No
Message string `json:"message,omitempty"` // detail message in case of exception
Name string `json:"name,omitempty"` // Backup name given at the time of scheduling the job.
PercentComplete string `json:"percentComplete,omitempty"` // shows the percent completion of the job. Possible value range 1 - 100
Repository string `json:"repository,omitempty"` // configured repository selected for the backup / restore job
Scheduled string `json:"scheduled,omitempty"` // last action performed with respect to backup job. Possible values- BACKUP , CANCEL
StartDate string `json:"startDate,omitempty"` // Start date of the backup job
Status string `json:"status,omitempty"` //
Type string `json:"type,omitempty"` //
}
type ResponseBackupAndRestoreGetLastConfigBackupStatus struct {
Response *ResponseBackupAndRestoreGetLastConfigBackupStatusResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseBackupAndRestoreGetLastConfigBackupStatusResponse struct {
Action string `json:"action,omitempty"` //
Details string `json:"details,omitempty"` // Details of the job
Error string `json:"error,omitempty"` // Error message. False in case of no error
HostName string `json:"hostName,omitempty"` // Hostname where the job has executed
InitiatedFrom string `json:"initiatedFrom,omitempty"` //
JustComplete string `json:"justComplete,omitempty"` // Whether the job completed now. Possible values - Yes, No
Message string `json:"message,omitempty"` // detail message in case of exception
Name string `json:"name,omitempty"` // Backup name given at the time of scheduling the job.
PercentComplete string `json:"percentComplete,omitempty"` // shows the percent completion of the job. Possible value range 1 - 100
Repository string `json:"repository,omitempty"` // configured repository selected for the backup / restore job
Scheduled string `json:"scheduled,omitempty"` // last action performed with respect to backup job. Possible values- BACKUP , CANCEL
StartDate string `json:"startDate,omitempty"` // Start date of the backup job
Status string `json:"status,omitempty"` //
Type string `json:"type,omitempty"` //
}
type ResponseBackupAndRestoreRestoreConfigBackup struct {
Response *ResponseBackupAndRestoreRestoreConfigBackupResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseBackupAndRestoreRestoreConfigBackupResponse struct {
ID string `json:"id,omitempty"` // Id which can be used to track the status of backup / restore of config DB.
Message string `json:"message,omitempty"` //
Link *ResponseBackupAndRestoreRestoreConfigBackupResponseLink `json:"link,omitempty"` //
}
type ResponseBackupAndRestoreRestoreConfigBackupResponseLink struct {
Rel string `json:"rel,omitempty"` //
Href string `json:"href,omitempty"` //
Type string `json:"type,omitempty"` //
}
type ResponseBackupAndRestoreUpdateScheduledConfigBackup struct {
Response *ResponseBackupAndRestoreUpdateScheduledConfigBackupResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseBackupAndRestoreUpdateScheduledConfigBackupResponse struct {
Message string `json:"message,omitempty"` // Response message on successful scheduling the backup job.
Link *ResponseBackupAndRestoreUpdateScheduledConfigBackupResponseLink `json:"link,omitempty"` //
}
type ResponseBackupAndRestoreUpdateScheduledConfigBackupResponseLink struct {
Rel string `json:"rel,omitempty"` //
Href string `json:"href,omitempty"` //
Type string `json:"type,omitempty"` //
}
type ResponseBackupAndRestoreCreateScheduledConfigBackup struct {
Response *ResponseBackupAndRestoreCreateScheduledConfigBackupResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseBackupAndRestoreCreateScheduledConfigBackupResponse struct {
Message string `json:"message,omitempty"` // Response message on successful scheduling the backup job.
Link *ResponseBackupAndRestoreCreateScheduledConfigBackupResponseLink `json:"link,omitempty"` //
}
type ResponseBackupAndRestoreCreateScheduledConfigBackupResponseLink struct {
Rel string `json:"rel,omitempty"` //
Href string `json:"href,omitempty"` //
Type string `json:"type,omitempty"` //
}
type RequestBackupAndRestoreConfigBackup struct {
BackupEncryptionKey string `json:"backupEncryptionKey,omitempty"` // The encyption key for the backed up file. Encryption key must satisfy the following criteria - Contains at least one uppercase letter [A-Z], Contains at least one lowercase letter [a-z], Contains at least one digit [0-9], Contain only [A-Z][a-z][0-9]_#, Has at least 8 characters, Has not more than 15 characters, Must not contain 'CcIiSsCco', Must not begin with
BackupName string `json:"backupName,omitempty"` // The backup file will get saved with this name.
RepositoryName string `json:"repositoryName,omitempty"` // Name of the configured repository where the generated backup file will get copied.
}
type RequestBackupAndRestoreRestoreConfigBackup struct {
BackupEncryptionKey string `json:"backupEncryptionKey,omitempty"` // The encryption key which was provided at the time of taking backup.
RepositoryName string `json:"repositoryName,omitempty"` // Name of the configred repository where the backup file exists.
RestoreFile string `json:"restoreFile,omitempty"` // Name of the backup file to be restored on ISE node.
RestoreIncludeAdeos string `json:"restoreIncludeAdeos,omitempty"` // Determines whether the ADE-OS configure is restored. Possible values true, false
}
type RequestBackupAndRestoreUpdateScheduledConfigBackup struct {
BackupDescription string `json:"backupDescription,omitempty"` // Description of the backup.
BackupEncryptionKey string `json:"backupEncryptionKey,omitempty"` // The encyption key for the backed up file. Encryption key must satisfy the following criteria - Contains at least one uppercase letter [A-Z], Contains at least one lowercase letter [a-z], Contains at least one digit [0-9], Contain only [A-Z][a-z][0-9]_#, Has at least 8 characters, Has not more than 15 characters, Must not contain 'CcIiSsCco', Must not begin with
BackupName string `json:"backupName,omitempty"` // The backup file will get saved with this name.
EndDate string `json:"endDate,omitempty"` // End date of the scheduled backup job. Allowed format MM/DD/YYYY. End date is not required in case of ONE_TIME frequency.
Frequency string `json:"frequency,omitempty"` //
MonthDay string `json:"monthDay,omitempty"` // Day of month you want backup to be performed on when scheduled frequency is MONTHLY. Allowed values - from 1 to 28.
RepositoryName string `json:"repositoryName,omitempty"` // Name of the configured repository where the generated backup file will get copied.
StartDate string `json:"startDate,omitempty"` // Start date for scheduling the backup job. Allowed format MM/DD/YYYY.
Status string `json:"status,omitempty"` //
Time string `json:"time,omitempty"` // Time at which backup job get scheduled. example- 12:00 AM
WeekDay string `json:"weekDay,omitempty"` //
}
type RequestBackupAndRestoreCreateScheduledConfigBackup struct {
BackupDescription string `json:"backupDescription,omitempty"` // Description of the backup.
BackupEncryptionKey string `json:"backupEncryptionKey,omitempty"` // The encyption key for the backed up file. Encryption key must satisfy the following criteria - Contains at least one uppercase letter [A-Z], Contains at least one lowercase letter [a-z], Contains at least one digit [0-9], Contain only [A-Z][a-z][0-9]_#, Has at least 8 characters, Has not more than 15 characters, Must not contain 'CcIiSsCco', Must not begin with
BackupName string `json:"backupName,omitempty"` // The backup file will get saved with this name.
EndDate string `json:"endDate,omitempty"` // End date of the scheduled backup job. Allowed format MM/DD/YYYY. End date is not required in case of ONE_TIME frequency.
Frequency string `json:"frequency,omitempty"` //
MonthDay string `json:"monthDay,omitempty"` // Day of month you want backup to be performed on when scheduled frequency is MONTHLY. Allowed values - from 1 to 28.
RepositoryName string `json:"repositoryName,omitempty"` // Name of the configured repository where the generated backup file will get copied.
StartDate string `json:"startDate,omitempty"` // Start date for scheduling the backup job. Allowed format MM/DD/YYYY.
Status string `json:"status,omitempty"` //
Time string `json:"time,omitempty"` // Time at which backup job get scheduled. example- 12:00 AM
WeekDay string `json:"weekDay,omitempty"` //
}
//GetLastConfigBackupStatus Gives the last backup status
/* Gives the last backup status
*/
func (s *BackupAndRestoreService) GetLastConfigBackupStatus() (*ResponseBackupAndRestoreGetLastConfigBackupStatus, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/backup-restore/config/last-backup-status"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetResult(&ResponseBackupAndRestoreGetLastConfigBackupStatus{}).
SetError(&Error).
Get(path)
if err != nil {
return nil, nil, err
}
if response.IsError() {
return nil, response, fmt.Errorf("error with operation GetLastConfigBackupStatus")
}
getCSFRToken(response.Header())
result := response.Result().(*ResponseBackupAndRestoreGetLastConfigBackupStatus)
return result, response, err
}
//ConfigBackup Take the config DB backup now by providing the name of the backup,repository name and encryption key. The API returns the task ID. Use the Task Service status API to get the status of the backup job
/* Triggers on demand configuration backup on the ISE node. The API returns the task ID. Use the Task Service status API to get the status of the backup job.
*/
func (s *BackupAndRestoreService) ConfigBackup(requestBackupAndRestoreConfigBackup *RequestBackupAndRestoreConfigBackup) (*ResponseBackupAndRestoreConfigBackup, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/backup-restore/config/backup"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetBody(requestBackupAndRestoreConfigBackup).
SetResult(&ResponseBackupAndRestoreConfigBackup{}).
SetError(&Error).
Post(path)
if err != nil {
if err.Error() == emptyStringToJSONError {
return &ResponseBackupAndRestoreConfigBackup{}, response, nil
}
return nil, nil, err
}
getCSFRToken(response.Header())
if response.IsError() {
return nil, response, fmt.Errorf("error with operation ConfigBackup")
}
result := response.Result().(*ResponseBackupAndRestoreConfigBackup)
return result, response, err
}
//CancelBackup Cancel the running backup
/* Cancels the backup job running on the node.
*/
func (s *BackupAndRestoreService) CancelBackup() (*ResponseBackupAndRestoreCancelBackup, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/backup-restore/config/cancel-backup"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetResult(&ResponseBackupAndRestoreCancelBackup{}).
SetError(&Error).
Post(path)
if err != nil {
if err.Error() == emptyStringToJSONError {
return &ResponseBackupAndRestoreCancelBackup{}, response, nil
}
return nil, nil, err
}
getCSFRToken(response.Header())
if response.IsError() {
return nil, response, fmt.Errorf("error with operation CancelBackup")
}
result := response.Result().(*ResponseBackupAndRestoreCancelBackup)
return result, response, err
}
//RestoreConfigBackup Restore a config DB backup by giving the name of the backup file, repository name and encryption key. The API returns the task ID. Use the Task Service status API to get the status of the restore job
/* Triggers a configuration DB restore job on the ISE node. The API returns the task ID. Use the Task Service status API to get the status of the backup job
*/
func (s *BackupAndRestoreService) RestoreConfigBackup(requestBackupAndRestoreRestoreConfigBackup *RequestBackupAndRestoreRestoreConfigBackup) (*ResponseBackupAndRestoreRestoreConfigBackup, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/backup-restore/config/restore"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetBody(requestBackupAndRestoreRestoreConfigBackup).
SetResult(&ResponseBackupAndRestoreRestoreConfigBackup{}).
SetError(&Error).
Post(path)
if err != nil {
if err.Error() == emptyStringToJSONError {
return &ResponseBackupAndRestoreRestoreConfigBackup{}, response, nil
}
return nil, nil, err
}
getCSFRToken(response.Header())
if response.IsError() {
return nil, response, fmt.Errorf("error with operation RestoreConfigBackup")
}
result := response.Result().(*ResponseBackupAndRestoreRestoreConfigBackup)
return result, response, err
}
//CreateScheduledConfigBackup Schedules the configuration backup on the ISE node as per the input parameters.
/* Schedules the configuration backup on the ISE node as per the input parameters. This API helps in creating the schedule for the first time.
*/
func (s *BackupAndRestoreService) CreateScheduledConfigBackup(requestBackupAndRestoreCreateScheduledConfigBackup *RequestBackupAndRestoreCreateScheduledConfigBackup) (*ResponseBackupAndRestoreCreateScheduledConfigBackup, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/backup-restore/config/schedule-config-backup"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetBody(requestBackupAndRestoreCreateScheduledConfigBackup).
SetResult(&ResponseBackupAndRestoreCreateScheduledConfigBackup{}).
SetError(&Error).
Post(path)
if err != nil {
if err.Error() == emptyStringToJSONError {
return &ResponseBackupAndRestoreCreateScheduledConfigBackup{}, response, nil
}
return nil, nil, err
}
getCSFRToken(response.Header())
if response.IsError() {
return nil, response, fmt.Errorf("error with operation CreateScheduledConfigBackup")
}
result := response.Result().(*ResponseBackupAndRestoreCreateScheduledConfigBackup)
return result, response, err
}
//UpdateScheduledConfigBackup Update scheduled configuration backup
/* Update the Schedule of the configuration backup on the ISE node as per the input parameters. This API only helps in editing the schedule.
*/
func (s *BackupAndRestoreService) UpdateScheduledConfigBackup(requestBackupAndRestoreUpdateScheduledConfigBackup *RequestBackupAndRestoreUpdateScheduledConfigBackup) (*ResponseBackupAndRestoreUpdateScheduledConfigBackup, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/backup-restore/config/schedule-config-backup"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetBody(requestBackupAndRestoreUpdateScheduledConfigBackup).
SetResult(&ResponseBackupAndRestoreUpdateScheduledConfigBackup{}).
SetError(&Error).
Put(path)
if err != nil {
if err.Error() == emptyStringToJSONError {
return &ResponseBackupAndRestoreUpdateScheduledConfigBackup{}, response, nil
}
return nil, nil, err
}
if response.IsError() {
return nil, response, fmt.Errorf("error with operation UpdateScheduledConfigBackup")
}
getCSFRToken(response.Header())
result := response.Result().(*ResponseBackupAndRestoreUpdateScheduledConfigBackup)
return result, response, err
}
|
sashakru/test262
|
test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js
|
<reponame>sashakru/test262<gh_stars>10-100
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.3-4-179
description: >
Object.getOwnPropertyDescriptor returns data desc (all false) for
properties on built-ins (Global.Infinity)
---*/
// in non-strict mode, 'this' is bound to the global object.
var desc = Object.getOwnPropertyDescriptor(this, "Infinity");
assert.sameValue(desc.writable, false, 'desc.writable');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
assert.sameValue(desc.configurable, false, 'desc.configurable');
assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")');
assert.sameValue(desc.hasOwnProperty('set'), false, 'desc.hasOwnProperty("set")');
|
ajeet1308/code_problems
|
CodeChef_problems/ChefinaAndSwaps.py
|
'''
Problem Link - https://www.codechef.com/JULY20B/problems/CHFNSWPS
'''
from sys import *
from math import *
from collections import *
mod = 1000000007
def get_array(): return list(map(int, stdin.readline().split()))
def get_ints(): return map(int, stdin.readline().split())
def get_int(): return int(stdin.readline())
def get_input(): return stdin.readline().strip()
def main():
tc = get_int()
while(tc):
N = get_int();arr = get_array();arr1 = get_array()
mini = min(min(arr),min(arr1))
counter = Counter(arr+arr1)
set,dic,dic1 = 0,{},{}
for i in counter:
if counter[i]&1:set = 1;break
else:
dic[i] = counter[i]/2
if set:stdout.write("-1\n");
else:
dic1,list1,list2 = dic,[],[]
for i in range(N):
if dic[arr[i]]:
dic[arr[i]] -= 1
else:
list1.append(arr[i])
for i in range(N):
if dic1[arr1[i]]:
dic1[arr1[i]] -= 1
else:
list2.append(arr1[i])
list1.sort();list2.sort(reverse=True)
length = len(list1)
if length==0:stdout.write('0\n')
else:
ans = 0
for i in range(length):
ans += min(2*mini,min(list1[i],list2[i]))
stdout.write(str(ans) + '\n')
tc-=1
if __name__ == "__main__":
main()
|
jbuider1993/app-oaserver
|
app-pro-note/src/main/java/com/app/producer/AppMyNoteController.java
|
package com.app.producer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.app.common.constans.Constants;
import com.app.common.util.ToolUtil;
import com.app.dao.AppMyNoteDao;
import com.app.redis.JedisClientService;
/**
*
* @author
*
*/
@RestController
public class AppMyNoteController {
@Autowired
private JedisClientService jedisClient;
@Autowired
private AppMyNoteDao appMyNoteDao;
/**
*
* @Title: queryNoteAllFile
* @Description: 获取笔记目录
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@GetMapping("/myNote")
public void queryNoteAllFile(HttpServletResponse response, @RequestHeader String userToken) throws Exception{
Map<String, Object> map = new HashMap<String, Object>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("userId", userToken);
List<Map<String, Object>> beans = appMyNoteDao.queryFileAndContentList(map);
beans = ToolUtil.allFileToTreeNote(beans);
ToolUtil.sendMessageToPageComJson(response, beans);
}
/**
*
* @Title: queryNoteContent
* @Description: 获取笔记详情
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@GetMapping("/myNoteDetail")
public void queryNoteContent(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String id) throws Exception{
Map<String, Object> map = new HashMap<String, Object>();
map.put("id", id);
Map<String, Object> bean = appMyNoteDao.queryMyNoteContentMationById(map);
ToolUtil.sendMessageToPageComJson(response, bean);
}
/**
*
* @Title: queryNewNote
* @Description: 获取最新笔记
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@GetMapping("/myNewNote")
public void queryNewNote(HttpServletResponse response, @RequestHeader String userToken) throws Exception{
Map<String, Object> map = new HashMap<String, Object>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("userId", userToken);
List<Map<String, Object>> beans = appMyNoteDao.queryNewNote(map);
ToolUtil.sendMessageToPageComJson(response, beans);
}
/**
*
* @Title: addNoteFile
* @Description: 新建目录
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@PostMapping("/myNoteFolder")
public void addNoteFile(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String id, @RequestParam String name) throws Exception{
Map<String, Object> map = new HashMap<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
String key = Constants.getSysFileMyNoteListMation(id, userToken);
jedisClient.delKeys(key);//删除父文件夹的redis的key
String parentId = setParentId(id);
map.put("parentId", parentId);
map.put("id", ToolUtil.getSurFaceId());
map.put("catalogName", name);
map.put("state", 1);
map.put("createId", userToken);
map.put("createTime", ToolUtil.getTimeAndToString());
appMyNoteDao.insertFileFolderByUserId(map);
ToolUtil.sendMessageToPageComJson(response, "添加成功", "0");
}
/**
*
* @Title: addNoteContent
* @Description: 新增笔记
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@PostMapping("/myNote")
public void addNoteContent(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String pid, @RequestParam String name, @RequestParam String type, @RequestParam String desc, @RequestParam String content) throws Exception{
Map<String, Object> map = new HashMap<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
String parentId = setParentId(pid);
map.put("parentId", parentId);
map.put("id", ToolUtil.getSurFaceId());
map.put("title", name);
map.put("state", 1);
map.put("type", type);
if(desc.length() > 100){
desc = desc.substring(0, 99);
}
map.put("desc", desc);
map.put("content", content);
map.put("createId", userToken);
map.put("createTime", ToolUtil.getTimeAndToString());
map.put("iconLogo", "../../assets/images/tpl.png");
appMyNoteDao.insertMyNoteContentByUserId(map);
ToolUtil.sendMessageToPageComJson(response, "添加成功", "0");
}
/**
*
* @Title: editNoteFileName
* @Description: 编辑文件/笔记的名称
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@PutMapping("/myNoteFileName")
public void editNoteFileName(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String id, @RequestParam String name, @RequestParam String type) throws Exception{
Map<String, Object> map = new HashMap<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("id", id);
map.put("catalogName", name);
map.put("userId", userToken);
if("folder".equals(type)){//操作文件夹表
Map<String, Object> fileParent = appMyNoteDao.quertFolderParentById(map);
String[] str = fileParent.get("parentId").toString().split(",");
String key = Constants.getSysFileMyNoteListMation(str[str.length - 1], userToken);
jedisClient.delKeys(key);//删除父文件夹的redis的key
appMyNoteDao.editFileFolderById(map);
}else{//操作笔记表
appMyNoteDao.editNoteContentNameById(map);
}
ToolUtil.sendMessageToPageComJson(response, "编辑成功", "0");
}
/**
*
* @Title: editNoteContent
* @Description: 编辑笔记
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@PutMapping("/myNote")
public void editNoteContent(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String id, @RequestParam String name, @RequestParam String desc, @RequestParam String content) throws Exception{
Map<String, Object> map = new HashMap<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("id", id);
map.put("title", name);
map.put("userId", userToken);
if(desc.length() > 100){
desc = desc.substring(0, 99);
}
map.put("desc", desc);
map.put("content", content);
appMyNoteDao.editMyNoteContentById(map);
ToolUtil.sendMessageToPageComJson(response, "编辑成功", "0");
}
/**
*
* @Title: deleteFileFolderById
* @Description: 删除文件夹以及文件夹下的所有文件
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@DeleteMapping("/myNote")
public void deleteFileFolderById(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String id, @RequestParam String type) throws Exception{
Map<String, Object> map = new HashMap<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("id", id);
if("folder".equals(type)){//操作文件夹表
Map<String, Object> fileParent = appMyNoteDao.quertFolderParentById(map);
String[] str = fileParent.get("parentId").toString().split(",");
String key = Constants.getSysFileMyNoteListMation(str[str.length - 1], userToken);
jedisClient.delKeys(key);//删除父文件夹的redis的key
appMyNoteDao.deleteFileFolderById(map);//删除自身文件夹
appMyNoteDao.deleteFolderChildByFolderId(map);//删除子文件夹
appMyNoteDao.deleteFilesByFolderId(map);//删除子文件
}else{//操作笔记内容表
appMyNoteDao.deleteNoteContentById(map);//删除自身文件
}
ToolUtil.sendMessageToPageComJson(response, "删除成功", "0");
}
/**
*
* @Title: queryMoveToFile
* @Description: 获取文件/笔记移动时的选择树
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@GetMapping("/myMoveToFile")
public void queryMoveToFile(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String id, @RequestParam String type) throws Exception{
Map<String, Object> map = new HashMap<>();
List<Map<String, Object>> beans = new ArrayList<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("userId", userToken);
if(type.equals("folder")){
map.put("moveId", id);
beans = appMyNoteDao.queryTreeToMoveByMoveId(map);
}else{
beans = appMyNoteDao.queryTreeToMoveByUserId(map);
}
beans = ToolUtil.allFileToTreeNote(beans);
ToolUtil.sendMessageToPageComJson(response, beans);
}
/**
*
* @Title: editNoteToMoveById
* @Description: 保存文件/笔记移动后的信息
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@SuppressWarnings("unchecked")
@PostMapping("/myMoveToFile")
public void editNoteToMoveById(HttpServletResponse response, @RequestHeader String userToken, @RequestParam String moveid, @RequestParam String toid, @RequestParam String type) throws Exception{
Map<String, Object> map = new HashMap<>();
if(userToken.contains("-")){
userToken = userToken.substring(0, userToken.indexOf("-"));
}
map.put("userId", userToken);
String key = Constants.getSysFileMyNoteListMation(toid, userToken);
jedisClient.delKeys(key);//删除父文件夹的redis的key
if(type.equals("folder")){
String newParentId ="";
if(toid.equals("2")){
newParentId = "2";
}else{
map.put("id", toid);//目标文件夹的id
Map<String, Object> endFileParent = appMyNoteDao.quertFolderParentById(map);//获取目标文件夹的父id
newParentId = endFileParent.get("parentId").toString() + toid;//拖拽文件夹新的父id
}
String arrId = moveid;
String arr[] = arrId.split(",");//拖拽文件夹的id数组
List<Map<String, Object>> folderBeans = new ArrayList<>();
Map<String, Object> bean;
for(int i = 0; i < arr.length; i++){
bean = new HashMap<>();
bean.put("id", arr[i]);
folderBeans.add(bean);
}
if(!folderBeans.isEmpty()){//选择保存的文件夹不为空
List<Map<String, Object>> folderNew = appMyNoteDao.queryFileFolderListByList(folderBeans);
if(!folderNew.isEmpty())//删除之前的信息
appMyNoteDao.deleteFileFolderListByList(folderNew);
List<Map<String, Object>> fileNew = appMyNoteDao.queryFileListByList(folderNew);
if(!fileNew.isEmpty())//删除之前的信息
appMyNoteDao.deleteFileListByList(fileNew);
for(Map<String, Object> folder: folderNew){//重置父id
String[] str = folder.get("parentId").toString().split(",");
String thiskey = Constants.getSysFileMyNoteListMation(str[str.length - 1], userToken);
jedisClient.delKeys(thiskey);//删除父文件夹的redis的key
folder.put("directParentId", str[str.length - 1]);
folder.put("newId", ToolUtil.getSurFaceId());
}
//将数据转化为树的形式,方便进行父id重新赋值
JSONArray result = ToolUtil.listToTree(JSONArray.parseArray(JSON.toJSONString(folderNew)), "id", "directParentId", "children");
folderNew = (List<Map<String, Object>>) JSON.parse(result.toJSONString());
ToolUtil.FileListParentISEdit(folderNew, newParentId);//替换父id
folderNew = ToolUtil.FileTreeTransList(folderNew);//将树转为list
for(Map<String, Object> folder: folderNew){
folder.put("createId", userToken);
folder.put("createTime", ToolUtil.getTimeAndToString());
folder.put("state", 1);
}
//为文件重置新parentId参数
for(Map<String, Object> folder: folderNew){
String parentId = folder.get("parentId").toString() + folder.get("id").toString() + ",";
String nParentId = folder.get("newParentId").toString() + folder.get("newId").toString() + ",";
for(Map<String, Object> file: fileNew){
if(parentId.equals(file.get("parentId").toString())){
file.put("newParentId", nParentId);
}
}
}
//为文件重置新参数
for(Map<String, Object> file: fileNew){
file.put("newId", ToolUtil.getSurFaceId());
file.put("createId", userToken);
file.put("createTime", ToolUtil.getTimeAndToString());
file.put("state", 1);
}
if(!folderNew.isEmpty())
appMyNoteDao.insertFileFolderListByList(folderNew);
if(!fileNew.isEmpty())
appMyNoteDao.insertFileListByList(fileNew);
}
}else{
map.put("id", moveid);
Map<String, Object> bean = appMyNoteDao.queryMyNoteContentMationById(map);//获取之前的信息
appMyNoteDao.deleteNoteContentById(map);//删除笔记
String parentId = setParentId(toid);
if("0".equals(parentId)){
ToolUtil.sendMessageToPageComJson(response, "错误的文件夹编码!", "-9999");
return;
}
bean.put("parentId", parentId);
bean.put("id", ToolUtil.getSurFaceId());
bean.put("createId", userToken);
bean.put("createTime", ToolUtil.getTimeAndToString());
bean.put("state", 1);
bean.put("iconLogo", "../../assets/images/tpl.png");
appMyNoteDao.insertMyNoteContentByUserId(bean);//新增笔记
}
ToolUtil.sendMessageToPageComJson(response, "保存成功", "0");
}
/**
*
* @Title: setParentId
* @Description: 根据节点id设置ParentId
* @param @param id
* @param @param ParentId
* @param @throws Exception 参数
* @return String 返回类型
* @throws
*/
public String setParentId(String id) throws Exception {
if ("2".equals(id)) {
return id + ",";
} else {
Map<String, Object> map = new HashMap<String, Object>();
map.put("parentId", id);
Map<String, Object> folderParent = appMyNoteDao.queryFolderParentByFolderId(map);// 查询该文件夹的父id
if (folderParent != null && !folderParent.isEmpty()) {
return folderParent.get("parentId").toString() + id + ",";
} else {
return "0";
}
}
}
}
|
pvanassen/ns-api
|
src/main/java/nl/pvanassen/ns/UrlParamHelper.java
|
package nl.pvanassen.ns;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author <NAME>
*/
class UrlParamHelper {
private final Charset charset;
private static final UrlParamHelper INSTANCE = new UrlParamHelper();
private UrlParamHelper() {
if (!Charset.isSupported("UTF-8")) {
throw new IllegalArgumentException("UTF-8 encoding not supported by platform");
}
charset = Charset.forName("UTF-8");
}
static String encode(String param) {
// Keep null null
if (param == null) {
return null;
}
try {
return URLEncoder.encode(param, INSTANCE.charset.name());
}
catch (UnsupportedEncodingException e) {
// This has been checked on class setup.
throw new IllegalArgumentException("UTF-8 encoding not supported by platform", e);
}
}
static String formatDate(Date dateTime) {
// Keep null null
if (dateTime == null) {
return null;
}
return new SimpleDateFormat(NsApi.DATETIME_FORMAT).format(dateTime);
}
}
|
ededrap/AP_Lab
|
tutorial-8/src/main/java/tallycounter/TallyCounterChecker.java
|
<filename>tutorial-8/src/main/java/tallycounter/TallyCounterChecker.java
package tallycounter;
public class TallyCounterChecker implements Runnable {
private SynchronizedTallyCounter tallyCounterReference;
private Thread thread;
private int sleepTime;
public TallyCounterChecker(SynchronizedTallyCounter tallyCounterReference, int sleepTime) {
this.tallyCounterReference = tallyCounterReference;
this.sleepTime = sleepTime;
}
public void start() {
if (thread == null) {
thread = new Thread(this, "Tally Counter Checker");
thread.start();
}
}
@Override
public void run() {
System.out.println("Running " + "Tally Counter Checker");
try {
for (int i = 65; i > 0; i++) {
System.out.println("Total Ticket ordered in Tally Counter Is : "
+ tallyCounterReference.value());
Thread.sleep(sleepTime);
}
} catch (InterruptedException e) {
System.out.println("Tally Counter Checker interrupted.");
}
System.out.println("Tally Counter Checker closed.");
}
}
|
jrtkcoder/GitLab
|
spec/requests/api/v3/award_emoji_spec.rb
|
require 'spec_helper'
describe API::V3::AwardEmoji, api: true do
include ApiHelpers
let(:user) { create(:user) }
let!(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project) }
let!(:award_emoji) { create(:award_emoji, awardable: issue, user: user) }
let!(:merge_request) { create(:merge_request, source_project: project, target_project: project) }
let!(:downvote) { create(:award_emoji, :downvote, awardable: merge_request, user: user) }
let!(:note) { create(:note, project: project, noteable: issue) }
before { project.team << [user, :master] }
describe 'DELETE /projects/:id/awardable/:awardable_id/award_emoji/:award_id' do
context 'when the awardable is an Issue' do
it 'deletes the award' do
expect do
delete v3_api("/projects/#{project.id}/issues/#{issue.id}/award_emoji/#{award_emoji.id}", user)
expect(response).to have_http_status(200)
end.to change { issue.award_emoji.count }.from(1).to(0)
end
it 'returns a 404 error when the award emoji can not be found' do
delete v3_api("/projects/#{project.id}/issues/#{issue.id}/award_emoji/12345", user)
expect(response).to have_http_status(404)
end
end
context 'when the awardable is a Merge Request' do
it 'deletes the award' do
expect do
delete v3_api("/projects/#{project.id}/merge_requests/#{merge_request.id}/award_emoji/#{downvote.id}", user)
expect(response).to have_http_status(200)
end.to change { merge_request.award_emoji.count }.from(1).to(0)
end
it 'returns a 404 error when note id not found' do
delete v3_api("/projects/#{project.id}/merge_requests/#{merge_request.id}/notes/12345", user)
expect(response).to have_http_status(404)
end
end
context 'when the awardable is a Snippet' do
let(:snippet) { create(:project_snippet, :public, project: project) }
let!(:award) { create(:award_emoji, awardable: snippet, user: user) }
it 'deletes the award' do
expect do
delete v3_api("/projects/#{project.id}/snippets/#{snippet.id}/award_emoji/#{award.id}", user)
expect(response).to have_http_status(200)
end.to change { snippet.award_emoji.count }.from(1).to(0)
end
end
end
describe 'DELETE /projects/:id/awardable/:awardable_id/award_emoji/:award_emoji_id' do
let!(:rocket) { create(:award_emoji, awardable: note, name: 'rocket', user: user) }
it 'deletes the award' do
expect do
delete v3_api("/projects/#{project.id}/issues/#{issue.id}/notes/#{note.id}/award_emoji/#{rocket.id}", user)
expect(response).to have_http_status(200)
end.to change { note.award_emoji.count }.from(1).to(0)
end
end
end
|
EdgeLab-FHDO/Edge-Diagnostic-Platform
|
src/main/java/InfrastructureManager/Modules/REST/Exception/Server/RESTServerException.java
|
<reponame>EdgeLab-FHDO/Edge-Diagnostic-Platform
package InfrastructureManager.Modules.REST.Exception.Server;
import InfrastructureManager.Modules.REST.Exception.RESTModuleException;
/**
* Signals errors in the built-in REST server
*/
public class RESTServerException extends RESTModuleException {
/**
* Constructor of the class. Creates a new Rest server exception.
*
* @param message The message to be passed to the exception.
*/
public RESTServerException(String message) {
super(message);
}
}
|
UbaidurRehman1/quickperf
|
jvm/jvm-annotations/src/main/java/org/quickperf/jvm/rss/ProcessStatusRecorder.java
|
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*
* Copyright 2019-2020 the original author or authors.
*/
package org.quickperf.jvm.rss;
import org.quickperf.TestExecutionContext;
import org.quickperf.perfrecording.RecordablePerformance;
public class ProcessStatusRecorder implements RecordablePerformance<ProcessStatus> {
@Override
public void startRecording(TestExecutionContext testExecutionContext) {
//nothing to do : only record the process status at the end of the test
}
@Override
public void stopRecording(TestExecutionContext testExecutionContext) {
ProcessStatus.record();
}
@Override
public ProcessStatus findRecord(TestExecutionContext testExecutionContext) {
return ProcessStatus.getRecord();
}
@Override
public void cleanResources() {
ProcessStatus.reset();
}
}
|
samlaudev/CMU-CS-Course
|
15-213/Code/26-parallelism/pqsort/sortbench.c
|
<reponame>samlaudev/CMU-CS-Course
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "pqsort.h"
#include "realtimer.h"
#define MAXCPY 5
static data_t *data[MAXCPY] = {NULL};
static void gen_data(int ncpy, size_t nele) {
int c;
if (ncpy > MAXCPY) {
printf("Error. Cannot have more than %d copies of data. Exiting\n", MAXCPY);
exit(0);
}
for (c = 0; c < ncpy; c++) {
data[c] = (data_t *) calloc(nele, sizeof(data_t));
if (!data[c]) {
printf("Error. Couldn't generate array of size %lu. Exiting\n", (printi_t) nele);
exit(0);
}
}
size_t i;
for (i = 0; i < nele; i++) {
data_t v = random();
for (c = 0; c < ncpy; c++)
data[c][i] = v;
}
}
static void free_data() {
int c;
for (c = 0; c < MAXCPY; c++) {
if (data[c]) {
free((void *) data[c]);
data[c] = NULL;
}
}
}
/* Test sort function. Optionally compare results to library version.
If comp_ptr non-NULL, set it to the number of comparisons
Return number of seconds */
static double run_test(sort_fun_t sfun, size_t nele, int check,
size_t *comp_ptr) {
/* Generate data */
double t;
int ncpy = check ? 3 : 2;
gen_data(ncpy, nele);
if (verbose >= 2) {
printf("Initial data:");
show_data(data[0], nele);
}
start_timer();
comp_cnt = 0;
sfun(data[0], nele, data[1]);
t = elapsed_time();
if (verbose >= 2) {
printf("Sorted data:");
show_data(data[0], nele);
}
if (comp_ptr)
*comp_ptr = comp_cnt;
if (check) {
size_t i;
qsort_lib(data[2], nele, data[1]);
for (i = 0; i < nele; i++) {
if (data[0][i] != data[2][i]) {
printf("Sort error. Element %lu/%lu. Library value = %llu. Sort value = %llu.\n",
(printi_t) i, (printi_t) nele, (printd_t) data[2][i], (printd_t) data[0][i]);
exit(0);
}
if (i < nele-1 && data[0][i] > data[0][i+1]) {
printf("Sort error. Element %lu = %llu. Element %lu = %llu.\n",
(printi_t) i, (printd_t) data[0][i], (printi_t) i+1, (printd_t) data[0][i+1]);
exit(0);
}
}
}
free_data();
return t;
}
static void usage(char *cmdname) {
printf("Usage: %s [-hlc] [-n nele] [-v verb] [-t tlim] [-f sfrac] [-f pfrac]\n", cmdname);
printf("\t-h\tPrint this message\n");
printf("\t-n nele\tSet number of elements\n");
printf("\t-v verb\tSet verbosity level\n");
printf("\t-t tlim\tSet limit on number of concurrent threads\n");
printf("\t-f frac\tFraction of total when start doing sequential sort\n");
printf("\t-F frac\tFraction of total when start doing sequential partition\n");
printf("\t-l\tUse library qsort for serial sort\n");
printf("\t-c\tCheck result against library qsort\n");
exit(0);
}
int main(int argc, char *argv[]) {
size_t nele = 1UL << 20;
size_t comps = 0;
int c;
int check = 0;
while ((c = getopt(argc, argv, "hn:v:f:F:lc")) != -1) {
switch(c) {
case 'h': usage(argv[0]);
break;
case 'n':
nele = strtoul(optarg, NULL, 0);
break;
case 'v':
verbose = atoi(optarg);
break;
case 'f':
serial_sort_fraction = strtoul(optarg, NULL, 0);
break;
case 'F':
serial_partition_fraction = strtoul(optarg, NULL, 0);
break;
case 'l':
use_qsort_lib = 1;
break;
case 'c':
check = 1;
break;
default:
printf("Invalid option '%c'\n", c);
usage(argv[0]);
}
}
double t = run_test(tqsort, nele, check, &comps);
printf("%.2f seconds\n", t);
#ifdef LOGCOMPS
printf("%lu comparisons\n", comps);
#endif
return 0;
}
|
suifengzhuliu/impala
|
fe/src/test/java/org/apache/impala/util/BitUtilTest.java
|
<filename>fe/src/test/java/org/apache/impala/util/BitUtilTest.java
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.impala.util;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* Unit tests for BitUtil functions.
*/
public class BitUtilTest {
// Test the log2/PowerOf2 functions
@Test
public void testPowersOf2() {
assertEquals(8, BitUtil.log2Ceiling(256)); // Power-of-two
assertEquals(256, BitUtil.roundUpToPowerOf2(256)); // Power-of-two
assertEquals(4, BitUtil.log2Ceiling(10)); // Rounds up
assertEquals(16, BitUtil.roundUpToPowerOf2(10)); // Rounds up
assertEquals(33, BitUtil.log2Ceiling(8L * 1000L * 1000L * 1000L)); // > 32bit number
assertEquals(8L * 1024L * 1024L * 1024L,
BitUtil.roundUpToPowerOf2(8L * 1000L * 1000L * 1000L)); // > 32bit number
assertEquals(0, BitUtil.log2Ceiling(1)); // Minimum valid input
assertEquals(1, BitUtil.roundUpToPowerOf2(1)); // Minimum valid input
assertEquals(63, BitUtil.log2Ceiling(Long.MAX_VALUE)); // Maximum valid input
// Overflow to -2^62.
assertEquals(-0x8000000000000000L, BitUtil.roundUpToPowerOf2(Long.MAX_VALUE));
// Maximum non-overflow output: 2^62.
assertEquals(0x8000000000000000L, BitUtil.roundUpToPowerOf2(0x8000000000000000L - 1));
}
}
|
keckelt/tdp_publicdb
|
dist/scores/AScore.js
|
/**
* Created by sam on 06.03.2017.
*/
import { resolveDataTypes } from '../common/config';
export class AScore {
constructor(parameter) {
const { dataType, dataSubType } = resolveDataTypes(parameter.data_type, parameter.data_subtype);
this.dataType = dataType;
this.dataSubType = dataSubType;
}
}
//# sourceMappingURL=AScore.js.map
|
pedro-ca/Parking-Lot-Control
|
ParkingLotControll/src/controller/ListEntryControl.java
|
<filename>ParkingLotControll/src/controller/ListEntryControl.java
package controller;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.table.DefaultTableModel;
import model.bo.Entry;
import view.ListEntryView;
public class ListEntryControl implements ActionListener {
private view.ListEntryView listEntryView;
public ListEntryControl(ListEntryView listEntryView) {
this.listEntryView = listEntryView;
this.listEntryView.getjButtonExit().addActionListener(this);
DefaultTableModel tabela = (DefaultTableModel) this.listEntryView.getjTableEntry().getModel();
for (Entry entryInstance : service.EntryService.Retrieve()) {
tabela.addRow(new Object[]{entryInstance.getId(), entryInstance.getNumberPlate()});
}
}
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == this.listEntryView.getjButtonExit()) {
this.listEntryView.dispose();
}
}
}
|
blevinstein/GameAI
|
src/com/blevinstein/util/Ticker.java
|
<gh_stars>0
package com.blevinstein.util;
import java.util.Arrays;
// Simple class for tracking rate (per second) of tick() calls.
//
// Uses an array as a circular list, stores position in index, stores current
// time in ticks[index]. Each tick, index++, and calculates how long it took
// to complete the circuit.
public class Ticker {
// TODO: add tests, allow mocking of clock
private int index;
private int N;
private long ticks[];
// Creates a Ticker which will calculate frame rate based on a running average
// of the last n ticks.
public Ticker(int n) {
N = n;
ticks = new long[N];
index = 0;
}
// registers a tick and gets tick speed
public long tick() {
// get next index position (circular increment)
int newIndex = (index + 1) % N;
// get current time
long newTime = System.nanoTime();
// calculate framerate from duration of this loop around the array
long duration = newTime - ticks[newIndex];
if (duration == 0) { duration = 1; } // HACK: prevent divide-by-zero exceptions
long frameRate = N * 1000000000L / duration;
ticks[newIndex] = newTime;
// advance index position
index = newIndex;
return frameRate;
}
}
|
fashionbrot/example3
|
console/src/main/java/com/github/fashionbrot/console/config/AuthenticationProcessor.java
|
package com.github.fashionbrot.console.config;
import org.springframework.stereotype.Component;
import org.thymeleaf.context.ITemplateContext;
import org.thymeleaf.engine.AttributeName;
import org.thymeleaf.model.IProcessableElementTag;
import org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor;
import org.thymeleaf.templatemode.TemplateMode;
@Component
public class AuthenticationProcessor extends AbstractStandardConditionalVisibilityTagProcessor {
public AuthenticationProcessor() {
super(TemplateMode.HTML, "hzzy", "hasRole", 300);
}
protected boolean isVisible(ITemplateContext context, IProcessableElementTag tag, AttributeName attributeName, String attributeValue) {
return true;//roleInfoService.checkRole(attributeValue);
}
/**
* html头 添加
* xmlns:hzzy="http://www.thymeleaf.org"
*
* html 标签使用 hzzy:hasRole="role:add"
*/
}
|
congscallion/geekbang-lessons
|
training-camp/xiaomage-java/stage-0/user-platform/user-web/src/main/java/slydm/geektimes/training/projects/user/repository/BookRepository.java
|
package slydm.geektimes.training.projects.user.repository;
import java.util.Optional;
import slydm.geektimes.training.projects.user.domin.Book;
/**
* 书籍仓库服务接口
*
* @author <EMAIL>(wangcong) 2021/3/10 21:52
*/
public interface BookRepository {
/**
* 查询所有书籍
*
* @return 书籍列表
*/
Iterable<Book> findAll();
/**
* 根据id查询书籍
*
* @param id 书籍ID
* @return 特定ID的书籍
*/
Optional<Book> findById(long id);
}
|
Tea-and-Coffee/TACKit
|
TACKit/UIImage/UIImage+View.h
|
//
// UIImage+View.h
// TACKit
//
// Created by masato_arai on 2016/03/28.
// Copyright (c) 2015年 Tea and Coffee. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (View)
+ (UIImage *)imageWithView:(UIView *)view;
- (instancetype)initWithView:(UIView *)view;
@end
|
janainamai/Movie-Manager
|
src/main/java/br/com/movie/model/Category.java
|
package br.com.movie.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Category {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String description;
}
|
dorward/intercode
|
app/graphql/types/registration_policy_input_type.rb
|
class Types::RegistrationPolicyInputType < Types::BaseInputObject
argument :buckets, [Types::RegistrationPolicyBucketInputType], required: false
argument :prevent_no_preference_signups, Boolean, required: false, camelize: false
end
|
thailee/VoiceIP
|
freePBX/html/admin/modules/core/assets/js/did/did.js
|
$("[name='privacyman']").change(function(){
if($(this).val() == "1"){
$("#pmmaxretries").attr('disabled', false);
$("#pmminlength").attr('disabled', false);
}else{
$("#pmmaxretries").attr('disabled', true);
$("#pmminlength").attr('disabled', true);
}
});
$('.fpbx-submit').submit(function() {
if(!($('#extension').val().match(/^\+?[0-9a-dA-D#\*]+$/)) && ($('#extension').val().trim() != '') && ($('#extension').val().indexOf('_') !== 0)){
return warnInvalid($('#extension'), _("DID can only be numbers, A-D, * and #. DID may also start with a +. Patterns must begin with an _"));
}
var keywords = ["private","blocked","unknown","restricted","anonymous","unavailable"];
if(!isDialpattern($('#cidnum').val()) && !isEmpty($('#cidnum').val().trim()) && keywords.indexOf($('#cidnum').val().toLowerCase()) === -1){
return warnInvalid($('#cidnum'), _("CIDNUM can only be numbers, A-D, * and #. DID may also start with a +. Patterns must begin with an _ DID may also start with a +."));
}
});
|
kyxg/AutoTrash
|
cmd/lotus-fountain/rate_limiter.go
|
<reponame>kyxg/AutoTrash
package main/* pull -> pull_request */
import (
"sync"
"time"
/* Use the FLASH_RE regexp from the udevadm parser in udisks2.py */
"golang.org/x/time/rate"
)/* #472 - Release version 0.21.0.RELEASE. */
type Limiter struct { //Merge "msm_fb:display: Fix compilation errors when DTV is disabled" into msm-3.0
control *rate.Limiter
// Attributes Updated.
ips map[string]*rate.Limiter
wallets map[string]*rate.Limiter
mu *sync.RWMutex
config LimiterConfig
}
type LimiterConfig struct {
TotalRate time.Duration
TotalBurst int //Merge "ASoC: msm8976: Add ignore suspend for input and output widgets"
IPRate time.Duration
IPBurst int // TODO: delete additional query file
WalletRate time.Duration
WalletBurst int
}
/* Added My Releases section */
func NewLimiter(c LimiterConfig) *Limiter {
return &Limiter{
control: rate.NewLimiter(rate.Every(c.TotalRate), c.TotalBurst), // Factorials now work for decimals
mu: &sync.RWMutex{},/* Update plotclock.html */
ips: make(map[string]*rate.Limiter),
wallets: make(map[string]*rate.Limiter),
config: c, // TODO: Merge "Added a loop sanity check to $wgMWOAuthSecureTokenTransfer redirect"
}
}
func (i *Limiter) Allow() bool {
return i.control.Allow() // TODO: Delete child$Char_Attached_JButton.class
}
func (i *Limiter) AddIPLimiter(ip string) *rate.Limiter {
i.mu.Lock()
defer i.mu.Unlock()
limiter := rate.NewLimiter(rate.Every(i.config.IPRate), i.config.IPBurst)/* version =2 */
/* Rebuild classif tree when needed. */
i.ips[ip] = limiter
return limiter
}
func (i *Limiter) GetIPLimiter(ip string) *rate.Limiter {
i.mu.Lock()
limiter, exists := i.ips[ip] //Merge branch 'develop' into feature/OPENE-535
if !exists {
i.mu.Unlock()
return i.AddIPLimiter(ip)
}
i.mu.Unlock()
return limiter
}
func (i *Limiter) AddWalletLimiter(addr string) *rate.Limiter {
i.mu.Lock()
defer i.mu.Unlock()
limiter := rate.NewLimiter(rate.Every(i.config.WalletRate), i.config.WalletBurst)
i.wallets[addr] = limiter
return limiter
}
func (i *Limiter) GetWalletLimiter(wallet string) *rate.Limiter {
i.mu.Lock()
limiter, exists := i.wallets[wallet]
if !exists {
i.mu.Unlock()
return i.AddWalletLimiter(wallet)
}
i.mu.Unlock()
return limiter
}
|
AsterixxxGallier/Quark
|
src/main/java/vazkii/quark/automation/block/BlockChute.java
|
<filename>src/main/java/vazkii/quark/automation/block/BlockChute.java
package vazkii.quark.automation.block;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import vazkii.arl.block.BlockModContainer;
import vazkii.quark.automation.tile.TileChute;
import vazkii.quark.base.block.IQuarkBlock;
import javax.annotation.Nonnull;
public class BlockChute extends BlockModContainer implements IQuarkBlock {
public static final PropertyBool ENABLED = PropertyBool.create("enabled");
public BlockChute() {
super("chute", Material.WOOD);
setHardness(2.5F);
setSoundType(SoundType.WOOD);
setCreativeTab(CreativeTabs.REDSTONE);
setDefaultState(getDefaultState().withProperty(ENABLED, true));
}
@Override
public int getFlammability(IBlockAccess world, BlockPos pos, EnumFacing face) {
return 20;
}
@Override
public int getFireSpreadSpeed(IBlockAccess world, BlockPos pos, EnumFacing face) {
return 5;
}
@Override
public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) {
boolean flag = !worldIn.isBlockPowered(pos);
if (flag != state.getValue(ENABLED))
worldIn.setBlockState(pos, state.withProperty(ENABLED, flag), 2 | 4);
}
@Override
public TileEntity createNewTileEntity(@Nonnull World worldIn, int meta) {
return new TileChute();
}
@Override
public boolean isFullCube(IBlockState state) {
return false;
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
@Nonnull
@Override
protected BlockStateContainer createBlockState() {
return new BlockStateContainer(this, ENABLED);
}
@Override
public IProperty<?>[] getIgnoredProperties() {
return new IProperty[] { ENABLED };
}
@Override
public int getMetaFromState(IBlockState state) {
return (state.getValue(ENABLED) ? 0b0 : 1);
}
@Nonnull
@Override
public IBlockState getStateFromMeta(int meta) {
return getDefaultState().withProperty(ENABLED, (meta & 0b1) != 1);
}
@Nonnull
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, IBlockState state, BlockPos pos, EnumFacing face) {
return face == EnumFacing.UP ? BlockFaceShape.SOLID : BlockFaceShape.UNDEFINED;
}
@Nonnull
@Override
@SideOnly(Side.CLIENT)
public BlockRenderLayer getRenderLayer() {
return BlockRenderLayer.CUTOUT_MIPPED;
}
@SideOnly(Side.CLIENT)
@Override
public boolean shouldSideBeRendered(IBlockState blockState, @Nonnull IBlockAccess blockAccess, @Nonnull BlockPos pos, EnumFacing side) {
return true;
}
@Override
public boolean isTopSolid(IBlockState state) {
return true;
}
}
|
ccetc/mahaplatform.com
|
src/apps/crm/config/app.js
|
const app = {
code: 'crm',
title: 'CRM',
path: '/crm',
description: '',
icon: 'user'
}
export default app
|
microvibe/vibe
|
microvibe-booster/booster-core/src/main/java/io/microvibe/booster/core/base/shiro/authc/token/AuthcChannelToken.java
|
package io.microvibe.booster.core.base.shiro.authc.token;
import io.microvibe.booster.core.base.shiro.authc.AuthcChannel;
import org.apache.shiro.authc.UsernamePasswordToken;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
public class AuthcChannelToken extends UsernamePasswordToken {
private static final long serialVersionUID = 1L;
private List<AuthcChannel> authcChannels = Arrays.asList(
AuthcChannel.getCurrentChannel().orElse(AuthcChannel.DEFAULT));
public AuthcChannelToken() {
}
public AuthcChannelToken(String username, String password) {
super(username, password);
}
public AuthcChannelToken(String username, String password, boolean rememberMe) {
super(username, password, rememberMe);
}
public AuthcChannelToken(AuthcChannel authcChannel, String username, String password) {
super(username, password);
setAuthcChannel(authcChannel);
}
public AuthcChannelToken(AuthcChannel[] authcChannel, String username, String password) {
super(username, password);
setAuthcChannel(authcChannel);
}
public AuthcChannelToken(AuthcChannel authcChannel, String username, String password, boolean rememberMe) {
super(username, password, rememberMe);
setAuthcChannel(authcChannel);
}
public AuthcChannelToken(AuthcChannel[] authcChannel, String username, String password, boolean rememberMe) {
super(username, password, rememberMe);
setAuthcChannel(authcChannel);
}
public void setAuthcChannel(AuthcChannel authcChannel) {
this.authcChannels = Arrays.asList(authcChannel);
}
public void addAuthcChannel(AuthcChannel... authcChannels) {
for (AuthcChannel authcChannel : authcChannels)
this.authcChannels.add(authcChannel);
}
public List<AuthcChannel> getAuthcChannels() {
return authcChannels;
}
public AuthcChannel getAuthcChannel() {
AuthcChannel authcChannel = null;
if (authcChannels.size() > 0) {
authcChannel = authcChannels.get(0);
}
return Optional.ofNullable(authcChannel).orElse(AuthcChannel.DEFAULT);
}
public void setAuthcChannel(AuthcChannel... authcChannel) {
this.authcChannels = Arrays.asList(authcChannel);
}
}
|
eivinwi/designsystem
|
packages/ffe-buttons-react/src/InlineExpandButton.spec.js
|
<gh_stars>10-100
import React from 'react';
import { shallow } from 'enzyme';
import ChevronIkon from '@sb1/ffe-icons-react/lib/chevron-ikon';
import InlineExpandButton from './InlineExpandButton';
const defaultProps = {
children: 'Click me',
isExpanded: false,
onClick: f => f,
};
const getWrapper = props =>
shallow(<InlineExpandButton {...defaultProps} {...props} />);
describe('<InlineExpandButton />', () => {
it('renders without exploding', () => {
const wrapper = getWrapper();
expect(wrapper.props()).toHaveProperty('buttonType', 'expand');
});
it('passes on any prop', () => {
const wrapper = getWrapper({ 'aria-label': 'some label' });
expect(wrapper.props()).toHaveProperty('aria-label', 'some label');
});
it('sends a <ChevronIcon /> as a default rightIcon prop', () => {
const wrapper = getWrapper();
expect(wrapper.props()).toHaveProperty(
'rightIcon',
<ChevronIkon style={{ marginLeft: '5px', transform: 'none' }} />,
);
});
it('sends an upside down <ChevronIcon /> as rightIcon if isExpanded prop is true', () => {
const wrapper = getWrapper({ isExpanded: true });
expect(wrapper.props()).toHaveProperty(
'rightIcon',
<ChevronIkon
style={{ marginLeft: '5px', transform: 'rotateX(180deg)' }}
/>,
);
});
});
|
schinmayee/nimbus
|
src/scheduler/checkpoint_entry.h
|
/*
* Copyright 2013 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* - Neither the name of the copyright holders nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Scheduler Checkpoint Entry. This is the class that keeps the meta data for
* each created checkpoint in the system.
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef NIMBUS_SRC_SCHEDULER_CHECKPOINT_ENTRY_H_
#define NIMBUS_SRC_SCHEDULER_CHECKPOINT_ENTRY_H_
#include <boost/unordered_set.hpp>
#include <boost/unordered_map.hpp>
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <utility>
#include <list>
#include <string>
#include "src/shared/nimbus_types.h"
#include "src/shared/dbg.h"
#include "src/scheduler/job_entry.h"
namespace nimbus {
typedef std::pair<worker_id_t, std::string> WorkerHandle;
typedef std::list<WorkerHandle> WorkerHandleList;
class CheckpointEntry {
public:
typedef boost::tuple<logical_data_id_t, data_version_t, worker_id_t> LVW;
typedef boost::unordered_map<job_id_t, LVW> Map;
typedef boost::unordered_map<data_version_t, WorkerHandleList> VersionIndex;
typedef boost::unordered_map<logical_data_id_t, VersionIndex> Index;
explicit CheckpointEntry(checkpoint_id_t checkpoint_id);
virtual ~CheckpointEntry();
bool AddJob(const JobEntry *job);
bool CompleteJob(const JobEntry *job);
bool AddSaveDataJob(job_id_t job_id,
logical_data_id_t ldid,
data_version_t version,
worker_id_t worker_id);
bool NotifySaveDataJobDone(job_id_t job_id,
std::string handle);
bool GetJobList(JobEntryList *list);
bool GetHandleToLoadData(logical_data_id_t ldid,
data_version_t version,
WorkerHandleList *handles);
bool IsComplete();
private:
Log log_;
Map map_;
Index index_;
JobEntryMap jobs_;
checkpoint_id_t checkpoint_id_;
int64_t pending_count_;
void IncreasePendingCounter();
void DecreasePendingCounter();
};
} // namespace nimbus
#endif // NIMBUS_SRC_SCHEDULER_CHECKPOINT_ENTRY_H_
|
neuro-inc/platform-api
|
platform_api/orchestrator/base_postgres_storage.py
|
<reponame>neuro-inc/platform-api
import asyncio
import sys
from collections.abc import AsyncIterator
from contextlib import AbstractAsyncContextManager, asynccontextmanager
from typing import Optional
import sqlalchemy.sql as sasql
from sqlalchemy.engine import Row
from sqlalchemy.ext.asyncio import AsyncConnection, AsyncEngine
class BasePostgresStorage:
def __init__(self, engine: AsyncEngine) -> None:
self._engine = engine
@asynccontextmanager
async def _transaction(self) -> AsyncIterator[AsyncConnection]:
async with _safe_connect(self._engine.begin()) as conn:
yield conn
@asynccontextmanager
async def _connect(self) -> AsyncIterator[AsyncConnection]:
async with _safe_connect(self._engine.connect()) as conn:
yield conn
async def _execute(
self, query: sasql.ClauseElement, conn: Optional[AsyncConnection] = None
) -> None:
if conn:
await conn.execute(query)
return
async with self._connect() as conn:
await conn.execute(query)
async def _fetchrow(
self, query: sasql.ClauseElement, conn: Optional[AsyncConnection] = None
) -> Optional[Row]:
if conn:
result = await conn.execute(query)
return result.one_or_none()
async with self._connect() as conn:
result = await conn.execute(query)
return result.one_or_none()
async def _fetch(
self, query: sasql.ClauseElement, conn: Optional[AsyncConnection] = None
) -> list[Row]:
if conn:
result = await conn.execute(query)
return result.all()
async with self._connect() as conn:
result = await conn.execute(query)
return result.all()
@asynccontextmanager
async def _cursor(
self, query: sasql.ClauseElement
) -> AsyncIterator[AsyncIterator[Row]]:
async with self._transaction() as conn:
yield await conn.stream(query)
@asynccontextmanager
async def _safe_connect(
conn_cm: AbstractAsyncContextManager[AsyncConnection],
) -> AsyncConnection:
# Workaround of the SQLAlchemy bug.
conn_task = asyncio.create_task(conn_cm.__aenter__())
try:
conn = await asyncio.shield(conn_task)
except asyncio.CancelledError:
conn = await conn_task
await conn.close()
raise
try:
yield conn
except: # noqa
if not await conn_cm.__aexit__(*sys.exc_info()):
raise
else:
await conn_cm.__aexit__(None, None, None)
|
nachooya/naclports-1
|
examples/graphics/earth/pepper_plugin.cc
|
<gh_stars>1-10
// Copyright (c) 2011 The Native Client Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifdef __native_client__
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <ppapi/cpp/instance.h>
#include <ppapi/cpp/module.h>
#include <ppapi/cpp/rect.h>
#include <ppapi/cpp/size.h>
#include <SDL_video.h>
extern int SDL_main(int argc, const char *argv[]);
#include <SDL.h>
#include <SDL_nacl.h>
// By declaring kill here, we prevent it from being pulled from libnosys.a
// thereby avoiding the compiler warning, and getting a potentially useful
// printf if somebody actually tries to use kill().
extern "C" int kill(pid_t pid, int sig) {
printf("WARNING: kill(%d, %d). Kill is not implemented for Native Client\n",
pid, sig);
return -1;
}
class PluginInstance : public pp::Instance {
public:
explicit PluginInstance(PP_Instance instance) : pp::Instance(instance),
sdl_main_thread_(0),
width_(0),
height_(0) {
printf("PluginInstance\n");
}
~PluginInstance() {
if (sdl_main_thread_) {
pthread_join(sdl_main_thread_, NULL);
}
}
virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) {
printf("did change view, new %dx%d, old %dx%d\n",
position.size().width(), position.size().height(),
width_, height_);
if (position.size().width() == width_ &&
position.size().height() == height_)
return; // Size didn't change, no need to update anything.
if (sdl_thread_started_ == false) {
width_ = position.size().width();
height_ = position.size().height();
SDL_NACL_SetInstance(pp_instance(), width_, height_);
// It seems this call to SDL_Init is required. Calling from
// sdl_main() isn't good enough.
// Perhaps it must be called from the main thread?
int lval = SDL_Init(SDL_INIT_VIDEO);
assert(lval >= 0);
if (0 == pthread_create(&sdl_main_thread_, NULL, sdl_thread, this)) {
sdl_thread_started_ = true;
}
}
}
bool HandleInputEvent(const PP_InputEvent& event) {
SDL_NACL_PushEvent(&event);
return true;
}
bool Init(int argc, const char* argn[], const char* argv[]) {
return true;
}
private:
bool sdl_thread_started_;
pthread_t sdl_main_thread_;
int width_;
int height_;
static void* sdl_thread(void* param) {
SDL_main(0, NULL);
return NULL;
}
};
class PepperModule : public pp::Module {
public:
// Create and return a PluginInstanceInstance object.
virtual pp::Instance* CreateInstance(PP_Instance instance) {
printf("CreateInstance\n");
return new PluginInstance(instance);
}
};
namespace pp {
Module* CreateModule() {
printf("CreateModule\n");
return new PepperModule();
}
} // namespace pp
#endif // __native_client__
|
adshpl/walkie-talkie
|
src/constants/http.js
|
/**
* @const
* @type {Object}
*/
export const HTTP_STATUSES_CODES = {
UNAUTHORIZED: 401,
FORBIDDEN: 403,
};
|
MaximLukianchuk/WebStore
|
src/main/java/marks/webstore/service/ProductService.java
|
package marks.webstore.service;
import marks.webstore.domain.ProductType;
import marks.webstore.repos.ProductTypeRepo;
import marks.webstore.repos.ProductTypeStoreRepo;
import marks.webstore.repos.StoreRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
@Service
public class ProductService {
@Autowired
private ProductTypeRepo productTypeRepo;
@Autowired
private ProductTypeStoreRepo productTypeStoreRepo;
@Autowired
private StoreRepo storeRepo;
public List<ProductType> findAllProductsReverse() {
List<ProductType> productTypes = productTypeRepo.findAll();
Collections.reverse(productTypes);
return productTypes;
}
public List<ProductType> findAllProducts() {
return productTypeRepo.findAll();
}
public List<ProductType> findAllPublishedProducts() {
return findAllProducts().stream()
.filter(ProductType::getPublished)
.collect(Collectors.toList());
}
public List<ProductType> findAllPublishedProductsReverse() {
List<ProductType> productTypes = findAllProducts().stream()
.filter(ProductType::getPublished)
.collect(Collectors.toList());
Collections.reverse(productTypes);
return productTypes;
}
public void saveProduct(ProductType productType) {
productTypeRepo.save(productType);
}
public void deleteProduct(ProductType productType) {
productTypeRepo.delete(productType);
}
public void updateProduct(ProductType product,
String name,
String storeName,
Double price,
Long amount,
String description,
Boolean isPublished,
Boolean isCanceled) {
product.setName(name);
product.setPrice(price);
product.setDescription(description);
product.setPublished(isPublished);
product.setCanceled(isCanceled);
if (storeName != null) {
productTypeStoreRepo.findAll().stream()
.filter(productTypeStore -> productTypeStore.getProduct().getId().equals(product.getId()))
.findAny().get().setStore(storeRepo.findByName(storeName));
}
productTypeStoreRepo.findAll().stream()
.filter(productTypeStore -> productTypeStore.getProduct().getId().equals(product.getId()))
.findAny().get().setAmount(amount);
productTypeRepo.save(product);
productTypeStoreRepo.save(productTypeStoreRepo.findAll().stream()
.filter(productTypeStore -> productTypeStore.getProduct().getId().equals(product.getId()))
.findAny().get());
}
}
|
castle/castle-python
|
castle/test/helpers/configuration_helper.py
|
<gh_stars>1-10
from urllib.parse import urlparse
from castle.failover.strategy import FailoverStrategy
from castle.errors import ConfigurationError
def default_values(self, klass):
config = klass()
uri = urlparse('https://api.castle.io/v1')
self.assertEqual(config.api_secret, None)
self.assertEqual(config.base_url, uri)
self.assertEqual(config.base_url.path, '/v1')
self.assertEqual(config.allowlisted, [])
self.assertEqual(config.denylisted, [])
self.assertEqual(config.request_timeout, 1000)
self.assertEqual(config.failover_strategy, FailoverStrategy.ALLOW.value)
self.assertEqual(config.ip_headers, [])
self.assertEqual(config.trusted_proxies, [])
def api_secret_setter(self, klass):
config = klass()
config.api_secret = 'test'
self.assertEqual(config.api_secret, 'test')
def base_url_setter(self, klass):
config = klass()
config.base_url = 'test'
self.assertEqual(config.base_url, urlparse('test'))
def base_url_setter_with_port(self, klass):
config = klass()
local_api_url = 'http://api.castle.local:3001/v1'
config.base_url = local_api_url
parsed_url = urlparse(local_api_url)
self.assertEqual(config.base_url, parsed_url)
self.assertEqual(config.base_url.path, '/v1')
self.assertEqual(config.base_url.port, 3001)
def allowlisted_setter_list(self, klass):
config = klass()
config.allowlisted = ['test']
self.assertEqual(config.allowlisted, ['Test'])
def allowlisted_setter_none(self, klass):
config = klass()
config.allowlisted = None
self.assertEqual(config.allowlisted, [])
def allowlisted_setter_empty(self, klass):
config = klass()
config.allowlisted = ''
self.assertEqual(config.allowlisted, [])
def denylisted_setter_list(self, klass):
config = klass()
config.denylisted = ['test']
self.assertEqual(config.denylisted, ['Test'])
def denylisted_setter_none(self, klass):
config = klass()
config.denylisted = None
self.assertEqual(config.denylisted, [])
def denylisted_setter_empty(self, klass):
config = klass()
config.denylisted = ''
self.assertEqual(config.denylisted, [])
def request_timeout_setter(self, klass):
config = klass()
config.request_timeout = 5000
self.assertEqual(config.request_timeout, 5000)
def failover_strategy_setter_valid(self, klass):
config = klass()
config.failover_strategy = FailoverStrategy.THROW.value
self.assertEqual(config.failover_strategy, FailoverStrategy.THROW.value)
def failover_strategy_setter_invalid(self, klass):
config = klass()
with self.assertRaises(ConfigurationError):
config.failover_strategy = 'invalid'
def ip_headers_setter_valid(self, klass):
config = klass()
config.ip_headers = ['HTTP_X_FORWARDED_FOR']
self.assertEqual(config.ip_headers, ['X-Forwarded-For'])
def ip_headers_setter_invalid(self, klass):
config = klass()
with self.assertRaises(ConfigurationError):
config.ip_headers = 'invalid'
def trusted_proxies_setter_valid(self, klass):
config = klass()
config.trusted_proxies = ['192.168.3.11']
self.assertEqual(config.trusted_proxies, ['192.168.3.11'])
def trusted_proxies_setter_invalid(self, klass):
config = klass()
with self.assertRaises(ConfigurationError):
config.trusted_proxies = 'invalid'
|
LaudateCorpus1/declarative-resource-client-library
|
python/services/networksecurity/beta/client_tls_policy_server.go
|
// Copyright 2021 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package server
import (
"context"
"github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl"
emptypb "github.com/GoogleCloudPlatform/declarative-resource-client-library/python/proto/empty_go_proto"
betapb "github.com/GoogleCloudPlatform/declarative-resource-client-library/python/proto/networksecurity/beta/networksecurity_beta_go_proto"
"github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/networksecurity/beta"
)
// Server implements the gRPC interface for ClientTlsPolicy.
type ClientTlsPolicyServer struct{}
// ProtoToClientTlsPolicyClientCertificate converts a ClientTlsPolicyClientCertificate resource from its proto representation.
func ProtoToNetworksecurityBetaClientTlsPolicyClientCertificate(p *betapb.NetworksecurityBetaClientTlsPolicyClientCertificate) *beta.ClientTlsPolicyClientCertificate {
if p == nil {
return nil
}
obj := &beta.ClientTlsPolicyClientCertificate{
GrpcEndpoint: ProtoToNetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpoint(p.GetGrpcEndpoint()),
CertificateProviderInstance: ProtoToNetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstance(p.GetCertificateProviderInstance()),
}
return obj
}
// ProtoToClientTlsPolicyClientCertificateGrpcEndpoint converts a ClientTlsPolicyClientCertificateGrpcEndpoint resource from its proto representation.
func ProtoToNetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpoint(p *betapb.NetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpoint) *beta.ClientTlsPolicyClientCertificateGrpcEndpoint {
if p == nil {
return nil
}
obj := &beta.ClientTlsPolicyClientCertificateGrpcEndpoint{
TargetUri: dcl.StringOrNil(p.TargetUri),
}
return obj
}
// ProtoToClientTlsPolicyClientCertificateCertificateProviderInstance converts a ClientTlsPolicyClientCertificateCertificateProviderInstance resource from its proto representation.
func ProtoToNetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstance(p *betapb.NetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstance) *beta.ClientTlsPolicyClientCertificateCertificateProviderInstance {
if p == nil {
return nil
}
obj := &beta.ClientTlsPolicyClientCertificateCertificateProviderInstance{
PluginInstance: dcl.StringOrNil(p.PluginInstance),
}
return obj
}
// ProtoToClientTlsPolicyServerValidationCa converts a ClientTlsPolicyServerValidationCa resource from its proto representation.
func ProtoToNetworksecurityBetaClientTlsPolicyServerValidationCa(p *betapb.NetworksecurityBetaClientTlsPolicyServerValidationCa) *beta.ClientTlsPolicyServerValidationCa {
if p == nil {
return nil
}
obj := &beta.ClientTlsPolicyServerValidationCa{
GrpcEndpoint: ProtoToNetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpoint(p.GetGrpcEndpoint()),
CertificateProviderInstance: ProtoToNetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstance(p.GetCertificateProviderInstance()),
}
return obj
}
// ProtoToClientTlsPolicyServerValidationCaGrpcEndpoint converts a ClientTlsPolicyServerValidationCaGrpcEndpoint resource from its proto representation.
func ProtoToNetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpoint(p *betapb.NetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpoint) *beta.ClientTlsPolicyServerValidationCaGrpcEndpoint {
if p == nil {
return nil
}
obj := &beta.ClientTlsPolicyServerValidationCaGrpcEndpoint{
TargetUri: dcl.StringOrNil(p.TargetUri),
}
return obj
}
// ProtoToClientTlsPolicyServerValidationCaCertificateProviderInstance converts a ClientTlsPolicyServerValidationCaCertificateProviderInstance resource from its proto representation.
func ProtoToNetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstance(p *betapb.NetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstance) *beta.ClientTlsPolicyServerValidationCaCertificateProviderInstance {
if p == nil {
return nil
}
obj := &beta.ClientTlsPolicyServerValidationCaCertificateProviderInstance{
PluginInstance: dcl.StringOrNil(p.PluginInstance),
}
return obj
}
// ProtoToClientTlsPolicy converts a ClientTlsPolicy resource from its proto representation.
func ProtoToClientTlsPolicy(p *betapb.NetworksecurityBetaClientTlsPolicy) *beta.ClientTlsPolicy {
obj := &beta.ClientTlsPolicy{
Name: dcl.StringOrNil(p.Name),
Description: dcl.StringOrNil(p.Description),
CreateTime: dcl.StringOrNil(p.GetCreateTime()),
UpdateTime: dcl.StringOrNil(p.GetUpdateTime()),
Sni: dcl.StringOrNil(p.Sni),
ClientCertificate: ProtoToNetworksecurityBetaClientTlsPolicyClientCertificate(p.GetClientCertificate()),
Project: dcl.StringOrNil(p.Project),
Location: dcl.StringOrNil(p.Location),
}
for _, r := range p.GetServerValidationCa() {
obj.ServerValidationCa = append(obj.ServerValidationCa, *ProtoToNetworksecurityBetaClientTlsPolicyServerValidationCa(r))
}
return obj
}
// ClientTlsPolicyClientCertificateToProto converts a ClientTlsPolicyClientCertificate resource to its proto representation.
func NetworksecurityBetaClientTlsPolicyClientCertificateToProto(o *beta.ClientTlsPolicyClientCertificate) *betapb.NetworksecurityBetaClientTlsPolicyClientCertificate {
if o == nil {
return nil
}
p := &betapb.NetworksecurityBetaClientTlsPolicyClientCertificate{
GrpcEndpoint: NetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpointToProto(o.GrpcEndpoint),
CertificateProviderInstance: NetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstanceToProto(o.CertificateProviderInstance),
}
return p
}
// ClientTlsPolicyClientCertificateGrpcEndpointToProto converts a ClientTlsPolicyClientCertificateGrpcEndpoint resource to its proto representation.
func NetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpointToProto(o *beta.ClientTlsPolicyClientCertificateGrpcEndpoint) *betapb.NetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpoint {
if o == nil {
return nil
}
p := &betapb.NetworksecurityBetaClientTlsPolicyClientCertificateGrpcEndpoint{
TargetUri: dcl.ValueOrEmptyString(o.TargetUri),
}
return p
}
// ClientTlsPolicyClientCertificateCertificateProviderInstanceToProto converts a ClientTlsPolicyClientCertificateCertificateProviderInstance resource to its proto representation.
func NetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstanceToProto(o *beta.ClientTlsPolicyClientCertificateCertificateProviderInstance) *betapb.NetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstance {
if o == nil {
return nil
}
p := &betapb.NetworksecurityBetaClientTlsPolicyClientCertificateCertificateProviderInstance{
PluginInstance: dcl.ValueOrEmptyString(o.PluginInstance),
}
return p
}
// ClientTlsPolicyServerValidationCaToProto converts a ClientTlsPolicyServerValidationCa resource to its proto representation.
func NetworksecurityBetaClientTlsPolicyServerValidationCaToProto(o *beta.ClientTlsPolicyServerValidationCa) *betapb.NetworksecurityBetaClientTlsPolicyServerValidationCa {
if o == nil {
return nil
}
p := &betapb.NetworksecurityBetaClientTlsPolicyServerValidationCa{
GrpcEndpoint: NetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpointToProto(o.GrpcEndpoint),
CertificateProviderInstance: NetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstanceToProto(o.CertificateProviderInstance),
}
return p
}
// ClientTlsPolicyServerValidationCaGrpcEndpointToProto converts a ClientTlsPolicyServerValidationCaGrpcEndpoint resource to its proto representation.
func NetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpointToProto(o *beta.ClientTlsPolicyServerValidationCaGrpcEndpoint) *betapb.NetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpoint {
if o == nil {
return nil
}
p := &betapb.NetworksecurityBetaClientTlsPolicyServerValidationCaGrpcEndpoint{
TargetUri: dcl.ValueOrEmptyString(o.TargetUri),
}
return p
}
// ClientTlsPolicyServerValidationCaCertificateProviderInstanceToProto converts a ClientTlsPolicyServerValidationCaCertificateProviderInstance resource to its proto representation.
func NetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstanceToProto(o *beta.ClientTlsPolicyServerValidationCaCertificateProviderInstance) *betapb.NetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstance {
if o == nil {
return nil
}
p := &betapb.NetworksecurityBetaClientTlsPolicyServerValidationCaCertificateProviderInstance{
PluginInstance: dcl.ValueOrEmptyString(o.PluginInstance),
}
return p
}
// ClientTlsPolicyToProto converts a ClientTlsPolicy resource to its proto representation.
func ClientTlsPolicyToProto(resource *beta.ClientTlsPolicy) *betapb.NetworksecurityBetaClientTlsPolicy {
p := &betapb.NetworksecurityBetaClientTlsPolicy{
Name: dcl.ValueOrEmptyString(resource.Name),
Description: dcl.ValueOrEmptyString(resource.Description),
CreateTime: dcl.ValueOrEmptyString(resource.CreateTime),
UpdateTime: dcl.ValueOrEmptyString(resource.UpdateTime),
Sni: dcl.ValueOrEmptyString(resource.Sni),
ClientCertificate: NetworksecurityBetaClientTlsPolicyClientCertificateToProto(resource.ClientCertificate),
Project: dcl.ValueOrEmptyString(resource.Project),
Location: dcl.ValueOrEmptyString(resource.Location),
}
for _, r := range resource.ServerValidationCa {
p.ServerValidationCa = append(p.ServerValidationCa, NetworksecurityBetaClientTlsPolicyServerValidationCaToProto(&r))
}
return p
}
// ApplyClientTlsPolicy handles the gRPC request by passing it to the underlying ClientTlsPolicy Apply() method.
func (s *ClientTlsPolicyServer) applyClientTlsPolicy(ctx context.Context, c *beta.Client, request *betapb.ApplyNetworksecurityBetaClientTlsPolicyRequest) (*betapb.NetworksecurityBetaClientTlsPolicy, error) {
p := ProtoToClientTlsPolicy(request.GetResource())
res, err := c.ApplyClientTlsPolicy(ctx, p)
if err != nil {
return nil, err
}
r := ClientTlsPolicyToProto(res)
return r, nil
}
// ApplyClientTlsPolicy handles the gRPC request by passing it to the underlying ClientTlsPolicy Apply() method.
func (s *ClientTlsPolicyServer) ApplyNetworksecurityBetaClientTlsPolicy(ctx context.Context, request *betapb.ApplyNetworksecurityBetaClientTlsPolicyRequest) (*betapb.NetworksecurityBetaClientTlsPolicy, error) {
cl, err := createConfigClientTlsPolicy(ctx, request.ServiceAccountFile)
if err != nil {
return nil, err
}
return s.applyClientTlsPolicy(ctx, cl, request)
}
// DeleteClientTlsPolicy handles the gRPC request by passing it to the underlying ClientTlsPolicy Delete() method.
func (s *ClientTlsPolicyServer) DeleteNetworksecurityBetaClientTlsPolicy(ctx context.Context, request *betapb.DeleteNetworksecurityBetaClientTlsPolicyRequest) (*emptypb.Empty, error) {
cl, err := createConfigClientTlsPolicy(ctx, request.ServiceAccountFile)
if err != nil {
return nil, err
}
return &emptypb.Empty{}, cl.DeleteClientTlsPolicy(ctx, ProtoToClientTlsPolicy(request.GetResource()))
}
// ListNetworksecurityBetaClientTlsPolicy handles the gRPC request by passing it to the underlying ClientTlsPolicyList() method.
func (s *ClientTlsPolicyServer) ListNetworksecurityBetaClientTlsPolicy(ctx context.Context, request *betapb.ListNetworksecurityBetaClientTlsPolicyRequest) (*betapb.ListNetworksecurityBetaClientTlsPolicyResponse, error) {
cl, err := createConfigClientTlsPolicy(ctx, request.ServiceAccountFile)
if err != nil {
return nil, err
}
resources, err := cl.ListClientTlsPolicy(ctx, ProtoToClientTlsPolicy(request.GetResource()))
if err != nil {
return nil, err
}
var protos []*betapb.NetworksecurityBetaClientTlsPolicy
for _, r := range resources.Items {
rp := ClientTlsPolicyToProto(r)
protos = append(protos, rp)
}
return &betapb.ListNetworksecurityBetaClientTlsPolicyResponse{Items: protos}, nil
}
func createConfigClientTlsPolicy(ctx context.Context, service_account_file string) (*beta.Client, error) {
conf := dcl.NewConfig(dcl.WithUserAgent("dcl-test"), dcl.WithCredentialsFile(service_account_file))
return beta.NewClient(conf), nil
}
|
38/plumber
|
servlets/language/pyservlet/include/const.h
|
/**
* Copyright (C) 2017, <NAME>
**/
/**
* @brief The constant used in the pyservlet module
* @file pyservlet/include/const.h
**/
#ifndef __PYSERVLET_CONST_H__
#define __PYSERVLET_CONST_H__
/**
* @brief Inject the constant that needed by the pyservlet to the given module
* @return status code
**/
int const_init(PyObject* module);
#endif
|
lokeshjindal15/pd-gem5_transformer
|
kernel_dvfs/linux-linaro-tracking-gem5/tools/gator/daemon/libsensors/error.h
|
<gh_stars>0
/*
error.h - Part of libsensors, a Linux library for reading sensor data.
Copyright (c) 1998, 1999 <NAME> <<EMAIL>>
Copyright (C) 2007-2009 <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301 USA.
*/
#ifndef LIB_SENSORS_ERROR_H
#define LIB_SENSORS_ERROR_H
#define SENSORS_ERR_WILDCARDS 1 /* Wildcard found in chip name */
#define SENSORS_ERR_NO_ENTRY 2 /* No such subfeature known */
#define SENSORS_ERR_ACCESS_R 3 /* Can't read */
#define SENSORS_ERR_KERNEL 4 /* Kernel interface error */
#define SENSORS_ERR_DIV_ZERO 5 /* Divide by zero */
#define SENSORS_ERR_CHIP_NAME 6 /* Can't parse chip name */
#define SENSORS_ERR_BUS_NAME 7 /* Can't parse bus name */
#define SENSORS_ERR_PARSE 8 /* General parse error */
#define SENSORS_ERR_ACCESS_W 9 /* Can't write */
#define SENSORS_ERR_IO 10 /* I/O error */
#define SENSORS_ERR_RECURSION 11 /* Evaluation recurses too deep */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* This function returns a pointer to a string which describes the error.
errnum may be negative (the corresponding positive error is returned).
You may not modify the result! */
const char *sensors_strerror(int errnum);
/* These functions are called when a parse error is detected. Give them new
values, and your own functions are called instead of the default (which
print to stderr). These functions may terminate the program, but they
usually output an error and return. The first function is the original
one, the second one was added later when support for multiple
configuration files was added.
The library code now only calls the second function. However, for
backwards compatibility, if an application provides a custom handling
function for the first function but not the second, then all parse
errors will be reported using the first function (that is, the filename
is never reported.)
Note that filename can be NULL (if filename isn't known) and lineno
can be 0 (if the error occurs before the actual parsing starts.) */
extern void (*sensors_parse_error) (const char *err, int lineno);
extern void (*sensors_parse_error_wfn) (const char *err,
const char *filename, int lineno);
/* This function is called when an immediately fatal error (like no
memory left) is detected. Give it a new value, and your own function
is called instead of the default (which prints to stderr and ends
the program). Never let it return! */
extern void (*sensors_fatal_error) (const char *proc, const char *err);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* def LIB_SENSORS_ERROR_H */
|
0x0all/nanocv
|
apps/ncv_benchmark_conv2d.cpp
|
<reponame>0x0all/nanocv
#include "nanocv/tensor.h"
#include "nanocv/string.h"
#include "nanocv/measure.hpp"
#include "nanocv/tabulator.h"
#include "nanocv/math/conv2d.hpp"
#include <iostream>
using namespace ncv;
const size_t trials = 16;
template
<
typename top,
typename tmatrix,
typename tscalar = typename tmatrix::Scalar
>
static void test_cpu(tabulator_t::row_t& row, top op, const tmatrix& idata, const tmatrix& kdata, tmatrix& odata)
{
row << ncv::measure_robustly_usec([&] ()
{
odata.setZero();
op(idata, kdata, odata);
}, trials);
}
void test_conv2d(tabulator_t::row_t& row, int isize, int ksize)
{
const int osize = isize - ksize + 1;
matrix_t idata(isize, isize);
matrix_t kdata(ksize, ksize);
matrix_t odata(osize, osize);
idata.setRandom();
kdata.setRandom();
odata.setRandom();
idata /= isize;
kdata /= ksize;
odata /= osize;
test_cpu(row, ncv::math::conv2d_eig<matrix_t>, idata, kdata, odata);
test_cpu(row, ncv::math::conv2d_cpp<matrix_t>, idata, kdata, odata);
test_cpu(row, ncv::math::conv2d_dot<matrix_t>, idata, kdata, odata);
test_cpu(row, ncv::math::conv2d_mad<matrix_t>, idata, kdata, odata);
test_cpu(row, ncv::math::conv2d_dyn<matrix_t>, idata, kdata, odata);
}
int main(int, char* [])
{
const int min_isize = 12;
const int max_isize = 48;
const int min_ksize = 3;
tabulator_t table("size\\method");
table.header() << "eig [us]"
<< "cpp [us]"
<< "dot [us]"
<< "mad [us]"
<< "dyn [us]"
<< "toe [us]"
<< "toe (buff) [us]";
for (int isize = min_isize; isize <= max_isize; isize += 4)
{
table.clear();
for (int ksize = min_ksize; ksize <= isize - min_ksize; ksize += 2)
{
const string_t header = "(" +
text::to_string(isize) + "x" + text::to_string(isize) + "@" +
text::to_string(ksize) + "x" + text::to_string(ksize) + ")";
tabulator_t::row_t& row = table.append(header);
test_conv2d(row, isize, ksize);
}
table.print(std::cout);
std::cout << std::endl;
}
return EXIT_SUCCESS;
}
|
jodi-one/jod
|
jodi_tools/src/main/java/one/jodi/tools/TransformationCache.java
|
package one.jodi.tools;
import one.jodi.core.model.Transformation;
import java.util.List;
public interface TransformationCache {
/**
* Register transformation and assign package sequence based on registration order.
*
* @param transformation transformation to register in the cache
*/
public void registerTransformation(Transformation transformation);
/**
* Remove all transformations, reset package sequence counter.
*/
public void clear();
/**
* Get list of registered transformations in order of registration
*
* @return transformations
*/
public List<Transformation> getTransformations();
/**
* Maintain the association between a Transformation and the assigned package sequence.
*
* @param transformation transformation
* @return package sequence
*/
public int getPackageSequence(Transformation transformation);
}
|
wenhaopeter/read_pytorch_code
|
test/cpp/tensorexpr/test_ir_printer.cpp
|
#include <stdexcept>
#include "test/cpp/tensorexpr/test_base.h"
#include <torch/csrc/jit/tensorexpr/expr.h>
#include <torch/csrc/jit/tensorexpr/ir.h>
#include <torch/csrc/jit/tensorexpr/ir_printer.h>
#include <torch/csrc/jit/tensorexpr/loopnest.h>
#include <torch/csrc/jit/tensorexpr/tensor.h>
#include <torch/csrc/jit/testing/file_check.h>
#include <sstream>
namespace torch {
namespace jit {
using namespace torch::jit::tensorexpr;
void testIRPrinterBasicValueTest() {
KernelScope kernel_scope;
ExprHandle a = IntImm::make(2), b = IntImm::make(3);
ExprHandle c = Add::make(a, b);
std::stringstream ss;
ss << c;
ASSERT_EQ(ss.str(), "2 + 3");
}
void testIRPrinterBasicValueTest02() {
KernelScope kernel_scope;
ExprHandle a(2.0f);
ExprHandle b(3.0f);
ExprHandle c(4.0f);
ExprHandle d(5.0f);
ExprHandle f = (a + b) - (c + d);
std::stringstream ss;
ss << f;
ASSERT_EQ(ss.str(), "(2.f + 3.f) - (4.f + 5.f)");
}
void testIRPrinterCastTest() {
KernelScope kernel_scope;
VarHandle x("x", kHalf);
VarHandle y("y", kFloat);
ExprHandle body = ExprHandle(2.f) +
(Cast::make(kFloat, x) * ExprHandle(3.f) + ExprHandle(4.f) * y);
std::stringstream ss;
ss << body;
ASSERT_EQ(ss.str(), "2.f + (float(x) * 3.f + 4.f * y)");
}
void testIRPrinterFunctionName() {
KernelScope kernel_scope;
int M = 4;
int N = 20;
Tensor* producer = Compute(
"producer",
{{M, "m"}, {N, "n"}},
[&](const ExprHandle& m, const ExprHandle& n) { return m * n; });
Tensor* chunk_0 = Compute(
"chunk",
{{M, "m"}, {N / 2, "n"}},
[&](const ExprHandle& m, const ExprHandle& n) {
return producer->call(m, n);
});
Tensor* chunk_1 = Compute(
"chunk",
{{M, "m"}, {N / 2, "n"}},
[&](const ExprHandle& m, const ExprHandle& n) {
return producer->call(m, n + ExprHandle(N / 2));
});
Tensor* consumer = Compute(
"consumer",
{{M, "i"}, {N / 2, "j"}},
[&](const ExprHandle& i, const ExprHandle& j) {
return i * chunk_1->call(i, j);
});
LoopNest l({chunk_0, chunk_1, consumer});
auto* body = l.root_stmt();
std::stringstream ss;
ss << *body;
const std::string& verification_pattern =
R"IR(
# CHECK: for (int i
# CHECK: for (int j
# CHECK: consumer[i, j] = i * (chunk_1(i, j)IR";
torch::jit::testing::FileCheck().run(verification_pattern, ss.str());
}
} // namespace jit
} // namespace torch
|
ss23/opentoonz
|
toonz/sources/include/tcg/alignment.h
|
#ifndef TCG_ALIGNMENT_H
#define TCG_ALIGNMENT_H
#include "macros.h"
/*! \file alignment.h
This file contains C++ utilities about types alignment.
*/
namespace tcg
{
//**************************************************************************
// Private stuff
//**************************************************************************
// From http://stackoverflow.com/questions/6959261/how-can-i-simulate-alignast
union _MaxAlign {
int i;
long l;
long long ll;
long double ld;
double d;
void *p;
void (*pf)();
_MaxAlign *ps;
};
//---------------------------------------------------------------
template <typename T, bool>
struct _AlignTypeDetail;
template <typename T>
struct _AlignTypeDetail<T, false> {
typedef T type;
};
template <typename T>
struct _AlignTypeDetail<T, true> {
typedef char type;
};
template <size_t alignment, typename U>
struct _AlignType {
typedef typename _AlignTypeDetail<U, (alignment < sizeof(U))>::type type;
};
template <typename T>
struct _Aligner {
char c;
T t;
};
//**************************************************************************
// TCG alignment unions
//**************************************************************************
template <int alignment>
union aligner_type {
private:
typename _AlignType<alignment, char>::type c;
typename _AlignType<alignment, short>::type s;
typename _AlignType<alignment, int>::type i;
typename _AlignType<alignment, long>::type l;
typename _AlignType<alignment, long long>::type ll;
typename _AlignType<alignment, float>::type f;
typename _AlignType<alignment, double>::type d;
typename _AlignType<alignment, long double>::type ld;
typename _AlignType<alignment, void *>::type pc;
typename _AlignType<alignment, _MaxAlign *>::type ps;
typename _AlignType<alignment, void (*)()>::type pf;
};
//---------------------------------------------------------------
template <typename T>
union aligned_buffer {
typedef aligner_type<sizeof(_Aligner<T>) - sizeof(T)> aligner_type;
aligner_type m_aligner;
char m_buf[sizeof(T)];
private:
TCG_STATIC_ASSERT(sizeof(_Aligner<T>) - sizeof(T) ==
sizeof(_Aligner<aligner_type>) - sizeof(aligner_type));
};
//**************************************************************************
// TCG alignment traits
//**************************************************************************
template <typename T>
struct alignment_traits {
static const int alignment = sizeof(_Aligner<T>) - sizeof(T);
typedef aligner_type<alignment> aligner_type;
typedef aligned_buffer<T> buffer_type;
};
} // namespace tcg
#endif // TCG_ALIGNMENT_H
|
zzalscv2/FFEA
|
ffeatools/FFEA_analysis/FFEA_thin_system.py
|
#
# This file is part of the FFEA simulation package
#
# Copyright (c) by the Theory and Development FFEA teams,
# as they appear in the README.md file.
#
# FFEA is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# FFEA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FFEA. If not, see <http://www.gnu.org/licenses/>.
#
# To help us fund FFEA development, we humbly ask that you cite
# the research papers on the package.
#
import sys, os
import FFEA_script, FFEA_trajectory, FFEA_measurement
import argparse as _argparse
import __builtin__
parser = _argparse.ArgumentParser(description="FFEA Thin Trajectory")
parser.add_argument("script_fname", action="store", help="Input script file (.ffea)")
parser.add_argument("out_fname", action="store", help="Output script fname (.ffea)")
parser.add_argument("frames_to_read", action="store", type=int, help="Number of frames to read")
parser.add_argument("thin_percent", action="store", type=float, help="Percentage to keep")
def thin_system(script_fname, frames_to_read, thin_percent):
"""
Remove frames from an FFEA_trajectory file.
In:
traj_fname an ffea trajectory file (note: a file, not an instance!)
out_fname: an output filename
frames_to_read: the number of frames to read,
thin_percent: percentage of the file to keep
Retruns:
an FFEA trajectory object.
"""
if thin_percent < 0 or thin_percent > 100:
sys.exit("Error. Percentage must be between 0 and 100. You used %f\n" % (thin_percent))
if thin_percent < 1:
verify = raw_input("Percentage to keep was %f. Did you mean %f (y/n)?" % (thin_percent, thin_percent * 100))
if verify.lower() == "y":
thin_percent *= 100
frame_rate = int(round(100 / thin_percent))
# Change output data
script = FFEA_script.FFEA_script(script_fname)
script.params.check *= frame_rate
traj = FFEA_trajectory.FFEA_trajectory(script.params.trajectory_out_fname, frame_rate = frame_rate, num_frames_to_read = frames_to_read)
meas = FFEA_measurement.FFEA_measurement(script.params.measurement_out_fname, frame_rate = frame_rate, num_frames_to_read = frames_to_read)
return script, traj, meas
if sys.stdin.isatty() and hasattr(__builtin__, 'FFEA_API_mode') == False:
args = parser.parse_args()
# Get args and build objects
if not os.path.exists(args.script_fname):
raise IOError("Script file specified doesn't exist.")
out_script, out_traj, out_meas = thin_system(args.script_fname, args.frames_to_read, args.thin_percent, )
# Get output_fnames and write out
out_bfname = os.path.splitext(args.out_fname)[0]
out_tfname = out_bfname + ".ftj"
index = 1
while os.path.exists(out_tfname):
out_tfname = out_bfname + "_" + str(index) + ".ftj"
index += 1
out_mfname = out_bfname + ".fm"
index = 1
while os.path.exists(out_tfname):
out_tfname = out_bfname + "_" + str(index) + ".ftj"
index += 1
out_sfname = out_bfname + ".ffea"
index = 1
while os.path.exists(out_tfname):
out_tfname = out_bfname + "_" + str(index) + ".ftj"
index += 1
out_traj.write_to_file(out_tfname)
out_meas.write_to_file(out_mfname)
out_script.params.measurement_out_fname = out_mfname
out_script.params.trajectory_out_fname = out_tfname
out_script.write_to_file(out_sfname, verbose=True)
print("\nSystem successfully thinned out!\n\tScript - %s\n\tTrajectory - %s\n\tMeasurement - %s/.fdm\n" % (out_sfname, out_tfname, out_mfname))
|
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
|
src/StockIT-v1-release_source_from_JADX/sources/com/google/maps/android/data/kml/KmlFeatureParser.java
|
<filename>src/StockIT-v1-release_source_from_JADX/sources/com/google/maps/android/data/kml/KmlFeatureParser.java<gh_stars>1-10
package com.google.maps.android.data.kml;
import com.facebook.react.uimanager.ViewProps;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.LatLngBounds;
import com.google.maps.android.data.Geometry;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
class KmlFeatureParser {
private static final String BOUNDARY_REGEX = "outerBoundaryIs|innerBoundaryIs";
private static final String COMPASS_REGEX = "north|south|east|west";
private static final String EXTENDED_DATA = "ExtendedData";
private static final String GEOMETRY_REGEX = "Point|LineString|Polygon|MultiGeometry";
private static final int LATITUDE_INDEX = 1;
private static final int LONGITUDE_INDEX = 0;
private static final String PROPERTY_REGEX = "name|description|drawOrder|visibility|open|address|phoneNumber";
private static final String STYLE_TAG = "Style";
private static final String STYLE_URL_TAG = "styleUrl";
KmlFeatureParser() {
}
static KmlPlacemark createPlacemark(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
HashMap hashMap = new HashMap();
int eventType = xmlPullParser.getEventType();
Geometry geometry = null;
String str = null;
KmlStyle kmlStyle = null;
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals("Placemark")) {
return new KmlPlacemark(geometry, str, kmlStyle, hashMap);
}
if (eventType == 2) {
if (xmlPullParser.getName().equals(STYLE_URL_TAG)) {
str = xmlPullParser.nextText();
} else if (xmlPullParser.getName().matches(GEOMETRY_REGEX)) {
geometry = createGeometry(xmlPullParser, xmlPullParser.getName());
} else if (xmlPullParser.getName().matches(PROPERTY_REGEX)) {
hashMap.put(xmlPullParser.getName(), xmlPullParser.nextText());
} else if (xmlPullParser.getName().equals(EXTENDED_DATA)) {
hashMap.putAll(setExtendedDataProperties(xmlPullParser));
} else if (xmlPullParser.getName().equals(STYLE_TAG)) {
kmlStyle = KmlStyleParser.createStyle(xmlPullParser);
}
}
eventType = xmlPullParser.next();
}
}
static KmlGroundOverlay createGroundOverlay(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
HashMap hashMap = new HashMap();
HashMap hashMap2 = new HashMap();
int eventType = xmlPullParser.getEventType();
String str = null;
float f = 0.0f;
int i = 1;
float f2 = 0.0f;
while (true) {
if (eventType != 3 || !xmlPullParser.getName().equals("GroundOverlay")) {
if (eventType == 2) {
if (xmlPullParser.getName().equals("Icon")) {
str = getImageUrl(xmlPullParser);
} else if (xmlPullParser.getName().equals("drawOrder")) {
f = Float.parseFloat(xmlPullParser.nextText());
} else if (xmlPullParser.getName().equals("visibility")) {
i = Integer.parseInt(xmlPullParser.nextText());
} else if (xmlPullParser.getName().equals(EXTENDED_DATA)) {
hashMap.putAll(setExtendedDataProperties(xmlPullParser));
} else if (xmlPullParser.getName().equals(ViewProps.ROTATION)) {
f2 = getRotation(xmlPullParser);
} else if (xmlPullParser.getName().matches(PROPERTY_REGEX) || xmlPullParser.getName().equals("color")) {
hashMap.put(xmlPullParser.getName(), xmlPullParser.nextText());
} else if (xmlPullParser.getName().matches(COMPASS_REGEX)) {
hashMap2.put(xmlPullParser.getName(), Double.valueOf(Double.parseDouble(xmlPullParser.nextText())));
}
}
eventType = xmlPullParser.next();
} else {
return new KmlGroundOverlay(str, createLatLngBounds((Double) hashMap2.get("north"), (Double) hashMap2.get("south"), (Double) hashMap2.get("east"), (Double) hashMap2.get("west")), f, i, hashMap, f2);
}
}
}
private static float getRotation(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
return -Float.parseFloat(xmlPullParser.nextText());
}
private static String getImageUrl(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
int eventType = xmlPullParser.getEventType();
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals("Icon")) {
return null;
}
if (eventType == 2 && xmlPullParser.getName().equals("href")) {
return xmlPullParser.nextText();
}
eventType = xmlPullParser.next();
}
}
private static Geometry createGeometry(XmlPullParser xmlPullParser, String str) throws IOException, XmlPullParserException {
int eventType = xmlPullParser.getEventType();
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals(str)) {
return null;
}
if (eventType == 2) {
if (xmlPullParser.getName().equals("Point")) {
return createPoint(xmlPullParser);
}
if (xmlPullParser.getName().equals("LineString")) {
return createLineString(xmlPullParser);
}
if (xmlPullParser.getName().equals(KmlPolygon.GEOMETRY_TYPE)) {
return createPolygon(xmlPullParser);
}
if (xmlPullParser.getName().equals("MultiGeometry")) {
return createMultiGeometry(xmlPullParser);
}
}
eventType = xmlPullParser.next();
}
}
private static HashMap<String, String> setExtendedDataProperties(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
HashMap<String, String> hashMap = new HashMap<>();
int eventType = xmlPullParser.getEventType();
String str = null;
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals(EXTENDED_DATA)) {
return hashMap;
}
if (eventType == 2) {
if (xmlPullParser.getName().equals("Data")) {
str = xmlPullParser.getAttributeValue((String) null, "name");
} else if (xmlPullParser.getName().equals("value") && str != null) {
hashMap.put(str, xmlPullParser.nextText());
str = null;
}
}
eventType = xmlPullParser.next();
}
}
private static KmlPoint createPoint(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
int eventType = xmlPullParser.getEventType();
LatLng latLng = null;
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals("Point")) {
return new KmlPoint(latLng);
}
if (eventType == 2 && xmlPullParser.getName().equals("coordinates")) {
latLng = convertToLatLng(xmlPullParser.nextText());
}
eventType = xmlPullParser.next();
}
}
private static KmlLineString createLineString(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
ArrayList<LatLng> arrayList = new ArrayList<>();
int eventType = xmlPullParser.getEventType();
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals("LineString")) {
return new KmlLineString(arrayList);
}
if (eventType == 2 && xmlPullParser.getName().equals("coordinates")) {
arrayList = convertToLatLngArray(xmlPullParser.nextText());
}
eventType = xmlPullParser.next();
}
}
private static KmlPolygon createPolygon(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
Boolean bool = false;
ArrayList<LatLng> arrayList = new ArrayList<>();
ArrayList arrayList2 = new ArrayList();
int eventType = xmlPullParser.getEventType();
while (true) {
if (eventType == 3 && xmlPullParser.getName().equals(KmlPolygon.GEOMETRY_TYPE)) {
return new KmlPolygon(arrayList, arrayList2);
}
if (eventType == 2) {
if (xmlPullParser.getName().matches(BOUNDARY_REGEX)) {
bool = Boolean.valueOf(xmlPullParser.getName().equals("outerBoundaryIs"));
} else if (xmlPullParser.getName().equals("coordinates")) {
if (bool.booleanValue()) {
arrayList = convertToLatLngArray(xmlPullParser.nextText());
} else {
arrayList2.add(convertToLatLngArray(xmlPullParser.nextText()));
}
}
}
eventType = xmlPullParser.next();
}
}
private static KmlMultiGeometry createMultiGeometry(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
ArrayList arrayList = new ArrayList();
int next = xmlPullParser.next();
while (true) {
if (next == 3 && xmlPullParser.getName().equals("MultiGeometry")) {
return new KmlMultiGeometry(arrayList);
}
if (next == 2 && xmlPullParser.getName().matches(GEOMETRY_REGEX)) {
arrayList.add(createGeometry(xmlPullParser, xmlPullParser.getName()));
}
next = xmlPullParser.next();
}
}
private static ArrayList<LatLng> convertToLatLngArray(String str) {
ArrayList<LatLng> arrayList = new ArrayList<>();
for (String convertToLatLng : str.trim().split("(\\s+)")) {
arrayList.add(convertToLatLng(convertToLatLng));
}
return arrayList;
}
private static LatLng convertToLatLng(String str) {
String[] split = str.split(",");
return new LatLng(Double.valueOf(Double.parseDouble(split[1])).doubleValue(), Double.valueOf(Double.parseDouble(split[0])).doubleValue());
}
private static LatLngBounds createLatLngBounds(Double d, Double d2, Double d3, Double d4) {
return new LatLngBounds(new LatLng(d2.doubleValue(), d4.doubleValue()), new LatLng(d.doubleValue(), d3.doubleValue()));
}
}
|
yixinwang/representation-causal-public
|
disentanglement_expms/sec3-4-ioss_vae/src/disentangle_learn.py
|
import argparse
import numpy as np
import numpy.random as npr
import scipy
import os
import sys
import seaborn as sns
import matplotlib.pyplot as plt
import time
import random
from load_data import DSprites, Cars3D, MPI3D, SmallNORB
import pandas as pd
from utils import uniformize, IRS_score, betatc_compute_total_correlation, DCI_score, gaussian_total_correlation, gaussian_wasserstein_correlation, mutual_info, betatc_compute_total_correlation, Discriminator, linear_annealing, _permute_dims
from disent_dataset import DisentDataset
from disent_unsupervised import metric_unsupervised
from disent_sap import metric_sap
from disent_mig import metric_mig
from disent_factorvae import metric_factor_vae
from disent_dci import metric_dci
from disent_betavae import metric_beta_vae
from sklearn import ensemble
from sklearn.neural_network import MLPClassifier, MLPRegressor
from sklearn.inspection import permutation_importance
import torch
from torchvision import datasets, transforms
from torch import nn, optim, autograd
import torch.nn.functional as F
from torch.autograd import Variable
from torchvision.utils import save_image
parser = argparse.ArgumentParser(description='Disentangled Representation Learning with IOSS')
parser.add_argument('--dataset', choices=['dsprites', 'cars3d', 'mpi3d', 'smallnorb'], default="mpi3d")
parser.add_argument('--hidden_dim', type=int, default=512)
parser.add_argument('--lr', type=float, default=0.001)
# parser.add_argument('--mode', type=str, default="logistic", choices=["linear", "logistic"])
parser.add_argument('--z_dim', type=int, default=10)
parser.add_argument('--batch_size', type=int, default=100) # preferrably large batch size, but for some large datasets, cannot afford large batch sizes on gpu
parser.add_argument('--vae_epochs', type=int, default=51)
parser.add_argument('--ioss_weight', type=float, default=1e4)
parser.add_argument('--beta_weight', type=float, default=0.2)
parser.add_argument('--gamma_weight', type=float, default=10.) # factor vae weight
parser.add_argument('--spurious_corr', type=float, default=0.95)
parser.add_argument('--train_sample_size', type=int, default=20000)
flags, unknown = parser.parse_known_args()
N = flags.train_sample_size
corr = flags.spurious_corr
os.environ['DISENTANGLEMENT_LIB_DATA'] = '/proj/sml/usr/yixinwang/representation-causal/src/disentanglement_expms/data/'
eps = 1e-8 # define a small close to zero number
# randseed = 52744889
randseed = int(time.time()*1e7%1e8)
print("random seed: ", randseed)
random.seed(randseed)
np.random.seed(randseed)
torch.manual_seed(randseed)
flags.randseed = randseed
print('Flags:')
for k,v in sorted(vars(flags).items()):
print("\t{}: {}".format(k, v))
if not os.path.exists('./learn_out'):
os.makedirs('./learn_out')
if flags.dataset == "dsprites":
dataset = DSprites()
elif flags.dataset == "cars3d":
dataset = Cars3D()
elif flags.dataset == "mpi3d":
dataset = MPI3D()
elif flags.dataset == "smallnorb":
dataset = SmallNORB()
unique_ys = np.unique(dataset.sample_factors(10000, npr.RandomState(randseed)), axis=0)
num_uniqs = np.array([len(np.unique(unique_ys[:,i])) for i in range(unique_ys.shape[1])])
y_cols = np.where(num_uniqs > 1)[0]
D = dataset.sample_factors(2, npr.RandomState(randseed)).shape[1] # number of features
mean = np.zeros(D)
# generate highly correlated training factors
train_cov = np.ones((D, D)) * corr + np.eye(D) * (1 - corr)
train_y_true = npr.multivariate_normal(mean, train_cov, size=N)
train_y_true = uniformize(train_y_true)
train_ys = train_y_true // (1. / (num_uniqs))
assert (train_ys.max(axis=0) - (num_uniqs-1)).sum() == 0
train_xs = dataset.sample_observations_from_factors(train_ys, npr.RandomState(randseed))
# generate weakly correlated test factors for testing (observational)
testobs_cov = np.ones((D, D)) * corr + np.eye(D) * (1 - corr)
testobs_y_true = npr.multivariate_normal(mean, testobs_cov, size=N)
testobs_y_true = uniformize(testobs_y_true)
testobs_ys = testobs_y_true // (1. / (num_uniqs))
assert (testobs_ys.max(axis=0) - (num_uniqs-1)).sum() == 0
testobs_xs = dataset.sample_observations_from_factors(testobs_ys, npr.RandomState(randseed))
# generate weakly correlated test factors for testing (counterfactual)
testct_cov = np.ones((D, D)) * (1 - corr) + np.eye(D) * corr
testct_cov = np.ones((D, D)) * corr + np.eye(D) * (1 - corr)
testct_y_true = npr.multivariate_normal(mean, testct_cov, size=N)
testct_y_true = uniformize(testct_y_true)
testct_ys = testct_y_true // (1. / (num_uniqs))
assert (testct_ys.max(axis=0) - (num_uniqs-1)).sum() == 0
testct_xs = dataset.sample_observations_from_factors(testct_ys, npr.RandomState(randseed))
# final_train_accs = []
# final_test_accs = []
# train_idx = npr.binomial(1, 0.8, size=train_xs.shape[0])
train_data = torch.Tensor(train_xs.reshape(train_xs.shape[0], -1)).float()
testobs_data = torch.Tensor(testobs_xs.reshape(train_xs.shape[0], -1)).float()
testct_data = torch.Tensor(testct_xs.reshape(train_xs.shape[0], -1)).float()
flags.input_dim = train_data.shape[1]
train_loader = torch.utils.data.DataLoader(dataset=train_data, batch_size=flags.batch_size, shuffle=True)
testobs_loader = torch.utils.data.DataLoader(dataset=testobs_data, batch_size=flags.batch_size, shuffle=True)
testct_loader = torch.utils.data.DataLoader(dataset=testct_data, batch_size=flags.batch_size, shuffle=True)
class VAE(nn.Module):
def __init__(self, x_dim, h_dim1, h_dim2, z_dim):
super(VAE, self).__init__()
# encoder part
self.fc1 = nn.Linear(x_dim, h_dim1)
self.fc2 = nn.Linear(h_dim1, h_dim2)
self.fc31 = nn.Linear(h_dim2, z_dim)
self.fc32 = nn.Linear(h_dim2, z_dim)
# decoder part
self.fc4 = nn.Linear(z_dim, h_dim2)
self.fc5 = nn.Linear(h_dim2, h_dim1)
self.fc6 = nn.Linear(h_dim1, x_dim)
def encoder(self, x):
h = F.relu(self.fc1(x))
h = F.relu(self.fc2(h))
return self.fc31(h), self.fc32(h) # mu, log_var
def sampling(self, mu, log_var):
std = torch.exp(0.5*log_var)
eps = torch.randn_like(std)
return eps.mul(std).add_(mu) # return z sample
def decoder(self, z):
h = F.relu(self.fc4(z))
h = F.relu(self.fc5(h))
return torch.sigmoid(self.fc6(h))
def forward(self, x):
mu, log_var = self.encoder(x.view(-1, flags.input_dim))
z = self.sampling(mu, log_var)
return self.decoder(z), mu, log_var
def IOSS(mu, n_draws=10000, robust_k_prop = 0.01):
stdmu = (mu - torch.min(mu,dim=0)[0])/ (torch.max(mu,dim=0)[0]-torch.min(mu,dim=0)[0]).cuda()
K = np.int(robust_k_prop * mu.shape[0]) + 1
maxs = torch.topk(stdmu, K, dim=0)[0][-1,:]
mins = -(torch.topk(-stdmu, K, dim=0)[0][-1,:])
smps = (torch.stack([torch.rand(n_draws).cuda() * (maxs[i]-mins[i]) + mins[i] for i in range(stdmu.shape[1])], dim=1))
min_dist = (torch.min(torch.cdist(smps, stdmu.cuda()), dim=1)[0])
# ortho = (torch.mean(min_dist,dim=0))
ortho = (torch.topk(min_dist, np.int(robust_k_prop*n_draws)+1, dim=0))[0][-1]
# ortho = torch.max(min_dist,dim=0)[0]
return ortho
def TotalCorr_betatc_vae(z_sampled, z_mean, z_logvar):
tc_loss = betatc_compute_total_correlation(
z_sampled=z_sampled,
z_mean=z_mean,
z_logvar=z_logvar,
)
return tc_loss
def classical_vae_loss_function(vae, data, factor_vae_discriminator=None, optimizer_factor_vae_discriminator=None):
recon_batch, mu, log_var = vae(data)
BCE = F.binary_cross_entropy(recon_batch, data.view(-1, flags.input_dim), reduction='sum')
KLD = -0.5 * torch.sum(1 + log_var - mu.pow(2) - log_var.exp())
return BCE + KLD
def factor_vae_loss_function(vae, data, factor_vae_discriminator, optimizer_factor_vae_discriminator, gamma=flags.gamma_weight, steps_anneal=0):
"""
Compute the Factor-VAE loss as per Algorithm 2 of [1]
Parameters
----------
device : torch.device
gamma : float, optional
Weight of the TC loss term. `gamma` in the paper.
discriminator : disvae.discriminator.Discriminator
optimizer_d : torch.optim
kwargs:
Additional arguments for `BaseLoss`, e.g. rec_dist`.
References
----------
[1] Kim, Hyunjik, and <NAME>. "Disentangling by factorising."
arXiv preprint arXiv:1802.05983 (2018).
"""
assert factor_vae_discriminator != None
assert optimizer_factor_vae_discriminator != None
# factor-vae split data into two batches. In the paper they sample 2 batches
batch_size = data.size(dim=0)
half_batch_size = batch_size // 2
data = data.split(half_batch_size)
data1 = data[0]
data2 = data[1]
# Factor VAE Loss
recon_batch1, mu1, log_var1 = vae(data1)
BCE1 = F.binary_cross_entropy(recon_batch1, data1.view(-1, flags.input_dim), reduction='sum')
KLD1 = -0.5 * torch.sum(1 + log_var1 - mu1.pow(2) - log_var1.exp())
z_sampled1 = torch.randn_like(torch.exp(0.5*log_var1)).mul(torch.exp(0.5*log_var1)).add_(mu1)
d_z = factor_vae_discriminator(z_sampled1)
# We want log(p_true/p_false). If not using logisitc regression but softmax
# then p_true = exp(logit_true) / Z; p_false = exp(logit_false) / Z
# so log(p_true/p_false) = logit_true - logit_false
factor_vae_tc_loss1 = (d_z[:, 0] - d_z[:, 1]).mean()
# with sigmoid (not good results) should be `tc_loss = (2 * d_z.flatten()).mean()`
anneal_reg = linear_annealing(0, 1, flags.vae_epochs, steps_anneal)
vae_loss1 = BCE1 + KLD1 + anneal_reg * gamma * factor_vae_tc_loss1
vae_loss1 = Variable(vae_loss1, requires_grad = True)
# Discriminator Loss
# Get second sample of latent distribution
recon_batch2, mu2, log_var2 = vae(data2)
z_sampled2 = torch.randn_like(torch.exp(0.5*log_var2)).mul(torch.exp(0.5*log_var2)).add_(mu2)
z_perm = _permute_dims(z_sampled2).detach()
d_z_perm = factor_vae_discriminator(z_perm)
# Calculate total correlation loss
# for cross entropy the target is the index => need to be long and says
# that it's first output for d_z and second for perm
ones = torch.ones(half_batch_size, dtype=torch.long).cuda()
zeros = torch.zeros_like(ones)
d_tc_loss = 0.5 * (F.cross_entropy(d_z, zeros) + F.cross_entropy(d_z_perm, ones))
# with sigmoid would be :
# d_tc_loss = 0.5 * (self.bce(d_z.flatten(), ones) + self.bce(d_z_perm.flatten(), 1 - ones))
# TO-DO: check if should also anneals discriminator if not becomes too good ???
#d_tc_loss = anneal_reg * d_tc_loss
d_tc_loss = Variable(d_tc_loss, requires_grad = True)
# Compute discriminator gradients
optimizer_factor_vae_discriminator.zero_grad()
d_tc_loss.backward(retain_graph=True)
optimizer_factor_vae_discriminator.step()
return vae_loss1
# return reconstruction error + KL divergence losses
def ioss_vae_loss_function(vae, data, factor_vae_discriminator=None, optimizer_factor_vae_discriminator=None, lmbda=flags.ioss_weight):
recon_batch, mu, log_var = vae(data)
BCE = F.binary_cross_entropy(recon_batch, data.view(-1, flags.input_dim), reduction='sum')
KLD = -0.5 * torch.sum(1 + log_var - mu.pow(2) - log_var.exp())
ortho = IOSS(mu)
# print(ortho, BCE, KLD)
return BCE + KLD + lmbda * ortho
def beta_vae_loss_function(vae, data, factor_vae_discriminator=None, optimizer_factor_vae_discriminator=None, beta=flags.beta_weight):
recon_batch, mu, log_var = vae(data)
BCE = F.binary_cross_entropy(recon_batch, data.view(-1, flags.input_dim), reduction='sum')
KLD = -0.5 * torch.sum(1 + log_var - mu.pow(2) - log_var.exp())
# ortho = IOSS(mu)
# print(ortho, BCE, KLD)
return BCE + beta * KLD
def betatc_vae_loss_function(vae, data, factor_vae_discriminator=None, optimizer_factor_vae_discriminator=None, beta=flags.beta_weight):
recon_batch, mu, log_var = vae(data)
BCE = F.binary_cross_entropy(recon_batch, data.view(-1, flags.input_dim), reduction='sum')
KLD = -0.5 * torch.sum(1 + log_var - mu.pow(2) - log_var.exp())
z_sampled = torch.randn_like(torch.exp(0.5*log_var)).mul(torch.exp(0.5*log_var)).add_(mu)
TC = TotalCorr_betatc_vae(z_sampled, mu, log_var)
# ortho = IOSS(mu)
# print(ortho, BCE, KLD)
return BCE + beta * KLD + (1-beta) * TC
def train(vae, optimizer_vae, epoch, loss_function, factor_vae_discriminator=None, optimizer_factor_vae_discriminator=None):
vae.train()
train_loss = 0
train_orthos = 0
train_elbo = 0
for batch_idx, data in enumerate(train_loader):
data = data.cuda()
optimizer_vae.zero_grad()
recon_batch, mu, log_var = vae(data)
loss = loss_function(vae, data, factor_vae_discriminator, optimizer_factor_vae_discriminator)
loss.backward(retain_graph=True)
train_loss += loss.item()
train_elbo += classical_vae_loss_function(vae, data).item()
train_orthos += IOSS(mu).item()
optimizer_vae.step()
if batch_idx % 100 == 0:
print('Train Epoch: {} [{}/{} ({:.0f}%)]\tLoss: {:.6f}'.format(epoch, batch_idx * len(data), len(train_loader.dataset), 100. * batch_idx / len(train_loader), loss.item() / len(data)))
print('====> Epoch: {} Average loss: {:.4f}'.format(epoch, train_loss / len(train_loader.dataset)))
print('train IOSS', train_orthos / len(train_loader.dataset))
print('train ELBO', train_elbo / len(train_loader.dataset))
return train_elbo / len(train_loader.dataset)
def test(vae, loss_function, factor_vae_discriminator=None, optimizer_factor_vae_discriminator=None):
vae.eval()
test_loss = 0
orthos = 0
test_elbo = 0
with torch.no_grad():
for data in testobs_loader:
data = data.cuda()
recon, mu, log_var = vae(data)
# sum up batch loss
test_loss += loss_function(vae, data, factor_vae_discriminator, optimizer_factor_vae_discriminator).item()
orthos += IOSS(mu).item()
test_elbo += classical_vae_loss_function(vae, data).item()
# idx = (npr.rand(testobs_data.shape[0]) > 0.9)
# ys_test = testobs_data.latents_classes[(1-train_idx)!=0].T[1:]
# mus_test = vae.cpu()(testobs_data.cpu()).detach().cpu().numpy().T
# print(scalable_disentanglement_score(ys_test.T[idx], mus_test.T[idx]))
test_loss /= len(testobs_loader.dataset)
print('====> Testobs set loss: {:.4f}'.format(test_loss))
print('testobs IOSS', orthos / len(testobs_loader.dataset))
print('testobs ELBO', test_elbo / len(testobs_loader.dataset))
return test_elbo / len(testobs_loader.dataset)
# build model
classical_vae = VAE(x_dim=flags.input_dim, h_dim1=flags.hidden_dim, h_dim2=flags.hidden_dim, z_dim=flags.z_dim)
ioss_vae = VAE(x_dim=flags.input_dim, h_dim1=flags.hidden_dim, h_dim2=flags.hidden_dim, z_dim=flags.z_dim)
beta_vae = VAE(x_dim=flags.input_dim, h_dim1=flags.hidden_dim, h_dim2=flags.hidden_dim, z_dim=flags.z_dim)
betatc_vae = VAE(x_dim=flags.input_dim, h_dim1=flags.hidden_dim, h_dim2=flags.hidden_dim, z_dim=flags.z_dim)
factor_vae = VAE(x_dim=flags.input_dim, h_dim1=flags.hidden_dim, h_dim2=flags.hidden_dim, z_dim=flags.z_dim)
factor_vae_discriminator = Discriminator(latent_dim=flags.z_dim,hidden_units=flags.hidden_dim)
if torch.cuda.is_available():
classical_vae = classical_vae.cuda()
ioss_vae = ioss_vae.cuda()
beta_vae = beta_vae.cuda()
betatc_vae = betatc_vae.cuda()
factor_vae = factor_vae.cuda()
factor_vae_discriminator = factor_vae_discriminator.cuda()
optimizer_classical_vae = optim.Adam(classical_vae.parameters())
optimizer_ioss_vae = optim.Adam(ioss_vae.parameters())
optimizer_beta_vae = optim.Adam(beta_vae.parameters())
optimizer_betatc_vae = optim.Adam(betatc_vae.parameters())
optimizer_factor_vae = optim.Adam(factor_vae.parameters())
optimizer_factor_vae_discriminator = optim.Adam(factor_vae_discriminator.parameters())
for epoch in range(1, flags.vae_epochs):
print("Epoch", epoch)
print("classical_vae")
classical_vae_train_elbo = train(classical_vae, optimizer_classical_vae, epoch, classical_vae_loss_function)
classical_vae_test_elbo = test(classical_vae, classical_vae_loss_function)
sys.stdout.flush()
for epoch in range(1, flags.vae_epochs):
print("Epoch", epoch)
print("ioss_vae")
ioss_vae_train_elbo = train(ioss_vae, optimizer_ioss_vae, epoch, ioss_vae_loss_function)
ioss_vae_test_elbo = test(ioss_vae, ioss_vae_loss_function)
sys.stdout.flush()
for epoch in range(1, flags.vae_epochs):
print("Epoch", epoch)
print("beta_vae")
beta_vae_train_elbo = train(beta_vae, optimizer_beta_vae, epoch, beta_vae_loss_function)
beta_vae_test_elbo = test(beta_vae, beta_vae_loss_function)
sys.stdout.flush()
for epoch in range(1, flags.vae_epochs):
print("Epoch", epoch)
print("betatc_vae")
betatc_vae_train_elbo = train(betatc_vae, optimizer_betatc_vae, epoch, betatc_vae_loss_function)
betatc_vae_test_elbo = test(betatc_vae, betatc_vae_loss_function)
sys.stdout.flush()
for epoch in range(1, flags.vae_epochs):
print("Epoch", epoch)
print("factor_vae")
factor_vae_train_elbo = train(factor_vae, optimizer_factor_vae, epoch, factor_vae_loss_function, factor_vae_discriminator, optimizer_factor_vae_discriminator)
factor_vae_test_elbo = test(factor_vae, factor_vae_loss_function, factor_vae_discriminator, optimizer_factor_vae_discriminator)
sys.stdout.flush()
def eval_vae_representation(vae, train_data, testobs_data, testct_data, train_ys, testobs_ys, testct_ys, dataset, vae_name, nsmp = 5000):
print("######################")
print("Evaluating " + vae_name)
print("######################")
def representation_function(train_data):
train_vae_recon, train_vae_mu, train_vae_logvar = vae(train_data.reshape(train_data.shape[0], -1).float().cuda())
return train_vae_mu.float().cuda()
train_vae_mu = representation_function(train_data)
testobs_vae_mu = representation_function(testobs_data)
testct_vae_mu = representation_function(testct_data)
num_train = train_data.shape[0]
smpidx = npr.randint(train_data.shape[0], size=nsmp)
# smpidx = np.arange(num_train)
ys_train = train_ys.T[1:]
ys_testobs = testobs_ys.T[1:]
ys_testct = testct_ys.T[1:]
mus_train = train_vae_mu.detach().cpu().numpy().T
mus_testobs = testobs_vae_mu.detach().cpu().numpy().T
mus_testct = testct_vae_mu.detach().cpu().numpy().T
def take_middle_quantile(mus_train, q=0.01):
# consider columns of matrix whose value is within (q, 1-q) qunatile of all values. (ignore outliers)
uq = np.quantile(mus_train.T, 1-q, axis=0)
lq = np.quantile(mus_train.T, q, axis=0)
lower_than_uq = np.prod(mus_train.T < np.repeat(uq[np.newaxis,:], mus_train.T.shape[0],axis=0),axis=1)
higher_than_lq = np.prod(mus_train.T > np.repeat(lq[np.newaxis,:], mus_train.T.shape[0],axis=0),axis=1)
return mus_train[:,(lower_than_uq * higher_than_lq)==1]
savefilename_prefix = './learn_out/' + flags.dataset + '_' + vae_name + '_' + str(randseed)
train_sns_plot = sns.pairplot(pd.DataFrame(take_middle_quantile(mus_train).T), diag_kind = 'kde',
plot_kws = {'alpha': 0.6, 's': 80, 'edgecolor': 'k'},
size = 4)
train_sns_plot.savefig(savefilename_prefix + '_train_mu.png')
pd.DataFrame(take_middle_quantile(mus_train).T).to_csv(savefilename_prefix + '_train_mu.csv')
testobs_sns_plot = sns.pairplot(pd.DataFrame(take_middle_quantile(mus_testobs).T), diag_kind = 'kde',
plot_kws = {'alpha': 0.6, 's': 80, 'edgecolor': 'k'},
size = 4)
testobs_sns_plot.savefig(savefilename_prefix + '_testobs_mu.png')
pd.DataFrame(take_middle_quantile(mus_testobs).T).to_csv(savefilename_prefix + '_testobs_mu.csv')
testct_sns_plot = sns.pairplot(pd.DataFrame(take_middle_quantile(mus_testct).T), diag_kind = 'kde',
plot_kws = {'alpha': 0.6, 's': 80, 'edgecolor': 'k'},
size = 4)
testct_sns_plot.savefig(savefilename_prefix + '_testct_mu.png')
pd.DataFrame(take_middle_quantile(mus_testct).T).to_csv(savefilename_prefix + '_testct_mu.csv')
irs_train = IRS_score(ys_train.T, mus_train.T)
irs_testobs = IRS_score(ys_testobs.T, mus_testobs.T)
irs_testct = IRS_score(ys_testct.T, mus_testct.T)
irs_oracle = IRS_score(ys_testct.T, ys_testct.T)
print("irs train", irs_train)
print("irs testobs", irs_testobs)
print("irs testct", irs_testct)
print("irs oracle", irs_oracle)
sys.stdout.flush()
disentanglement_metrics = pd.DataFrame(vars(flags
), index=[0])
disentanglement_metrics['vae_name'] = vae_name
disentanglement_metrics['classical_vae_train_elbo'] = classical_vae_train_elbo
disentanglement_metrics['classical_vae_test_elbo'] = classical_vae_test_elbo
disentanglement_metrics['ioss_vae_train_elbo'] = ioss_vae_train_elbo
disentanglement_metrics['ioss_vae_test_elbo'] = ioss_vae_test_elbo
disentanglement_metrics['beta_vae_train_elbo'] = beta_vae_train_elbo
disentanglement_metrics['beta_vae_test_elbo'] = beta_vae_test_elbo
disentanglement_metrics['betatc_vae_train_elbo'] = betatc_vae_train_elbo
disentanglement_metrics['betatc_vae_test_elbo'] = betatc_vae_test_elbo
disentanglement_metrics['factor_vae_train_elbo'] = factor_vae_train_elbo
disentanglement_metrics['factor_vae_test_elbo'] = factor_vae_test_elbo
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
disentanglement_metrics['irs_train'] = irs_train['avg_score']
disentanglement_metrics['irs_testobs'] = irs_testobs['avg_score']
disentanglement_metrics['irs_testct'] = irs_testct['avg_score']
disentanglement_metrics['irs_oracle'] = irs_oracle['avg_score']
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
for ioss_k_prop in [1e-1, 1e-2, 1e-3, 1e-4]:
ioss_train = IOSS(torch.Tensor(mus_train.T).cuda(), n_draws=1000,robust_k_prop = ioss_k_prop).detach().cpu().numpy()
ioss_testobs = IOSS(torch.Tensor(mus_testobs.T).cuda(), n_draws=1000,robust_k_prop = ioss_k_prop).detach().cpu().numpy()
ioss_testct = IOSS(torch.Tensor(mus_testct.T).cuda(), n_draws=1000,robust_k_prop = ioss_k_prop).detach().cpu().numpy()
ioss_oracle = IOSS(torch.Tensor(ys_train.T).cuda(), n_draws=1000,robust_k_prop = ioss_k_prop).detach().cpu().numpy()
disentanglement_metrics['ioss_train_'+str(ioss_k_prop)] = ioss_train
disentanglement_metrics['ioss_testobs_'+str(ioss_k_prop)] = ioss_testobs
disentanglement_metrics['ioss_testct_'+str(ioss_k_prop)] = ioss_testct
disentanglement_metrics['ioss_oracle_'+str(ioss_k_prop)] = ioss_oracle
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
predacc_train = np.zeros(ys_train.T.shape[1])
predacc_testobs = np.zeros(ys_testobs.T.shape[1])
predacc_testct = np.zeros(ys_testct.T.shape[1])
noise_coef = 1.
ys_train_noisy = (ys_train.T + noise_coef * ys_train.T.std(axis=0) * npr.normal(size=ys_train.T.shape)).T
ys_testobs_noisy = (ys_testobs.T + noise_coef * ys_train.T.std(axis=0) * npr.normal(size=ys_testobs.T.shape)).T
ys_testct_noisy = (ys_testct.T + noise_coef * ys_train.T.std(axis=0) * npr.normal(size=ys_testct.T.shape)).T
# print("downstream prediction with representations")
# for i in range(ys_testobs.T.shape[1]):
# print("outcome", i)
# # downstream_predictor = MLPClassifier(random_state=randseed, max_iter=300).fit(mus_train.T, ys_train.T[:,i])
# downstream_predictor = MLPRegressor(random_state=randseed, max_iter=200).fit(mus_train.T, ys_train_noisy.T[:,i])
# predacc_train[i] = downstream_predictor.score(mus_train.T, ys_train_noisy.T[:,i])
# predacc_testobs[i] = downstream_predictor.score(mus_testobs.T, ys_testobs_noisy.T[:,i])
# predacc_testct[i] = downstream_predictor.score(mus_testct.T, ys_testct_noisy.T[:,i])
# print("predacc_train", predacc_train)
# print("predacc_testobs", predacc_testobs)
# print("predacc_testct", predacc_testct)
# disentanglement_metrics['predacc_train'] = predacc_train.mean()
# disentanglement_metrics['predacc_testobs'] = predacc_testobs.mean()
# disentanglement_metrics['predacc_testct'] = predacc_testct.mean()
# sys.stdout.flush()
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# print("downstream prediction with raw data")
# predacc_raw_train = np.zeros(ys_train.T.shape[1])
# predacc_raw_testobs = np.zeros(ys_testobs.T.shape[1])
# predacc_raw_testct = np.zeros(ys_testct.T.shape[1])
# for i in range(ys_testobs.T.shape[1]):
# print("outcome", i)
# # downstream_predictor = MLPClassifier(random_state=randseed, max_iter=300).fit(mus_train.T, ys_train.T[:,i])
# downstream_predictor = MLPRegressor(random_state=randseed, max_iter=200).fit(train_data.numpy(), ys_train_noisy.T[:,i])
# predacc_raw_train[i] = downstream_predictor.score(train_data.numpy(), ys_train_noisy.T[:,i])
# predacc_raw_testobs[i] = downstream_predictor.score(testobs_data.numpy(), ys_testobs_noisy.T[:,i])
# predacc_raw_testct[i] = downstream_predictor.score(testct_data.numpy(), ys_testct_noisy.T[:,i])
# print("predacc_raw_train", predacc_raw_train)
# print("predacc_raw_testobs", predacc_raw_testobs)
# print("predacc_raw_testct", predacc_raw_testct)
sys.stdout.flush()
# disentanglement_metrics['predacc_raw_train'] = predacc_raw_train.mean()
# disentanglement_metrics['predacc_raw_testobs'] = predacc_raw_testobs.mean()
# disentanglement_metrics['predacc_raw_testct'] = predacc_raw_testct.mean()
# dci takes very long to compute
# dci_train = DCI_score(mus_train, ys_train, mus_train, ys_train)
# dci_testobs = DCI_score(mus_testobs, ys_testobs, mus_testobs, ys_testobs)
# dci_testct = DCI_score(mus_testct, ys_testct, mus_testct, ys_testct)
# dci_oracle = DCI_score(ys_train, ys_train, ys_testobs, ys_testobs)
# disentanglement_metrics['dci_train'] = dci_train['disentanglement']
# disentanglement_metrics['dci_testobs'] = dci_testobs['disentanglement']
# disentanglement_metrics['dci_testct'] = dci_testct['disentanglement']
# disentanglement_metrics['dci_oracle'] = dci_oracle['disentanglement']
# print("dci train", dci_train)
# print("dci testobs", dci_testobs)
# print("dci testct", dci_testct)
# print("dci oracle", dci_oracle)
# sys.stdout.flush()
# disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
cov_train_mus = np.cov(mus_train)
disentanglement_metrics['gaussian_total_corr_train'] = gaussian_total_correlation(cov_train_mus)
disentanglement_metrics['gaussian_wasserstein_corr_train'] = gaussian_wasserstein_correlation(cov_train_mus)
disentanglement_metrics['gaussian_wasserstein_corr_norm_train'] = disentanglement_metrics['gaussian_wasserstein_corr_train'] / np.sum(np.diag(cov_train_mus))
# disentanglement_metrics['mi_train'] = mutual_info(mus_train.T)
# mi works with discrete data and takes very long to compute
cov_testobs_mus = np.cov(mus_testobs)
disentanglement_metrics['gaussian_total_corr_testobs'] = gaussian_total_correlation(cov_testobs_mus)
disentanglement_metrics['gaussian_wasserstein_corr_testobs'] = gaussian_wasserstein_correlation(cov_testobs_mus)
disentanglement_metrics['gaussian_wasserstein_corr_norm_testobs'] = disentanglement_metrics['gaussian_wasserstein_corr_testobs'] / np.sum(np.diag(cov_testobs_mus))
# disentanglement_metrics['mi_testobs'] = mutual_info(mus_testobs.T)
cov_testct_mus = np.cov(mus_testct)
disentanglement_metrics['gaussian_total_corr_testct'] = gaussian_total_correlation(cov_testct_mus)
disentanglement_metrics['gaussian_wasserstein_corr_testct'] = gaussian_wasserstein_correlation(cov_testct_mus)
disentanglement_metrics['gaussian_wasserstein_corr_norm_testct'] = disentanglement_metrics['gaussian_wasserstein_corr_testct'] / np.sum(np.diag(cov_testct_mus))
# disentanglement_metrics['mi_testct'] = mutual_info(mus_testct.T)
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# below use generative metrics (as opposed to on static testobs and testct)
# create disent_dataset for evaluation
disent_dataset = DisentDataset(dataset)
unsupervised = pd.DataFrame(metric_unsupervised(disent_dataset, representation_function), index=[0])
disentanglement_metrics = pd.concat([disentanglement_metrics, unsupervised], axis=1)
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
betavae = pd.DataFrame(metric_beta_vae(disent_dataset, representation_function), index=[0])
# disentanglement_metrics = pd.concat([disentanglement_metrics, betavae], axis=1)
# disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# sap = pd.DataFrame(metric_sap(disent_dataset, representation_function), index=[0])
# disentanglement_metrics = pd.concat([disentanglement_metrics, sap], axis=1)
# disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# mig = pd.DataFrame(metric_mig(disent_dataset, representation_function), index=[0])
# disentanglement_metrics = pd.concat([disentanglement_metrics, mig], axis=1)
# disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# factorvae = pd.DataFrame(metric_factor_vae(disent_dataset, representation_function), index=[0])
# disentanglement_metrics = pd.concat([disentanglement_metrics, factorvae], axis=1)
# disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# dci = pd.DataFrame(metric_dci(disent_dataset, representation_function), index=[0])
# disentanglement_metrics = pd.concat([disentanglement_metrics, dci], axis=1)
# disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
# disentanglement_metrics = pd.concat([disentanglement_metrics, unsupervised], axis=1)
print(disentanglement_metrics.T)
sys.stdout.flush()
disentanglement_metrics.to_csv(savefilename_prefix + '_disentanglement_metrics.csv')
return disentanglement_metrics
classical_disentanglement_metrics = eval_vae_representation(classical_vae, train_data, testobs_data, testct_data, train_ys, testobs_ys, testct_ys, dataset, vae_name="classical")
ioss_disentanglement_metrics = eval_vae_representation(ioss_vae, train_data, testobs_data, testct_data, train_ys, testobs_ys, testct_ys, dataset, vae_name="ioss")
beta_disentanglement_metrics = eval_vae_representation(beta_vae, train_data, testobs_data, testct_data, train_ys, testobs_ys, testct_ys, dataset, vae_name="beta")
betatc_disentanglement_metrics = eval_vae_representation(betatc_vae, train_data, testobs_data, testct_data, train_ys, testobs_ys, testct_ys, dataset, vae_name="betatc")
factor_disentanglement_metrics = eval_vae_representation(factor_vae, train_data, testobs_data, testct_data, train_ys, testobs_ys, testct_ys, dataset, vae_name="factor")
|
BinmingWen/base-code
|
day06-code/src/demo01/Person.java
|
<filename>day06-code/src/demo01/Person.java<gh_stars>1-10
package demo01;
public class Person {
private String name;
private int age;
public void setName(String name){
if(name.length()>6||name.length()<2){
System.out.println("你设置的人命不符合要求");
return;
}
else {
this.name = name;
}
}
public String getName(){
return this.name;
}
public void setAge(int age) {
if(age>100 || age<0){
System.out.println("你设置的年龄不合法");
return;
}
else{
this.age = age;
}
}
public int getAge(){
return age;
}
}
|
neuroidss/core
|
insonmnia/worker/network/tuner.go
|
<filename>insonmnia/worker/network/tuner.go
package network
import (
"context"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/sonm-io/core/insonmnia/structs"
)
type Cleanup interface {
Close() error
}
// Tuner is responsible for preparing networking and baking proper options in container.HostConfig and
// network.NetworkingConfig.
type Tuner interface {
Tune(ctx context.Context, net *structs.NetworkSpec, hostConfig *container.HostConfig, netConfig *network.NetworkingConfig) (Cleanup, error)
GenerateInvitation(ID string) (*structs.NetworkSpec, error)
GetCleaner(ctx context.Context, ID string) (Cleanup, error)
Tuned(ID string) bool
}
|
mxc-foundation/lora-app-server
|
api/extapi/report.pb.go
|
<gh_stars>1-10
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.13.0
// source: report.proto
package extapi
import (
context "context"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetFiatCurrencyListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetFiatCurrencyListRequest) Reset() {
*x = GetFiatCurrencyListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_report_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetFiatCurrencyListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFiatCurrencyListRequest) ProtoMessage() {}
func (x *GetFiatCurrencyListRequest) ProtoReflect() protoreflect.Message {
mi := &file_report_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFiatCurrencyListRequest.ProtoReflect.Descriptor instead.
func (*GetFiatCurrencyListRequest) Descriptor() ([]byte, []int) {
return file_report_proto_rawDescGZIP(), []int{0}
}
type FiatCurrency struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}
func (x *FiatCurrency) Reset() {
*x = FiatCurrency{}
if protoimpl.UnsafeEnabled {
mi := &file_report_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FiatCurrency) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FiatCurrency) ProtoMessage() {}
func (x *FiatCurrency) ProtoReflect() protoreflect.Message {
mi := &file_report_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FiatCurrency.ProtoReflect.Descriptor instead.
func (*FiatCurrency) Descriptor() ([]byte, []int) {
return file_report_proto_rawDescGZIP(), []int{1}
}
func (x *FiatCurrency) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *FiatCurrency) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
type GetFiatCurrencyListResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
FiatCurrencyList []*FiatCurrency `protobuf:"bytes,1,rep,name=fiat_currency_list,json=fiatCurrencyList,proto3" json:"fiat_currency_list,omitempty"`
}
func (x *GetFiatCurrencyListResponse) Reset() {
*x = GetFiatCurrencyListResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_report_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetFiatCurrencyListResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFiatCurrencyListResponse) ProtoMessage() {}
func (x *GetFiatCurrencyListResponse) ProtoReflect() protoreflect.Message {
mi := &file_report_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFiatCurrencyListResponse.ProtoReflect.Descriptor instead.
func (*GetFiatCurrencyListResponse) Descriptor() ([]byte, []int) {
return file_report_proto_rawDescGZIP(), []int{2}
}
func (x *GetFiatCurrencyListResponse) GetFiatCurrencyList() []*FiatCurrency {
if x != nil {
return x.FiatCurrencyList
}
return nil
}
type MiningReportRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// accept string array for example: ETH_MXC or ETH_MXC\nDHX or DHX
Currency []string `protobuf:"bytes,2,rep,name=currency,proto3" json:"currency,omitempty"`
FiatCurrency string `protobuf:"bytes,3,opt,name=fiat_currency,json=fiatCurrency,proto3" json:"fiat_currency,omitempty"`
Start *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start,proto3" json:"start,omitempty"`
End *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end,proto3" json:"end,omitempty"`
Decimals int32 `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"`
}
func (x *MiningReportRequest) Reset() {
*x = MiningReportRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_report_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MiningReportRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MiningReportRequest) ProtoMessage() {}
func (x *MiningReportRequest) ProtoReflect() protoreflect.Message {
mi := &file_report_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MiningReportRequest.ProtoReflect.Descriptor instead.
func (*MiningReportRequest) Descriptor() ([]byte, []int) {
return file_report_proto_rawDescGZIP(), []int{3}
}
func (x *MiningReportRequest) GetOrganizationId() int64 {
if x != nil {
return x.OrganizationId
}
return 0
}
func (x *MiningReportRequest) GetCurrency() []string {
if x != nil {
return x.Currency
}
return nil
}
func (x *MiningReportRequest) GetFiatCurrency() string {
if x != nil {
return x.FiatCurrency
}
return ""
}
func (x *MiningReportRequest) GetStart() *timestamp.Timestamp {
if x != nil {
return x.Start
}
return nil
}
func (x *MiningReportRequest) GetEnd() *timestamp.Timestamp {
if x != nil {
return x.End
}
return nil
}
func (x *MiningReportRequest) GetDecimals() int32 {
if x != nil {
return x.Decimals
}
return 0
}
type MiningReportResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Finish bool `protobuf:"varint,2,opt,name=finish,proto3" json:"finish,omitempty"`
}
func (x *MiningReportResponse) Reset() {
*x = MiningReportResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_report_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MiningReportResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MiningReportResponse) ProtoMessage() {}
func (x *MiningReportResponse) ProtoReflect() protoreflect.Message {
mi := &file_report_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MiningReportResponse.ProtoReflect.Descriptor instead.
func (*MiningReportResponse) Descriptor() ([]byte, []int) {
return file_report_proto_rawDescGZIP(), []int{4}
}
func (x *MiningReportResponse) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *MiningReportResponse) GetFinish() bool {
if x != nil {
return x.Finish
}
return false
}
var File_report_proto protoreflect.FileDescriptor
var file_report_proto_rawDesc = []byte{
0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1c, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x46, 0x69, 0x61, 0x74,
0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x22, 0x40, 0x0a, 0x0c, 0x46, 0x69, 0x61, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65,
0x6e, 0x63, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x61, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x46, 0x69, 0x61, 0x74,
0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x12, 0x66, 0x69, 0x61, 0x74, 0x5f, 0x63, 0x75, 0x72,
0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x14, 0x2e, 0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x46, 0x69, 0x61, 0x74, 0x43, 0x75,
0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x52, 0x10, 0x66, 0x69, 0x61, 0x74, 0x43, 0x75, 0x72, 0x72,
0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xfb, 0x01, 0x0a, 0x13, 0x4d, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e,
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72,
0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72,
0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x61, 0x74, 0x5f, 0x63, 0x75,
0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x69,
0x61, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74,
0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x2c, 0x0a, 0x03,
0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65,
0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65,
0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x22, 0x42, 0x0a, 0x14, 0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67,
0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12,
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01,
0x28, 0x08, 0x52, 0x06, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x32, 0x8d, 0x03, 0x0a, 0x0d, 0x52,
0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8d, 0x01, 0x0a,
0x13, 0x47, 0x65, 0x74, 0x46, 0x69, 0x61, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79,
0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x47, 0x65,
0x74, 0x46, 0x69, 0x61, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x69, 0x73,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x65, 0x78, 0x74, 0x61, 0x70,
0x69, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x69, 0x61, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63,
0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82,
0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x70, 0x6f,
0x72, 0x74, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x2d, 0x66, 0x69, 0x61,
0x74, 0x2d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x75, 0x0a, 0x0f,
0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x12,
0x1b, 0x2e, 0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52,
0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x65,
0x78, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f,
0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93,
0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f,
0x6d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x2d, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x65, 0x2f, 0x63, 0x73,
0x76, 0x30, 0x01, 0x12, 0x75, 0x0a, 0x0f, 0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70,
0x6f, 0x72, 0x74, 0x50, 0x44, 0x46, 0x12, 0x1b, 0x2e, 0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x2e,
0x4d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f,
0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x6d, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x2d, 0x69, 0x6e,
0x63, 0x6f, 0x6d, 0x65, 0x2f, 0x70, 0x64, 0x66, 0x30, 0x01, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x78, 0x63, 0x2d, 0x66, 0x6f, 0x75,
0x6e, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6c, 0x70, 0x77, 0x61, 0x6e, 0x2d, 0x61, 0x70,
0x70, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x74,
0x61, 0x70, 0x69, 0x3b, 0x65, 0x78, 0x74, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_report_proto_rawDescOnce sync.Once
file_report_proto_rawDescData = file_report_proto_rawDesc
)
func file_report_proto_rawDescGZIP() []byte {
file_report_proto_rawDescOnce.Do(func() {
file_report_proto_rawDescData = protoimpl.X.CompressGZIP(file_report_proto_rawDescData)
})
return file_report_proto_rawDescData
}
var file_report_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_report_proto_goTypes = []interface{}{
(*GetFiatCurrencyListRequest)(nil), // 0: extapi.GetFiatCurrencyListRequest
(*FiatCurrency)(nil), // 1: extapi.FiatCurrency
(*GetFiatCurrencyListResponse)(nil), // 2: extapi.GetFiatCurrencyListResponse
(*MiningReportRequest)(nil), // 3: extapi.MiningReportRequest
(*MiningReportResponse)(nil), // 4: extapi.MiningReportResponse
(*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_report_proto_depIdxs = []int32{
1, // 0: extapi.GetFiatCurrencyListResponse.fiat_currency_list:type_name -> extapi.FiatCurrency
5, // 1: extapi.MiningReportRequest.start:type_name -> google.protobuf.Timestamp
5, // 2: extapi.MiningReportRequest.end:type_name -> google.protobuf.Timestamp
0, // 3: extapi.ReportService.GetFiatCurrencyList:input_type -> extapi.GetFiatCurrencyListRequest
3, // 4: extapi.ReportService.MiningReportCSV:input_type -> extapi.MiningReportRequest
3, // 5: extapi.ReportService.MiningReportPDF:input_type -> extapi.MiningReportRequest
2, // 6: extapi.ReportService.GetFiatCurrencyList:output_type -> extapi.GetFiatCurrencyListResponse
4, // 7: extapi.ReportService.MiningReportCSV:output_type -> extapi.MiningReportResponse
4, // 8: extapi.ReportService.MiningReportPDF:output_type -> extapi.MiningReportResponse
6, // [6:9] is the sub-list for method output_type
3, // [3:6] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_report_proto_init() }
func file_report_proto_init() {
if File_report_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetFiatCurrencyListRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FiatCurrency); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_report_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetFiatCurrencyListResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_report_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MiningReportRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_report_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MiningReportResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_report_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_report_proto_goTypes,
DependencyIndexes: file_report_proto_depIdxs,
MessageInfos: file_report_proto_msgTypes,
}.Build()
File_report_proto = out.File
file_report_proto_rawDesc = nil
file_report_proto_goTypes = nil
file_report_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// ReportServiceClient is the client API for ReportService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ReportServiceClient interface {
// Get support fiat currency list
GetFiatCurrencyList(ctx context.Context, in *GetFiatCurrencyListRequest, opts ...grpc.CallOption) (*GetFiatCurrencyListResponse, error)
// Request to download miningReport in csv format filtered by date
MiningReportCSV(ctx context.Context, in *MiningReportRequest, opts ...grpc.CallOption) (ReportService_MiningReportCSVClient, error)
// Request to download miningReport in pdf filtered by date
MiningReportPDF(ctx context.Context, in *MiningReportRequest, opts ...grpc.CallOption) (ReportService_MiningReportPDFClient, error)
}
type reportServiceClient struct {
cc grpc.ClientConnInterface
}
func NewReportServiceClient(cc grpc.ClientConnInterface) ReportServiceClient {
return &reportServiceClient{cc}
}
func (c *reportServiceClient) GetFiatCurrencyList(ctx context.Context, in *GetFiatCurrencyListRequest, opts ...grpc.CallOption) (*GetFiatCurrencyListResponse, error) {
out := new(GetFiatCurrencyListResponse)
err := c.cc.Invoke(ctx, "/extapi.ReportService/GetFiatCurrencyList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *reportServiceClient) MiningReportCSV(ctx context.Context, in *MiningReportRequest, opts ...grpc.CallOption) (ReportService_MiningReportCSVClient, error) {
stream, err := c.cc.NewStream(ctx, &_ReportService_serviceDesc.Streams[0], "/extapi.ReportService/MiningReportCSV", opts...)
if err != nil {
return nil, err
}
x := &reportServiceMiningReportCSVClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ReportService_MiningReportCSVClient interface {
Recv() (*MiningReportResponse, error)
grpc.ClientStream
}
type reportServiceMiningReportCSVClient struct {
grpc.ClientStream
}
func (x *reportServiceMiningReportCSVClient) Recv() (*MiningReportResponse, error) {
m := new(MiningReportResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *reportServiceClient) MiningReportPDF(ctx context.Context, in *MiningReportRequest, opts ...grpc.CallOption) (ReportService_MiningReportPDFClient, error) {
stream, err := c.cc.NewStream(ctx, &_ReportService_serviceDesc.Streams[1], "/extapi.ReportService/MiningReportPDF", opts...)
if err != nil {
return nil, err
}
x := &reportServiceMiningReportPDFClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ReportService_MiningReportPDFClient interface {
Recv() (*MiningReportResponse, error)
grpc.ClientStream
}
type reportServiceMiningReportPDFClient struct {
grpc.ClientStream
}
func (x *reportServiceMiningReportPDFClient) Recv() (*MiningReportResponse, error) {
m := new(MiningReportResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// ReportServiceServer is the server API for ReportService service.
type ReportServiceServer interface {
// Get support fiat currency list
GetFiatCurrencyList(context.Context, *GetFiatCurrencyListRequest) (*GetFiatCurrencyListResponse, error)
// Request to download miningReport in csv format filtered by date
MiningReportCSV(*MiningReportRequest, ReportService_MiningReportCSVServer) error
// Request to download miningReport in pdf filtered by date
MiningReportPDF(*MiningReportRequest, ReportService_MiningReportPDFServer) error
}
// UnimplementedReportServiceServer can be embedded to have forward compatible implementations.
type UnimplementedReportServiceServer struct {
}
func (*UnimplementedReportServiceServer) GetFiatCurrencyList(context.Context, *GetFiatCurrencyListRequest) (*GetFiatCurrencyListResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetFiatCurrencyList not implemented")
}
func (*UnimplementedReportServiceServer) MiningReportCSV(*MiningReportRequest, ReportService_MiningReportCSVServer) error {
return status.Errorf(codes.Unimplemented, "method MiningReportCSV not implemented")
}
func (*UnimplementedReportServiceServer) MiningReportPDF(*MiningReportRequest, ReportService_MiningReportPDFServer) error {
return status.Errorf(codes.Unimplemented, "method MiningReportPDF not implemented")
}
func RegisterReportServiceServer(s *grpc.Server, srv ReportServiceServer) {
s.RegisterService(&_ReportService_serviceDesc, srv)
}
func _ReportService_GetFiatCurrencyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFiatCurrencyListRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ReportServiceServer).GetFiatCurrencyList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/extapi.ReportService/GetFiatCurrencyList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ReportServiceServer).GetFiatCurrencyList(ctx, req.(*GetFiatCurrencyListRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ReportService_MiningReportCSV_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(MiningReportRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ReportServiceServer).MiningReportCSV(m, &reportServiceMiningReportCSVServer{stream})
}
type ReportService_MiningReportCSVServer interface {
Send(*MiningReportResponse) error
grpc.ServerStream
}
type reportServiceMiningReportCSVServer struct {
grpc.ServerStream
}
func (x *reportServiceMiningReportCSVServer) Send(m *MiningReportResponse) error {
return x.ServerStream.SendMsg(m)
}
func _ReportService_MiningReportPDF_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(MiningReportRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(ReportServiceServer).MiningReportPDF(m, &reportServiceMiningReportPDFServer{stream})
}
type ReportService_MiningReportPDFServer interface {
Send(*MiningReportResponse) error
grpc.ServerStream
}
type reportServiceMiningReportPDFServer struct {
grpc.ServerStream
}
func (x *reportServiceMiningReportPDFServer) Send(m *MiningReportResponse) error {
return x.ServerStream.SendMsg(m)
}
var _ReportService_serviceDesc = grpc.ServiceDesc{
ServiceName: "extapi.ReportService",
HandlerType: (*ReportServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetFiatCurrencyList",
Handler: _ReportService_GetFiatCurrencyList_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "MiningReportCSV",
Handler: _ReportService_MiningReportCSV_Handler,
ServerStreams: true,
},
{
StreamName: "MiningReportPDF",
Handler: _ReportService_MiningReportPDF_Handler,
ServerStreams: true,
},
},
Metadata: "report.proto",
}
|
Skycoder42/SeasonProxer
|
gui/widgets/logindialog.cpp
|
#include "logindialog.h"
#include "ui_logindialog.h"
#include <QtMvvmCore/Binding>
#include <dialogmaster.h>
LoginDialog::LoginDialog(QtMvvm::ViewModel *viewModel, QWidget *parent) :
QDialog(parent),
_viewModel(static_cast<LoginViewModel*>(viewModel)),
_ui(new Ui::LoginDialog)
{
_ui->setupUi(this);
DialogMaster::masterDialog(this, true);
QtMvvm::bind(_viewModel, "userName",
_ui->usernameLineEdit, "text",
QtMvvm::Binding::TwoWay,
nullptr,
"editingFinished()");
QtMvvm::bind(_viewModel, "password",
_ui->passwordLineEdit, "text",
QtMvvm::Binding::TwoWay,
nullptr,
"editingFinished()");
QtMvvm::bind(_viewModel, "authCode",
_ui->faCodeLineEdit, "text",
QtMvvm::Binding::TwoWay,
nullptr,
"editingFinished()");
QtMvvm::bind(_viewModel, "storePassword",
_ui->rememberPasswordCheckBox, "checked");
connect(_viewModel, &LoginViewModel::loadingChanged,
this, &LoginDialog::setDisabled);
connect(_viewModel, &LoginViewModel::loginSuccessful,
this, &LoginDialog::close);
//FEATURE disable for now
_ui->rememberPasswordCheckBox->hide();
}
LoginDialog::~LoginDialog()
{
delete _ui;
}
void LoginDialog::accept()
{
_viewModel->login();
}
|
josh-barker/terraform-provider-azuredevops
|
azuredevops/internal/acceptancetests/resource_environment_test.go
|
<gh_stars>1-10
//go:build (all || resource_environment) && !exclude_resource_environment
// +build all resource_environment
// +build !exclude_resource_environment
package acceptancetests
import (
"fmt"
"strconv"
"testing"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/taskagent"
"github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/acceptancetests/testutils"
"github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/client"
"github.com/microsoft/terraform-provider-azuredevops/azuredevops/internal/utils/converter"
)
// Verifies that the following sequence of events occurrs without error:
// (1) TF apply creates environment
// (2) TF state values are set
// (3) Environment can be queried by ID and has expected name
// (4) TF apply updates environment with new name
// (5) Environment can be queried by ID and has expected name
// (6) TF destroy deletes environment
// (7) Environment can no longer be queried by ID
func TestAccEnvironment_CreateAndUpdate(t *testing.T) {
projectName := testutils.GenerateResourceName()
environmentNameFirst := testutils.GenerateResourceName()
environmentNameSecond := testutils.GenerateResourceName()
tfNode := "azuredevops_environment.environment"
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testutils.PreCheck(t, nil) },
Providers: testutils.GetProviders(),
CheckDestroy: checkEnvironmentDestroyed,
Steps: []resource.TestStep{
{
Config: testutils.HclEnvironmentResource(projectName, environmentNameFirst),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(tfNode, "name", environmentNameFirst),
resource.TestCheckResourceAttr(tfNode, "description", ""),
resource.TestCheckResourceAttrSet(tfNode, "project_id"),
checkEnvironmentExists(environmentNameFirst),
),
},
{
Config: testutils.HclEnvironmentResource(projectName, environmentNameSecond),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(tfNode, "name", environmentNameSecond),
resource.TestCheckResourceAttr(tfNode, "description", ""),
resource.TestCheckResourceAttrSet(tfNode, "project_id"),
checkEnvironmentExists(environmentNameSecond),
),
},
{
// Resource Acceptance Testing https://www.terraform.io/docs/extend/resources/import.html#resource-acceptance-testing-implementation
ResourceName: tfNode,
ImportStateIdFunc: testutils.ComputeProjectQualifiedResourceImportID(tfNode),
ImportState: true,
ImportStateVerify: true,
},
},
})
}
// Given the name of an environment, this will return a function that will check whether
// or not the environment (1) exists in the state and (2) exist in AzDO and (3) has the correct name
func checkEnvironmentExists(expectedName string) resource.TestCheckFunc {
return func(s *terraform.State) error {
resource, ok := s.RootModule().Resources["azuredevops_environment.environment"]
if !ok {
return fmt.Errorf("Did not find an environment in the TF state")
}
clients := testutils.GetProvider().Meta().(*client.AggregatedClient)
id, err := strconv.Atoi(resource.Primary.ID)
if err != nil {
return fmt.Errorf("Parse ID error, ID: %v !. Error= %v", resource.Primary.ID, err)
}
projectID := resource.Primary.Attributes["project_id"]
environment, err := readEnvironment(clients, id, projectID)
if err != nil {
return fmt.Errorf("Environment with ID=%d cannot be found!. Error=%v", id, err)
}
if *environment.Name != expectedName {
return fmt.Errorf("Environment with ID=%d has Name=%s, but expected Name=%s", id, *environment.Name, expectedName)
}
return nil
}
}
// verifies that environment referenced in the state is destroyed. This will be invoked
// *after* terraform destroys the resource but *before* the state is wiped clean.
func checkEnvironmentDestroyed(s *terraform.State) error {
clients := testutils.GetProvider().Meta().(*client.AggregatedClient)
// verify that every environment referenced in the state does not exist in AzDO
for _, resource := range s.RootModule().Resources {
if resource.Type != "azuredevops_environment" {
continue
}
id, err := strconv.Atoi(resource.Primary.ID)
if err != nil {
return fmt.Errorf("Environment ID=%d cannot be parsed!. Error=%v", id, err)
}
projectID := resource.Primary.Attributes["project_id"]
// indicates the environment still exists - this should fail the test
if _, err := readEnvironment(clients, id, projectID); err == nil {
return fmt.Errorf("Environment ID %d should not exist", id)
}
}
return nil
}
// Lookup an Environment using the ID and the project ID.
func readEnvironment(clients *client.AggregatedClient, environmentID int, projectID string) (*taskagent.EnvironmentInstance, error) {
return clients.TaskAgentClient.GetEnvironmentById(
clients.Ctx,
taskagent.GetEnvironmentByIdArgs{
Project: converter.String(projectID),
EnvironmentId: &environmentID,
},
)
}
|
PhilipsOnFhir/bulk-data-proxy
|
src/main/java/com/philips/research/philipsonfhir/fhirproxy/support/proxy/operation/GenericFhirResourceOperationCall.java
|
<reponame>PhilipsOnFhir/bulk-data-proxy<filename>src/main/java/com/philips/research/philipsonfhir/fhirproxy/support/proxy/operation/GenericFhirResourceOperationCall.java
package com.philips.research.philipsonfhir.fhirproxy.support.proxy.operation;
import com.philips.research.philipsonfhir.fhirproxy.support.proxy.service.IFhirServer;
import org.hl7.fhir.dstu3.model.OperationOutcome;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.IBaseResource;
import java.util.HashMap;
import java.util.Map;
public class GenericFhirResourceOperationCall implements FhirOperationCall {
private final IFhirServer fhirServer;
private final Map<String, String> queryParams;
private final String baseResource;
private final String operationName;
private IBaseResource result = null;
public GenericFhirResourceOperationCall(String baseResource, String operationName, IFhirServer fhirServer, Map<String, String> queryParams) {
this.fhirServer = fhirServer;
this.queryParams = queryParams;
this.baseResource = baseResource;
this.operationName = operationName;
}
@Override
public IBaseResource getResult() throws FHIRException {
if ( result == null ) {
this.result = this.fhirServer.getResourceOperation( baseResource, operationName, queryParams );
}
return this.result;
}
@Override
public String getDescription() {
return "default";
}
@Override
public Map<String, OperationOutcome> getErrors() {
return new HashMap<>();
}
}
|
diyouclub/litemall
|
litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallExpressOrderExample.java
|
<filename>litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallExpressOrderExample.java
package org.linlinjava.litemall.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class LitemallExpressOrderExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public LitemallExpressOrderExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallExpressOrderExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallExpressOrderExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Criteria newAndCreateCriteria() {
LitemallExpressOrderExample example = new LitemallExpressOrderExample();
return example.createCriteria();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andOrderidIsNull() {
addCriterion("orderid is null");
return (Criteria) this;
}
public Criteria andOrderidIsNotNull() {
addCriterion("orderid is not null");
return (Criteria) this;
}
public Criteria andOrderidEqualTo(String value) {
addCriterion("orderid =", value, "orderid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderidEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("orderid = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderidNotEqualTo(String value) {
addCriterion("orderid <>", value, "orderid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderidNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("orderid <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderidGreaterThan(String value) {
addCriterion("orderid >", value, "orderid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderidGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("orderid > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderidGreaterThanOrEqualTo(String value) {
addCriterion("orderid >=", value, "orderid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderidGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("orderid >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderidLessThan(String value) {
addCriterion("orderid <", value, "orderid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderidLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("orderid < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderidLessThanOrEqualTo(String value) {
addCriterion("orderid <=", value, "orderid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderidLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("orderid <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderidLike(String value) {
addCriterion("orderid like", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotLike(String value) {
addCriterion("orderid not like", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidIn(List<String> values) {
addCriterion("orderid in", values, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotIn(List<String> values) {
addCriterion("orderid not in", values, "orderid");
return (Criteria) this;
}
public Criteria andOrderidBetween(String value1, String value2) {
addCriterion("orderid between", value1, value2, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotBetween(String value1, String value2) {
addCriterion("orderid not between", value1, value2, "orderid");
return (Criteria) this;
}
public Criteria andMailnoIsNull() {
addCriterion("mailno is null");
return (Criteria) this;
}
public Criteria andMailnoIsNotNull() {
addCriterion("mailno is not null");
return (Criteria) this;
}
public Criteria andMailnoEqualTo(String value) {
addCriterion("mailno =", value, "mailno");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andMailnoEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("mailno = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andMailnoNotEqualTo(String value) {
addCriterion("mailno <>", value, "mailno");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andMailnoNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("mailno <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andMailnoGreaterThan(String value) {
addCriterion("mailno >", value, "mailno");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andMailnoGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("mailno > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andMailnoGreaterThanOrEqualTo(String value) {
addCriterion("mailno >=", value, "mailno");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andMailnoGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("mailno >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andMailnoLessThan(String value) {
addCriterion("mailno <", value, "mailno");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andMailnoLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("mailno < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andMailnoLessThanOrEqualTo(String value) {
addCriterion("mailno <=", value, "mailno");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andMailnoLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("mailno <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andMailnoLike(String value) {
addCriterion("mailno like", value, "mailno");
return (Criteria) this;
}
public Criteria andMailnoNotLike(String value) {
addCriterion("mailno not like", value, "mailno");
return (Criteria) this;
}
public Criteria andMailnoIn(List<String> values) {
addCriterion("mailno in", values, "mailno");
return (Criteria) this;
}
public Criteria andMailnoNotIn(List<String> values) {
addCriterion("mailno not in", values, "mailno");
return (Criteria) this;
}
public Criteria andMailnoBetween(String value1, String value2) {
addCriterion("mailno between", value1, value2, "mailno");
return (Criteria) this;
}
public Criteria andMailnoNotBetween(String value1, String value2) {
addCriterion("mailno not between", value1, value2, "mailno");
return (Criteria) this;
}
public Criteria andIsGenBillNoIsNull() {
addCriterion("is_gen_bill_no is null");
return (Criteria) this;
}
public Criteria andIsGenBillNoIsNotNull() {
addCriterion("is_gen_bill_no is not null");
return (Criteria) this;
}
public Criteria andIsGenBillNoEqualTo(Integer value) {
addCriterion("is_gen_bill_no =", value, "isGenBillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsGenBillNoEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_gen_bill_no = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsGenBillNoNotEqualTo(Integer value) {
addCriterion("is_gen_bill_no <>", value, "isGenBillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsGenBillNoNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_gen_bill_no <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsGenBillNoGreaterThan(Integer value) {
addCriterion("is_gen_bill_no >", value, "isGenBillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsGenBillNoGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_gen_bill_no > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsGenBillNoGreaterThanOrEqualTo(Integer value) {
addCriterion("is_gen_bill_no >=", value, "isGenBillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsGenBillNoGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_gen_bill_no >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsGenBillNoLessThan(Integer value) {
addCriterion("is_gen_bill_no <", value, "isGenBillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsGenBillNoLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_gen_bill_no < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsGenBillNoLessThanOrEqualTo(Integer value) {
addCriterion("is_gen_bill_no <=", value, "isGenBillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsGenBillNoLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_gen_bill_no <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsGenBillNoIn(List<Integer> values) {
addCriterion("is_gen_bill_no in", values, "isGenBillNo");
return (Criteria) this;
}
public Criteria andIsGenBillNoNotIn(List<Integer> values) {
addCriterion("is_gen_bill_no not in", values, "isGenBillNo");
return (Criteria) this;
}
public Criteria andIsGenBillNoBetween(Integer value1, Integer value2) {
addCriterion("is_gen_bill_no between", value1, value2, "isGenBillNo");
return (Criteria) this;
}
public Criteria andIsGenBillNoNotBetween(Integer value1, Integer value2) {
addCriterion("is_gen_bill_no not between", value1, value2, "isGenBillNo");
return (Criteria) this;
}
public Criteria andJCompanyIsNull() {
addCriterion("j_company is null");
return (Criteria) this;
}
public Criteria andJCompanyIsNotNull() {
addCriterion("j_company is not null");
return (Criteria) this;
}
public Criteria andJCompanyEqualTo(String value) {
addCriterion("j_company =", value, "jCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCompanyEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_company = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCompanyNotEqualTo(String value) {
addCriterion("j_company <>", value, "jCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCompanyNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_company <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCompanyGreaterThan(String value) {
addCriterion("j_company >", value, "jCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCompanyGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_company > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCompanyGreaterThanOrEqualTo(String value) {
addCriterion("j_company >=", value, "jCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCompanyGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_company >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCompanyLessThan(String value) {
addCriterion("j_company <", value, "jCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCompanyLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_company < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCompanyLessThanOrEqualTo(String value) {
addCriterion("j_company <=", value, "jCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCompanyLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_company <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCompanyLike(String value) {
addCriterion("j_company like", value, "jCompany");
return (Criteria) this;
}
public Criteria andJCompanyNotLike(String value) {
addCriterion("j_company not like", value, "jCompany");
return (Criteria) this;
}
public Criteria andJCompanyIn(List<String> values) {
addCriterion("j_company in", values, "jCompany");
return (Criteria) this;
}
public Criteria andJCompanyNotIn(List<String> values) {
addCriterion("j_company not in", values, "jCompany");
return (Criteria) this;
}
public Criteria andJCompanyBetween(String value1, String value2) {
addCriterion("j_company between", value1, value2, "jCompany");
return (Criteria) this;
}
public Criteria andJCompanyNotBetween(String value1, String value2) {
addCriterion("j_company not between", value1, value2, "jCompany");
return (Criteria) this;
}
public Criteria andJContactIsNull() {
addCriterion("j_contact is null");
return (Criteria) this;
}
public Criteria andJContactIsNotNull() {
addCriterion("j_contact is not null");
return (Criteria) this;
}
public Criteria andJContactEqualTo(String value) {
addCriterion("j_contact =", value, "jContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJContactEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_contact = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJContactNotEqualTo(String value) {
addCriterion("j_contact <>", value, "jContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJContactNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_contact <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJContactGreaterThan(String value) {
addCriterion("j_contact >", value, "jContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJContactGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_contact > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJContactGreaterThanOrEqualTo(String value) {
addCriterion("j_contact >=", value, "jContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJContactGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_contact >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJContactLessThan(String value) {
addCriterion("j_contact <", value, "jContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJContactLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_contact < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJContactLessThanOrEqualTo(String value) {
addCriterion("j_contact <=", value, "jContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJContactLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_contact <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJContactLike(String value) {
addCriterion("j_contact like", value, "jContact");
return (Criteria) this;
}
public Criteria andJContactNotLike(String value) {
addCriterion("j_contact not like", value, "jContact");
return (Criteria) this;
}
public Criteria andJContactIn(List<String> values) {
addCriterion("j_contact in", values, "jContact");
return (Criteria) this;
}
public Criteria andJContactNotIn(List<String> values) {
addCriterion("j_contact not in", values, "jContact");
return (Criteria) this;
}
public Criteria andJContactBetween(String value1, String value2) {
addCriterion("j_contact between", value1, value2, "jContact");
return (Criteria) this;
}
public Criteria andJContactNotBetween(String value1, String value2) {
addCriterion("j_contact not between", value1, value2, "jContact");
return (Criteria) this;
}
public Criteria andJTelIsNull() {
addCriterion("j_tel is null");
return (Criteria) this;
}
public Criteria andJTelIsNotNull() {
addCriterion("j_tel is not null");
return (Criteria) this;
}
public Criteria andJTelEqualTo(String value) {
addCriterion("j_tel =", value, "jTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJTelEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_tel = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJTelNotEqualTo(String value) {
addCriterion("j_tel <>", value, "jTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJTelNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_tel <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJTelGreaterThan(String value) {
addCriterion("j_tel >", value, "jTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJTelGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_tel > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJTelGreaterThanOrEqualTo(String value) {
addCriterion("j_tel >=", value, "jTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJTelGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_tel >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJTelLessThan(String value) {
addCriterion("j_tel <", value, "jTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJTelLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_tel < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJTelLessThanOrEqualTo(String value) {
addCriterion("j_tel <=", value, "jTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJTelLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_tel <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJTelLike(String value) {
addCriterion("j_tel like", value, "jTel");
return (Criteria) this;
}
public Criteria andJTelNotLike(String value) {
addCriterion("j_tel not like", value, "jTel");
return (Criteria) this;
}
public Criteria andJTelIn(List<String> values) {
addCriterion("j_tel in", values, "jTel");
return (Criteria) this;
}
public Criteria andJTelNotIn(List<String> values) {
addCriterion("j_tel not in", values, "jTel");
return (Criteria) this;
}
public Criteria andJTelBetween(String value1, String value2) {
addCriterion("j_tel between", value1, value2, "jTel");
return (Criteria) this;
}
public Criteria andJTelNotBetween(String value1, String value2) {
addCriterion("j_tel not between", value1, value2, "jTel");
return (Criteria) this;
}
public Criteria andJMobileIsNull() {
addCriterion("j_mobile is null");
return (Criteria) this;
}
public Criteria andJMobileIsNotNull() {
addCriterion("j_mobile is not null");
return (Criteria) this;
}
public Criteria andJMobileEqualTo(String value) {
addCriterion("j_mobile =", value, "jMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJMobileEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_mobile = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJMobileNotEqualTo(String value) {
addCriterion("j_mobile <>", value, "jMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJMobileNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_mobile <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJMobileGreaterThan(String value) {
addCriterion("j_mobile >", value, "jMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJMobileGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_mobile > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJMobileGreaterThanOrEqualTo(String value) {
addCriterion("j_mobile >=", value, "jMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJMobileGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_mobile >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJMobileLessThan(String value) {
addCriterion("j_mobile <", value, "jMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJMobileLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_mobile < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJMobileLessThanOrEqualTo(String value) {
addCriterion("j_mobile <=", value, "jMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJMobileLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_mobile <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJMobileLike(String value) {
addCriterion("j_mobile like", value, "jMobile");
return (Criteria) this;
}
public Criteria andJMobileNotLike(String value) {
addCriterion("j_mobile not like", value, "jMobile");
return (Criteria) this;
}
public Criteria andJMobileIn(List<String> values) {
addCriterion("j_mobile in", values, "jMobile");
return (Criteria) this;
}
public Criteria andJMobileNotIn(List<String> values) {
addCriterion("j_mobile not in", values, "jMobile");
return (Criteria) this;
}
public Criteria andJMobileBetween(String value1, String value2) {
addCriterion("j_mobile between", value1, value2, "jMobile");
return (Criteria) this;
}
public Criteria andJMobileNotBetween(String value1, String value2) {
addCriterion("j_mobile not between", value1, value2, "jMobile");
return (Criteria) this;
}
public Criteria andJShippercodeIsNull() {
addCriterion("j_shippercode is null");
return (Criteria) this;
}
public Criteria andJShippercodeIsNotNull() {
addCriterion("j_shippercode is not null");
return (Criteria) this;
}
public Criteria andJShippercodeEqualTo(String value) {
addCriterion("j_shippercode =", value, "jShippercode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJShippercodeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_shippercode = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJShippercodeNotEqualTo(String value) {
addCriterion("j_shippercode <>", value, "jShippercode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJShippercodeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_shippercode <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJShippercodeGreaterThan(String value) {
addCriterion("j_shippercode >", value, "jShippercode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJShippercodeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_shippercode > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJShippercodeGreaterThanOrEqualTo(String value) {
addCriterion("j_shippercode >=", value, "jShippercode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJShippercodeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_shippercode >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJShippercodeLessThan(String value) {
addCriterion("j_shippercode <", value, "jShippercode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJShippercodeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_shippercode < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJShippercodeLessThanOrEqualTo(String value) {
addCriterion("j_shippercode <=", value, "jShippercode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJShippercodeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_shippercode <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJShippercodeLike(String value) {
addCriterion("j_shippercode like", value, "jShippercode");
return (Criteria) this;
}
public Criteria andJShippercodeNotLike(String value) {
addCriterion("j_shippercode not like", value, "jShippercode");
return (Criteria) this;
}
public Criteria andJShippercodeIn(List<String> values) {
addCriterion("j_shippercode in", values, "jShippercode");
return (Criteria) this;
}
public Criteria andJShippercodeNotIn(List<String> values) {
addCriterion("j_shippercode not in", values, "jShippercode");
return (Criteria) this;
}
public Criteria andJShippercodeBetween(String value1, String value2) {
addCriterion("j_shippercode between", value1, value2, "jShippercode");
return (Criteria) this;
}
public Criteria andJShippercodeNotBetween(String value1, String value2) {
addCriterion("j_shippercode not between", value1, value2, "jShippercode");
return (Criteria) this;
}
public Criteria andJCountryIsNull() {
addCriterion("j_country is null");
return (Criteria) this;
}
public Criteria andJCountryIsNotNull() {
addCriterion("j_country is not null");
return (Criteria) this;
}
public Criteria andJCountryEqualTo(String value) {
addCriterion("j_country =", value, "jCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountryEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_country = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountryNotEqualTo(String value) {
addCriterion("j_country <>", value, "jCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountryNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_country <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountryGreaterThan(String value) {
addCriterion("j_country >", value, "jCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountryGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_country > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountryGreaterThanOrEqualTo(String value) {
addCriterion("j_country >=", value, "jCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountryGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_country >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountryLessThan(String value) {
addCriterion("j_country <", value, "jCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountryLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_country < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountryLessThanOrEqualTo(String value) {
addCriterion("j_country <=", value, "jCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountryLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_country <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountryLike(String value) {
addCriterion("j_country like", value, "jCountry");
return (Criteria) this;
}
public Criteria andJCountryNotLike(String value) {
addCriterion("j_country not like", value, "jCountry");
return (Criteria) this;
}
public Criteria andJCountryIn(List<String> values) {
addCriterion("j_country in", values, "jCountry");
return (Criteria) this;
}
public Criteria andJCountryNotIn(List<String> values) {
addCriterion("j_country not in", values, "jCountry");
return (Criteria) this;
}
public Criteria andJCountryBetween(String value1, String value2) {
addCriterion("j_country between", value1, value2, "jCountry");
return (Criteria) this;
}
public Criteria andJCountryNotBetween(String value1, String value2) {
addCriterion("j_country not between", value1, value2, "jCountry");
return (Criteria) this;
}
public Criteria andJProvinceIsNull() {
addCriterion("j_province is null");
return (Criteria) this;
}
public Criteria andJProvinceIsNotNull() {
addCriterion("j_province is not null");
return (Criteria) this;
}
public Criteria andJProvinceEqualTo(String value) {
addCriterion("j_province =", value, "jProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJProvinceEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_province = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJProvinceNotEqualTo(String value) {
addCriterion("j_province <>", value, "jProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJProvinceNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_province <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJProvinceGreaterThan(String value) {
addCriterion("j_province >", value, "jProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJProvinceGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_province > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJProvinceGreaterThanOrEqualTo(String value) {
addCriterion("j_province >=", value, "jProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJProvinceGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_province >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJProvinceLessThan(String value) {
addCriterion("j_province <", value, "jProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJProvinceLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_province < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJProvinceLessThanOrEqualTo(String value) {
addCriterion("j_province <=", value, "jProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJProvinceLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_province <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJProvinceLike(String value) {
addCriterion("j_province like", value, "jProvince");
return (Criteria) this;
}
public Criteria andJProvinceNotLike(String value) {
addCriterion("j_province not like", value, "jProvince");
return (Criteria) this;
}
public Criteria andJProvinceIn(List<String> values) {
addCriterion("j_province in", values, "jProvince");
return (Criteria) this;
}
public Criteria andJProvinceNotIn(List<String> values) {
addCriterion("j_province not in", values, "jProvince");
return (Criteria) this;
}
public Criteria andJProvinceBetween(String value1, String value2) {
addCriterion("j_province between", value1, value2, "jProvince");
return (Criteria) this;
}
public Criteria andJProvinceNotBetween(String value1, String value2) {
addCriterion("j_province not between", value1, value2, "jProvince");
return (Criteria) this;
}
public Criteria andJCityIsNull() {
addCriterion("j_city is null");
return (Criteria) this;
}
public Criteria andJCityIsNotNull() {
addCriterion("j_city is not null");
return (Criteria) this;
}
public Criteria andJCityEqualTo(String value) {
addCriterion("j_city =", value, "jCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCityEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_city = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCityNotEqualTo(String value) {
addCriterion("j_city <>", value, "jCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCityNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_city <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCityGreaterThan(String value) {
addCriterion("j_city >", value, "jCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCityGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_city > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCityGreaterThanOrEqualTo(String value) {
addCriterion("j_city >=", value, "jCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCityGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_city >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCityLessThan(String value) {
addCriterion("j_city <", value, "jCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCityLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_city < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCityLessThanOrEqualTo(String value) {
addCriterion("j_city <=", value, "jCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCityLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_city <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCityLike(String value) {
addCriterion("j_city like", value, "jCity");
return (Criteria) this;
}
public Criteria andJCityNotLike(String value) {
addCriterion("j_city not like", value, "jCity");
return (Criteria) this;
}
public Criteria andJCityIn(List<String> values) {
addCriterion("j_city in", values, "jCity");
return (Criteria) this;
}
public Criteria andJCityNotIn(List<String> values) {
addCriterion("j_city not in", values, "jCity");
return (Criteria) this;
}
public Criteria andJCityBetween(String value1, String value2) {
addCriterion("j_city between", value1, value2, "jCity");
return (Criteria) this;
}
public Criteria andJCityNotBetween(String value1, String value2) {
addCriterion("j_city not between", value1, value2, "jCity");
return (Criteria) this;
}
public Criteria andJCountyIsNull() {
addCriterion("j_county is null");
return (Criteria) this;
}
public Criteria andJCountyIsNotNull() {
addCriterion("j_county is not null");
return (Criteria) this;
}
public Criteria andJCountyEqualTo(String value) {
addCriterion("j_county =", value, "jCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountyEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_county = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountyNotEqualTo(String value) {
addCriterion("j_county <>", value, "jCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountyNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_county <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountyGreaterThan(String value) {
addCriterion("j_county >", value, "jCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountyGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_county > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountyGreaterThanOrEqualTo(String value) {
addCriterion("j_county >=", value, "jCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountyGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_county >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountyLessThan(String value) {
addCriterion("j_county <", value, "jCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountyLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_county < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountyLessThanOrEqualTo(String value) {
addCriterion("j_county <=", value, "jCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJCountyLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_county <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJCountyLike(String value) {
addCriterion("j_county like", value, "jCounty");
return (Criteria) this;
}
public Criteria andJCountyNotLike(String value) {
addCriterion("j_county not like", value, "jCounty");
return (Criteria) this;
}
public Criteria andJCountyIn(List<String> values) {
addCriterion("j_county in", values, "jCounty");
return (Criteria) this;
}
public Criteria andJCountyNotIn(List<String> values) {
addCriterion("j_county not in", values, "jCounty");
return (Criteria) this;
}
public Criteria andJCountyBetween(String value1, String value2) {
addCriterion("j_county between", value1, value2, "jCounty");
return (Criteria) this;
}
public Criteria andJCountyNotBetween(String value1, String value2) {
addCriterion("j_county not between", value1, value2, "jCounty");
return (Criteria) this;
}
public Criteria andJAddressIsNull() {
addCriterion("j_address is null");
return (Criteria) this;
}
public Criteria andJAddressIsNotNull() {
addCriterion("j_address is not null");
return (Criteria) this;
}
public Criteria andJAddressEqualTo(String value) {
addCriterion("j_address =", value, "jAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJAddressEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_address = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJAddressNotEqualTo(String value) {
addCriterion("j_address <>", value, "jAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJAddressNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_address <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJAddressGreaterThan(String value) {
addCriterion("j_address >", value, "jAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJAddressGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_address > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJAddressGreaterThanOrEqualTo(String value) {
addCriterion("j_address >=", value, "jAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJAddressGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_address >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJAddressLessThan(String value) {
addCriterion("j_address <", value, "jAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJAddressLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_address < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJAddressLessThanOrEqualTo(String value) {
addCriterion("j_address <=", value, "jAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJAddressLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_address <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJAddressLike(String value) {
addCriterion("j_address like", value, "jAddress");
return (Criteria) this;
}
public Criteria andJAddressNotLike(String value) {
addCriterion("j_address not like", value, "jAddress");
return (Criteria) this;
}
public Criteria andJAddressIn(List<String> values) {
addCriterion("j_address in", values, "jAddress");
return (Criteria) this;
}
public Criteria andJAddressNotIn(List<String> values) {
addCriterion("j_address not in", values, "jAddress");
return (Criteria) this;
}
public Criteria andJAddressBetween(String value1, String value2) {
addCriterion("j_address between", value1, value2, "jAddress");
return (Criteria) this;
}
public Criteria andJAddressNotBetween(String value1, String value2) {
addCriterion("j_address not between", value1, value2, "jAddress");
return (Criteria) this;
}
public Criteria andJPostCodeIsNull() {
addCriterion("j_post_code is null");
return (Criteria) this;
}
public Criteria andJPostCodeIsNotNull() {
addCriterion("j_post_code is not null");
return (Criteria) this;
}
public Criteria andJPostCodeEqualTo(String value) {
addCriterion("j_post_code =", value, "jPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJPostCodeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_post_code = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJPostCodeNotEqualTo(String value) {
addCriterion("j_post_code <>", value, "jPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJPostCodeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_post_code <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJPostCodeGreaterThan(String value) {
addCriterion("j_post_code >", value, "jPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJPostCodeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_post_code > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJPostCodeGreaterThanOrEqualTo(String value) {
addCriterion("j_post_code >=", value, "jPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJPostCodeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_post_code >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJPostCodeLessThan(String value) {
addCriterion("j_post_code <", value, "jPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJPostCodeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_post_code < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJPostCodeLessThanOrEqualTo(String value) {
addCriterion("j_post_code <=", value, "jPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andJPostCodeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("j_post_code <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andJPostCodeLike(String value) {
addCriterion("j_post_code like", value, "jPostCode");
return (Criteria) this;
}
public Criteria andJPostCodeNotLike(String value) {
addCriterion("j_post_code not like", value, "jPostCode");
return (Criteria) this;
}
public Criteria andJPostCodeIn(List<String> values) {
addCriterion("j_post_code in", values, "jPostCode");
return (Criteria) this;
}
public Criteria andJPostCodeNotIn(List<String> values) {
addCriterion("j_post_code not in", values, "jPostCode");
return (Criteria) this;
}
public Criteria andJPostCodeBetween(String value1, String value2) {
addCriterion("j_post_code between", value1, value2, "jPostCode");
return (Criteria) this;
}
public Criteria andJPostCodeNotBetween(String value1, String value2) {
addCriterion("j_post_code not between", value1, value2, "jPostCode");
return (Criteria) this;
}
public Criteria andDCompanyIsNull() {
addCriterion("d_company is null");
return (Criteria) this;
}
public Criteria andDCompanyIsNotNull() {
addCriterion("d_company is not null");
return (Criteria) this;
}
public Criteria andDCompanyEqualTo(String value) {
addCriterion("d_company =", value, "dCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCompanyEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_company = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCompanyNotEqualTo(String value) {
addCriterion("d_company <>", value, "dCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCompanyNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_company <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCompanyGreaterThan(String value) {
addCriterion("d_company >", value, "dCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCompanyGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_company > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCompanyGreaterThanOrEqualTo(String value) {
addCriterion("d_company >=", value, "dCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCompanyGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_company >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCompanyLessThan(String value) {
addCriterion("d_company <", value, "dCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCompanyLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_company < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCompanyLessThanOrEqualTo(String value) {
addCriterion("d_company <=", value, "dCompany");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCompanyLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_company <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCompanyLike(String value) {
addCriterion("d_company like", value, "dCompany");
return (Criteria) this;
}
public Criteria andDCompanyNotLike(String value) {
addCriterion("d_company not like", value, "dCompany");
return (Criteria) this;
}
public Criteria andDCompanyIn(List<String> values) {
addCriterion("d_company in", values, "dCompany");
return (Criteria) this;
}
public Criteria andDCompanyNotIn(List<String> values) {
addCriterion("d_company not in", values, "dCompany");
return (Criteria) this;
}
public Criteria andDCompanyBetween(String value1, String value2) {
addCriterion("d_company between", value1, value2, "dCompany");
return (Criteria) this;
}
public Criteria andDCompanyNotBetween(String value1, String value2) {
addCriterion("d_company not between", value1, value2, "dCompany");
return (Criteria) this;
}
public Criteria andDContactIsNull() {
addCriterion("d_contact is null");
return (Criteria) this;
}
public Criteria andDContactIsNotNull() {
addCriterion("d_contact is not null");
return (Criteria) this;
}
public Criteria andDContactEqualTo(String value) {
addCriterion("d_contact =", value, "dContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDContactEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_contact = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDContactNotEqualTo(String value) {
addCriterion("d_contact <>", value, "dContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDContactNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_contact <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDContactGreaterThan(String value) {
addCriterion("d_contact >", value, "dContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDContactGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_contact > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDContactGreaterThanOrEqualTo(String value) {
addCriterion("d_contact >=", value, "dContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDContactGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_contact >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDContactLessThan(String value) {
addCriterion("d_contact <", value, "dContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDContactLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_contact < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDContactLessThanOrEqualTo(String value) {
addCriterion("d_contact <=", value, "dContact");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDContactLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_contact <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDContactLike(String value) {
addCriterion("d_contact like", value, "dContact");
return (Criteria) this;
}
public Criteria andDContactNotLike(String value) {
addCriterion("d_contact not like", value, "dContact");
return (Criteria) this;
}
public Criteria andDContactIn(List<String> values) {
addCriterion("d_contact in", values, "dContact");
return (Criteria) this;
}
public Criteria andDContactNotIn(List<String> values) {
addCriterion("d_contact not in", values, "dContact");
return (Criteria) this;
}
public Criteria andDContactBetween(String value1, String value2) {
addCriterion("d_contact between", value1, value2, "dContact");
return (Criteria) this;
}
public Criteria andDContactNotBetween(String value1, String value2) {
addCriterion("d_contact not between", value1, value2, "dContact");
return (Criteria) this;
}
public Criteria andDTelIsNull() {
addCriterion("d_tel is null");
return (Criteria) this;
}
public Criteria andDTelIsNotNull() {
addCriterion("d_tel is not null");
return (Criteria) this;
}
public Criteria andDTelEqualTo(String value) {
addCriterion("d_tel =", value, "dTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTelEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tel = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTelNotEqualTo(String value) {
addCriterion("d_tel <>", value, "dTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTelNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tel <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTelGreaterThan(String value) {
addCriterion("d_tel >", value, "dTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTelGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tel > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTelGreaterThanOrEqualTo(String value) {
addCriterion("d_tel >=", value, "dTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTelGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tel >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTelLessThan(String value) {
addCriterion("d_tel <", value, "dTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTelLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tel < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTelLessThanOrEqualTo(String value) {
addCriterion("d_tel <=", value, "dTel");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTelLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tel <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTelLike(String value) {
addCriterion("d_tel like", value, "dTel");
return (Criteria) this;
}
public Criteria andDTelNotLike(String value) {
addCriterion("d_tel not like", value, "dTel");
return (Criteria) this;
}
public Criteria andDTelIn(List<String> values) {
addCriterion("d_tel in", values, "dTel");
return (Criteria) this;
}
public Criteria andDTelNotIn(List<String> values) {
addCriterion("d_tel not in", values, "dTel");
return (Criteria) this;
}
public Criteria andDTelBetween(String value1, String value2) {
addCriterion("d_tel between", value1, value2, "dTel");
return (Criteria) this;
}
public Criteria andDTelNotBetween(String value1, String value2) {
addCriterion("d_tel not between", value1, value2, "dTel");
return (Criteria) this;
}
public Criteria andDMobileIsNull() {
addCriterion("d_mobile is null");
return (Criteria) this;
}
public Criteria andDMobileIsNotNull() {
addCriterion("d_mobile is not null");
return (Criteria) this;
}
public Criteria andDMobileEqualTo(String value) {
addCriterion("d_mobile =", value, "dMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDMobileEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_mobile = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDMobileNotEqualTo(String value) {
addCriterion("d_mobile <>", value, "dMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDMobileNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_mobile <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDMobileGreaterThan(String value) {
addCriterion("d_mobile >", value, "dMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDMobileGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_mobile > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDMobileGreaterThanOrEqualTo(String value) {
addCriterion("d_mobile >=", value, "dMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDMobileGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_mobile >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDMobileLessThan(String value) {
addCriterion("d_mobile <", value, "dMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDMobileLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_mobile < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDMobileLessThanOrEqualTo(String value) {
addCriterion("d_mobile <=", value, "dMobile");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDMobileLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_mobile <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDMobileLike(String value) {
addCriterion("d_mobile like", value, "dMobile");
return (Criteria) this;
}
public Criteria andDMobileNotLike(String value) {
addCriterion("d_mobile not like", value, "dMobile");
return (Criteria) this;
}
public Criteria andDMobileIn(List<String> values) {
addCriterion("d_mobile in", values, "dMobile");
return (Criteria) this;
}
public Criteria andDMobileNotIn(List<String> values) {
addCriterion("d_mobile not in", values, "dMobile");
return (Criteria) this;
}
public Criteria andDMobileBetween(String value1, String value2) {
addCriterion("d_mobile between", value1, value2, "dMobile");
return (Criteria) this;
}
public Criteria andDMobileNotBetween(String value1, String value2) {
addCriterion("d_mobile not between", value1, value2, "dMobile");
return (Criteria) this;
}
public Criteria andDDeliverycodeIsNull() {
addCriterion("d_deliverycode is null");
return (Criteria) this;
}
public Criteria andDDeliverycodeIsNotNull() {
addCriterion("d_deliverycode is not null");
return (Criteria) this;
}
public Criteria andDDeliverycodeEqualTo(String value) {
addCriterion("d_deliverycode =", value, "dDeliverycode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDDeliverycodeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_deliverycode = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDDeliverycodeNotEqualTo(String value) {
addCriterion("d_deliverycode <>", value, "dDeliverycode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDDeliverycodeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_deliverycode <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDDeliverycodeGreaterThan(String value) {
addCriterion("d_deliverycode >", value, "dDeliverycode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDDeliverycodeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_deliverycode > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDDeliverycodeGreaterThanOrEqualTo(String value) {
addCriterion("d_deliverycode >=", value, "dDeliverycode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDDeliverycodeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_deliverycode >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDDeliverycodeLessThan(String value) {
addCriterion("d_deliverycode <", value, "dDeliverycode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDDeliverycodeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_deliverycode < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDDeliverycodeLessThanOrEqualTo(String value) {
addCriterion("d_deliverycode <=", value, "dDeliverycode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDDeliverycodeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_deliverycode <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDDeliverycodeLike(String value) {
addCriterion("d_deliverycode like", value, "dDeliverycode");
return (Criteria) this;
}
public Criteria andDDeliverycodeNotLike(String value) {
addCriterion("d_deliverycode not like", value, "dDeliverycode");
return (Criteria) this;
}
public Criteria andDDeliverycodeIn(List<String> values) {
addCriterion("d_deliverycode in", values, "dDeliverycode");
return (Criteria) this;
}
public Criteria andDDeliverycodeNotIn(List<String> values) {
addCriterion("d_deliverycode not in", values, "dDeliverycode");
return (Criteria) this;
}
public Criteria andDDeliverycodeBetween(String value1, String value2) {
addCriterion("d_deliverycode between", value1, value2, "dDeliverycode");
return (Criteria) this;
}
public Criteria andDDeliverycodeNotBetween(String value1, String value2) {
addCriterion("d_deliverycode not between", value1, value2, "dDeliverycode");
return (Criteria) this;
}
public Criteria andDCountryIsNull() {
addCriterion("d_country is null");
return (Criteria) this;
}
public Criteria andDCountryIsNotNull() {
addCriterion("d_country is not null");
return (Criteria) this;
}
public Criteria andDCountryEqualTo(String value) {
addCriterion("d_country =", value, "dCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountryEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_country = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountryNotEqualTo(String value) {
addCriterion("d_country <>", value, "dCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountryNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_country <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountryGreaterThan(String value) {
addCriterion("d_country >", value, "dCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountryGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_country > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountryGreaterThanOrEqualTo(String value) {
addCriterion("d_country >=", value, "dCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountryGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_country >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountryLessThan(String value) {
addCriterion("d_country <", value, "dCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountryLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_country < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountryLessThanOrEqualTo(String value) {
addCriterion("d_country <=", value, "dCountry");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountryLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_country <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountryLike(String value) {
addCriterion("d_country like", value, "dCountry");
return (Criteria) this;
}
public Criteria andDCountryNotLike(String value) {
addCriterion("d_country not like", value, "dCountry");
return (Criteria) this;
}
public Criteria andDCountryIn(List<String> values) {
addCriterion("d_country in", values, "dCountry");
return (Criteria) this;
}
public Criteria andDCountryNotIn(List<String> values) {
addCriterion("d_country not in", values, "dCountry");
return (Criteria) this;
}
public Criteria andDCountryBetween(String value1, String value2) {
addCriterion("d_country between", value1, value2, "dCountry");
return (Criteria) this;
}
public Criteria andDCountryNotBetween(String value1, String value2) {
addCriterion("d_country not between", value1, value2, "dCountry");
return (Criteria) this;
}
public Criteria andDProvinceIsNull() {
addCriterion("d_province is null");
return (Criteria) this;
}
public Criteria andDProvinceIsNotNull() {
addCriterion("d_province is not null");
return (Criteria) this;
}
public Criteria andDProvinceEqualTo(String value) {
addCriterion("d_province =", value, "dProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDProvinceEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_province = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDProvinceNotEqualTo(String value) {
addCriterion("d_province <>", value, "dProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDProvinceNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_province <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDProvinceGreaterThan(String value) {
addCriterion("d_province >", value, "dProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDProvinceGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_province > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDProvinceGreaterThanOrEqualTo(String value) {
addCriterion("d_province >=", value, "dProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDProvinceGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_province >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDProvinceLessThan(String value) {
addCriterion("d_province <", value, "dProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDProvinceLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_province < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDProvinceLessThanOrEqualTo(String value) {
addCriterion("d_province <=", value, "dProvince");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDProvinceLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_province <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDProvinceLike(String value) {
addCriterion("d_province like", value, "dProvince");
return (Criteria) this;
}
public Criteria andDProvinceNotLike(String value) {
addCriterion("d_province not like", value, "dProvince");
return (Criteria) this;
}
public Criteria andDProvinceIn(List<String> values) {
addCriterion("d_province in", values, "dProvince");
return (Criteria) this;
}
public Criteria andDProvinceNotIn(List<String> values) {
addCriterion("d_province not in", values, "dProvince");
return (Criteria) this;
}
public Criteria andDProvinceBetween(String value1, String value2) {
addCriterion("d_province between", value1, value2, "dProvince");
return (Criteria) this;
}
public Criteria andDProvinceNotBetween(String value1, String value2) {
addCriterion("d_province not between", value1, value2, "dProvince");
return (Criteria) this;
}
public Criteria andDCityIsNull() {
addCriterion("d_city is null");
return (Criteria) this;
}
public Criteria andDCityIsNotNull() {
addCriterion("d_city is not null");
return (Criteria) this;
}
public Criteria andDCityEqualTo(String value) {
addCriterion("d_city =", value, "dCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCityEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_city = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCityNotEqualTo(String value) {
addCriterion("d_city <>", value, "dCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCityNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_city <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCityGreaterThan(String value) {
addCriterion("d_city >", value, "dCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCityGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_city > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCityGreaterThanOrEqualTo(String value) {
addCriterion("d_city >=", value, "dCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCityGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_city >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCityLessThan(String value) {
addCriterion("d_city <", value, "dCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCityLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_city < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCityLessThanOrEqualTo(String value) {
addCriterion("d_city <=", value, "dCity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCityLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_city <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCityLike(String value) {
addCriterion("d_city like", value, "dCity");
return (Criteria) this;
}
public Criteria andDCityNotLike(String value) {
addCriterion("d_city not like", value, "dCity");
return (Criteria) this;
}
public Criteria andDCityIn(List<String> values) {
addCriterion("d_city in", values, "dCity");
return (Criteria) this;
}
public Criteria andDCityNotIn(List<String> values) {
addCriterion("d_city not in", values, "dCity");
return (Criteria) this;
}
public Criteria andDCityBetween(String value1, String value2) {
addCriterion("d_city between", value1, value2, "dCity");
return (Criteria) this;
}
public Criteria andDCityNotBetween(String value1, String value2) {
addCriterion("d_city not between", value1, value2, "dCity");
return (Criteria) this;
}
public Criteria andDCountyIsNull() {
addCriterion("d_county is null");
return (Criteria) this;
}
public Criteria andDCountyIsNotNull() {
addCriterion("d_county is not null");
return (Criteria) this;
}
public Criteria andDCountyEqualTo(String value) {
addCriterion("d_county =", value, "dCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountyEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_county = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountyNotEqualTo(String value) {
addCriterion("d_county <>", value, "dCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountyNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_county <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountyGreaterThan(String value) {
addCriterion("d_county >", value, "dCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountyGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_county > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountyGreaterThanOrEqualTo(String value) {
addCriterion("d_county >=", value, "dCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountyGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_county >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountyLessThan(String value) {
addCriterion("d_county <", value, "dCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountyLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_county < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountyLessThanOrEqualTo(String value) {
addCriterion("d_county <=", value, "dCounty");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDCountyLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_county <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDCountyLike(String value) {
addCriterion("d_county like", value, "dCounty");
return (Criteria) this;
}
public Criteria andDCountyNotLike(String value) {
addCriterion("d_county not like", value, "dCounty");
return (Criteria) this;
}
public Criteria andDCountyIn(List<String> values) {
addCriterion("d_county in", values, "dCounty");
return (Criteria) this;
}
public Criteria andDCountyNotIn(List<String> values) {
addCriterion("d_county not in", values, "dCounty");
return (Criteria) this;
}
public Criteria andDCountyBetween(String value1, String value2) {
addCriterion("d_county between", value1, value2, "dCounty");
return (Criteria) this;
}
public Criteria andDCountyNotBetween(String value1, String value2) {
addCriterion("d_county not between", value1, value2, "dCounty");
return (Criteria) this;
}
public Criteria andDAddressIsNull() {
addCriterion("d_address is null");
return (Criteria) this;
}
public Criteria andDAddressIsNotNull() {
addCriterion("d_address is not null");
return (Criteria) this;
}
public Criteria andDAddressEqualTo(String value) {
addCriterion("d_address =", value, "dAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDAddressEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_address = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDAddressNotEqualTo(String value) {
addCriterion("d_address <>", value, "dAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDAddressNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_address <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDAddressGreaterThan(String value) {
addCriterion("d_address >", value, "dAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDAddressGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_address > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDAddressGreaterThanOrEqualTo(String value) {
addCriterion("d_address >=", value, "dAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDAddressGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_address >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDAddressLessThan(String value) {
addCriterion("d_address <", value, "dAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDAddressLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_address < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDAddressLessThanOrEqualTo(String value) {
addCriterion("d_address <=", value, "dAddress");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDAddressLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_address <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDAddressLike(String value) {
addCriterion("d_address like", value, "dAddress");
return (Criteria) this;
}
public Criteria andDAddressNotLike(String value) {
addCriterion("d_address not like", value, "dAddress");
return (Criteria) this;
}
public Criteria andDAddressIn(List<String> values) {
addCriterion("d_address in", values, "dAddress");
return (Criteria) this;
}
public Criteria andDAddressNotIn(List<String> values) {
addCriterion("d_address not in", values, "dAddress");
return (Criteria) this;
}
public Criteria andDAddressBetween(String value1, String value2) {
addCriterion("d_address between", value1, value2, "dAddress");
return (Criteria) this;
}
public Criteria andDAddressNotBetween(String value1, String value2) {
addCriterion("d_address not between", value1, value2, "dAddress");
return (Criteria) this;
}
public Criteria andDPostCodeIsNull() {
addCriterion("d_post_code is null");
return (Criteria) this;
}
public Criteria andDPostCodeIsNotNull() {
addCriterion("d_post_code is not null");
return (Criteria) this;
}
public Criteria andDPostCodeEqualTo(String value) {
addCriterion("d_post_code =", value, "dPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDPostCodeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_post_code = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDPostCodeNotEqualTo(String value) {
addCriterion("d_post_code <>", value, "dPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDPostCodeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_post_code <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDPostCodeGreaterThan(String value) {
addCriterion("d_post_code >", value, "dPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDPostCodeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_post_code > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDPostCodeGreaterThanOrEqualTo(String value) {
addCriterion("d_post_code >=", value, "dPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDPostCodeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_post_code >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDPostCodeLessThan(String value) {
addCriterion("d_post_code <", value, "dPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDPostCodeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_post_code < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDPostCodeLessThanOrEqualTo(String value) {
addCriterion("d_post_code <=", value, "dPostCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDPostCodeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_post_code <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDPostCodeLike(String value) {
addCriterion("d_post_code like", value, "dPostCode");
return (Criteria) this;
}
public Criteria andDPostCodeNotLike(String value) {
addCriterion("d_post_code not like", value, "dPostCode");
return (Criteria) this;
}
public Criteria andDPostCodeIn(List<String> values) {
addCriterion("d_post_code in", values, "dPostCode");
return (Criteria) this;
}
public Criteria andDPostCodeNotIn(List<String> values) {
addCriterion("d_post_code not in", values, "dPostCode");
return (Criteria) this;
}
public Criteria andDPostCodeBetween(String value1, String value2) {
addCriterion("d_post_code between", value1, value2, "dPostCode");
return (Criteria) this;
}
public Criteria andDPostCodeNotBetween(String value1, String value2) {
addCriterion("d_post_code not between", value1, value2, "dPostCode");
return (Criteria) this;
}
public Criteria andCustidIsNull() {
addCriterion("custid is null");
return (Criteria) this;
}
public Criteria andCustidIsNotNull() {
addCriterion("custid is not null");
return (Criteria) this;
}
public Criteria andCustidEqualTo(String value) {
addCriterion("custid =", value, "custid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustidEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("custid = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustidNotEqualTo(String value) {
addCriterion("custid <>", value, "custid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustidNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("custid <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustidGreaterThan(String value) {
addCriterion("custid >", value, "custid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustidGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("custid > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustidGreaterThanOrEqualTo(String value) {
addCriterion("custid >=", value, "custid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustidGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("custid >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustidLessThan(String value) {
addCriterion("custid <", value, "custid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustidLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("custid < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustidLessThanOrEqualTo(String value) {
addCriterion("custid <=", value, "custid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustidLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("custid <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustidLike(String value) {
addCriterion("custid like", value, "custid");
return (Criteria) this;
}
public Criteria andCustidNotLike(String value) {
addCriterion("custid not like", value, "custid");
return (Criteria) this;
}
public Criteria andCustidIn(List<String> values) {
addCriterion("custid in", values, "custid");
return (Criteria) this;
}
public Criteria andCustidNotIn(List<String> values) {
addCriterion("custid not in", values, "custid");
return (Criteria) this;
}
public Criteria andCustidBetween(String value1, String value2) {
addCriterion("custid between", value1, value2, "custid");
return (Criteria) this;
}
public Criteria andCustidNotBetween(String value1, String value2) {
addCriterion("custid not between", value1, value2, "custid");
return (Criteria) this;
}
public Criteria andPayMethodIsNull() {
addCriterion("pay_method is null");
return (Criteria) this;
}
public Criteria andPayMethodIsNotNull() {
addCriterion("pay_method is not null");
return (Criteria) this;
}
public Criteria andPayMethodEqualTo(Integer value) {
addCriterion("pay_method =", value, "payMethod");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPayMethodEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("pay_method = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPayMethodNotEqualTo(Integer value) {
addCriterion("pay_method <>", value, "payMethod");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPayMethodNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("pay_method <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPayMethodGreaterThan(Integer value) {
addCriterion("pay_method >", value, "payMethod");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPayMethodGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("pay_method > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPayMethodGreaterThanOrEqualTo(Integer value) {
addCriterion("pay_method >=", value, "payMethod");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPayMethodGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("pay_method >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPayMethodLessThan(Integer value) {
addCriterion("pay_method <", value, "payMethod");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPayMethodLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("pay_method < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPayMethodLessThanOrEqualTo(Integer value) {
addCriterion("pay_method <=", value, "payMethod");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPayMethodLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("pay_method <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPayMethodIn(List<Integer> values) {
addCriterion("pay_method in", values, "payMethod");
return (Criteria) this;
}
public Criteria andPayMethodNotIn(List<Integer> values) {
addCriterion("pay_method not in", values, "payMethod");
return (Criteria) this;
}
public Criteria andPayMethodBetween(Integer value1, Integer value2) {
addCriterion("pay_method between", value1, value2, "payMethod");
return (Criteria) this;
}
public Criteria andPayMethodNotBetween(Integer value1, Integer value2) {
addCriterion("pay_method not between", value1, value2, "payMethod");
return (Criteria) this;
}
public Criteria andExpressTypeIsNull() {
addCriterion("express_type is null");
return (Criteria) this;
}
public Criteria andExpressTypeIsNotNull() {
addCriterion("express_type is not null");
return (Criteria) this;
}
public Criteria andExpressTypeEqualTo(String value) {
addCriterion("express_type =", value, "expressType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExpressTypeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("express_type = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExpressTypeNotEqualTo(String value) {
addCriterion("express_type <>", value, "expressType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExpressTypeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("express_type <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExpressTypeGreaterThan(String value) {
addCriterion("express_type >", value, "expressType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExpressTypeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("express_type > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExpressTypeGreaterThanOrEqualTo(String value) {
addCriterion("express_type >=", value, "expressType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExpressTypeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("express_type >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExpressTypeLessThan(String value) {
addCriterion("express_type <", value, "expressType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExpressTypeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("express_type < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExpressTypeLessThanOrEqualTo(String value) {
addCriterion("express_type <=", value, "expressType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExpressTypeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("express_type <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExpressTypeLike(String value) {
addCriterion("express_type like", value, "expressType");
return (Criteria) this;
}
public Criteria andExpressTypeNotLike(String value) {
addCriterion("express_type not like", value, "expressType");
return (Criteria) this;
}
public Criteria andExpressTypeIn(List<String> values) {
addCriterion("express_type in", values, "expressType");
return (Criteria) this;
}
public Criteria andExpressTypeNotIn(List<String> values) {
addCriterion("express_type not in", values, "expressType");
return (Criteria) this;
}
public Criteria andExpressTypeBetween(String value1, String value2) {
addCriterion("express_type between", value1, value2, "expressType");
return (Criteria) this;
}
public Criteria andExpressTypeNotBetween(String value1, String value2) {
addCriterion("express_type not between", value1, value2, "expressType");
return (Criteria) this;
}
public Criteria andParcelQuantityIsNull() {
addCriterion("parcel_quantity is null");
return (Criteria) this;
}
public Criteria andParcelQuantityIsNotNull() {
addCriterion("parcel_quantity is not null");
return (Criteria) this;
}
public Criteria andParcelQuantityEqualTo(Integer value) {
addCriterion("parcel_quantity =", value, "parcelQuantity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andParcelQuantityEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("parcel_quantity = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andParcelQuantityNotEqualTo(Integer value) {
addCriterion("parcel_quantity <>", value, "parcelQuantity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andParcelQuantityNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("parcel_quantity <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andParcelQuantityGreaterThan(Integer value) {
addCriterion("parcel_quantity >", value, "parcelQuantity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andParcelQuantityGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("parcel_quantity > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andParcelQuantityGreaterThanOrEqualTo(Integer value) {
addCriterion("parcel_quantity >=", value, "parcelQuantity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andParcelQuantityGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("parcel_quantity >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andParcelQuantityLessThan(Integer value) {
addCriterion("parcel_quantity <", value, "parcelQuantity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andParcelQuantityLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("parcel_quantity < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andParcelQuantityLessThanOrEqualTo(Integer value) {
addCriterion("parcel_quantity <=", value, "parcelQuantity");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andParcelQuantityLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("parcel_quantity <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andParcelQuantityIn(List<Integer> values) {
addCriterion("parcel_quantity in", values, "parcelQuantity");
return (Criteria) this;
}
public Criteria andParcelQuantityNotIn(List<Integer> values) {
addCriterion("parcel_quantity not in", values, "parcelQuantity");
return (Criteria) this;
}
public Criteria andParcelQuantityBetween(Integer value1, Integer value2) {
addCriterion("parcel_quantity between", value1, value2, "parcelQuantity");
return (Criteria) this;
}
public Criteria andParcelQuantityNotBetween(Integer value1, Integer value2) {
addCriterion("parcel_quantity not between", value1, value2, "parcelQuantity");
return (Criteria) this;
}
public Criteria andCargoLengthIsNull() {
addCriterion("cargo_length is null");
return (Criteria) this;
}
public Criteria andCargoLengthIsNotNull() {
addCriterion("cargo_length is not null");
return (Criteria) this;
}
public Criteria andCargoLengthEqualTo(BigDecimal value) {
addCriterion("cargo_length =", value, "cargoLength");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoLengthEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_length = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoLengthNotEqualTo(BigDecimal value) {
addCriterion("cargo_length <>", value, "cargoLength");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoLengthNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_length <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoLengthGreaterThan(BigDecimal value) {
addCriterion("cargo_length >", value, "cargoLength");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoLengthGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_length > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoLengthGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_length >=", value, "cargoLength");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoLengthGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_length >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoLengthLessThan(BigDecimal value) {
addCriterion("cargo_length <", value, "cargoLength");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoLengthLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_length < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoLengthLessThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_length <=", value, "cargoLength");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoLengthLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_length <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoLengthIn(List<BigDecimal> values) {
addCriterion("cargo_length in", values, "cargoLength");
return (Criteria) this;
}
public Criteria andCargoLengthNotIn(List<BigDecimal> values) {
addCriterion("cargo_length not in", values, "cargoLength");
return (Criteria) this;
}
public Criteria andCargoLengthBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_length between", value1, value2, "cargoLength");
return (Criteria) this;
}
public Criteria andCargoLengthNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_length not between", value1, value2, "cargoLength");
return (Criteria) this;
}
public Criteria andCargoWidthIsNull() {
addCriterion("cargo_width is null");
return (Criteria) this;
}
public Criteria andCargoWidthIsNotNull() {
addCriterion("cargo_width is not null");
return (Criteria) this;
}
public Criteria andCargoWidthEqualTo(BigDecimal value) {
addCriterion("cargo_width =", value, "cargoWidth");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoWidthEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_width = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoWidthNotEqualTo(BigDecimal value) {
addCriterion("cargo_width <>", value, "cargoWidth");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoWidthNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_width <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoWidthGreaterThan(BigDecimal value) {
addCriterion("cargo_width >", value, "cargoWidth");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoWidthGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_width > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoWidthGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_width >=", value, "cargoWidth");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoWidthGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_width >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoWidthLessThan(BigDecimal value) {
addCriterion("cargo_width <", value, "cargoWidth");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoWidthLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_width < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoWidthLessThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_width <=", value, "cargoWidth");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoWidthLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_width <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoWidthIn(List<BigDecimal> values) {
addCriterion("cargo_width in", values, "cargoWidth");
return (Criteria) this;
}
public Criteria andCargoWidthNotIn(List<BigDecimal> values) {
addCriterion("cargo_width not in", values, "cargoWidth");
return (Criteria) this;
}
public Criteria andCargoWidthBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_width between", value1, value2, "cargoWidth");
return (Criteria) this;
}
public Criteria andCargoWidthNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_width not between", value1, value2, "cargoWidth");
return (Criteria) this;
}
public Criteria andCargoHeightIsNull() {
addCriterion("cargo_height is null");
return (Criteria) this;
}
public Criteria andCargoHeightIsNotNull() {
addCriterion("cargo_height is not null");
return (Criteria) this;
}
public Criteria andCargoHeightEqualTo(BigDecimal value) {
addCriterion("cargo_height =", value, "cargoHeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoHeightEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_height = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoHeightNotEqualTo(BigDecimal value) {
addCriterion("cargo_height <>", value, "cargoHeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoHeightNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_height <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoHeightGreaterThan(BigDecimal value) {
addCriterion("cargo_height >", value, "cargoHeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoHeightGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_height > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoHeightGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_height >=", value, "cargoHeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoHeightGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_height >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoHeightLessThan(BigDecimal value) {
addCriterion("cargo_height <", value, "cargoHeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoHeightLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_height < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoHeightLessThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_height <=", value, "cargoHeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoHeightLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_height <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoHeightIn(List<BigDecimal> values) {
addCriterion("cargo_height in", values, "cargoHeight");
return (Criteria) this;
}
public Criteria andCargoHeightNotIn(List<BigDecimal> values) {
addCriterion("cargo_height not in", values, "cargoHeight");
return (Criteria) this;
}
public Criteria andCargoHeightBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_height between", value1, value2, "cargoHeight");
return (Criteria) this;
}
public Criteria andCargoHeightNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_height not between", value1, value2, "cargoHeight");
return (Criteria) this;
}
public Criteria andVolumeIsNull() {
addCriterion("volume is null");
return (Criteria) this;
}
public Criteria andVolumeIsNotNull() {
addCriterion("volume is not null");
return (Criteria) this;
}
public Criteria andVolumeEqualTo(BigDecimal value) {
addCriterion("volume =", value, "volume");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVolumeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("volume = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVolumeNotEqualTo(BigDecimal value) {
addCriterion("volume <>", value, "volume");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVolumeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("volume <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVolumeGreaterThan(BigDecimal value) {
addCriterion("volume >", value, "volume");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVolumeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("volume > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVolumeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("volume >=", value, "volume");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVolumeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("volume >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVolumeLessThan(BigDecimal value) {
addCriterion("volume <", value, "volume");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVolumeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("volume < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVolumeLessThanOrEqualTo(BigDecimal value) {
addCriterion("volume <=", value, "volume");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andVolumeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("volume <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andVolumeIn(List<BigDecimal> values) {
addCriterion("volume in", values, "volume");
return (Criteria) this;
}
public Criteria andVolumeNotIn(List<BigDecimal> values) {
addCriterion("volume not in", values, "volume");
return (Criteria) this;
}
public Criteria andVolumeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("volume between", value1, value2, "volume");
return (Criteria) this;
}
public Criteria andVolumeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("volume not between", value1, value2, "volume");
return (Criteria) this;
}
public Criteria andCargoTotalWeightIsNull() {
addCriterion("cargo_total_weight is null");
return (Criteria) this;
}
public Criteria andCargoTotalWeightIsNotNull() {
addCriterion("cargo_total_weight is not null");
return (Criteria) this;
}
public Criteria andCargoTotalWeightEqualTo(BigDecimal value) {
addCriterion("cargo_total_weight =", value, "cargoTotalWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoTotalWeightEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_total_weight = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoTotalWeightNotEqualTo(BigDecimal value) {
addCriterion("cargo_total_weight <>", value, "cargoTotalWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoTotalWeightNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_total_weight <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoTotalWeightGreaterThan(BigDecimal value) {
addCriterion("cargo_total_weight >", value, "cargoTotalWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoTotalWeightGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_total_weight > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoTotalWeightGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_total_weight >=", value, "cargoTotalWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoTotalWeightGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_total_weight >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoTotalWeightLessThan(BigDecimal value) {
addCriterion("cargo_total_weight <", value, "cargoTotalWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoTotalWeightLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_total_weight < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoTotalWeightLessThanOrEqualTo(BigDecimal value) {
addCriterion("cargo_total_weight <=", value, "cargoTotalWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCargoTotalWeightLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("cargo_total_weight <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCargoTotalWeightIn(List<BigDecimal> values) {
addCriterion("cargo_total_weight in", values, "cargoTotalWeight");
return (Criteria) this;
}
public Criteria andCargoTotalWeightNotIn(List<BigDecimal> values) {
addCriterion("cargo_total_weight not in", values, "cargoTotalWeight");
return (Criteria) this;
}
public Criteria andCargoTotalWeightBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_total_weight between", value1, value2, "cargoTotalWeight");
return (Criteria) this;
}
public Criteria andCargoTotalWeightNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("cargo_total_weight not between", value1, value2, "cargoTotalWeight");
return (Criteria) this;
}
public Criteria andDeclaredValueIsNull() {
addCriterion("declared_value is null");
return (Criteria) this;
}
public Criteria andDeclaredValueIsNotNull() {
addCriterion("declared_value is not null");
return (Criteria) this;
}
public Criteria andDeclaredValueEqualTo(BigDecimal value) {
addCriterion("declared_value =", value, "declaredValue");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueNotEqualTo(BigDecimal value) {
addCriterion("declared_value <>", value, "declaredValue");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueGreaterThan(BigDecimal value) {
addCriterion("declared_value >", value, "declaredValue");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("declared_value >=", value, "declaredValue");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueLessThan(BigDecimal value) {
addCriterion("declared_value <", value, "declaredValue");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueLessThanOrEqualTo(BigDecimal value) {
addCriterion("declared_value <=", value, "declaredValue");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueIn(List<BigDecimal> values) {
addCriterion("declared_value in", values, "declaredValue");
return (Criteria) this;
}
public Criteria andDeclaredValueNotIn(List<BigDecimal> values) {
addCriterion("declared_value not in", values, "declaredValue");
return (Criteria) this;
}
public Criteria andDeclaredValueBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("declared_value between", value1, value2, "declaredValue");
return (Criteria) this;
}
public Criteria andDeclaredValueNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("declared_value not between", value1, value2, "declaredValue");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyIsNull() {
addCriterion("declared_value_currency is null");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyIsNotNull() {
addCriterion("declared_value_currency is not null");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyEqualTo(String value) {
addCriterion("declared_value_currency =", value, "declaredValueCurrency");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueCurrencyEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value_currency = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyNotEqualTo(String value) {
addCriterion("declared_value_currency <>", value, "declaredValueCurrency");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueCurrencyNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value_currency <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyGreaterThan(String value) {
addCriterion("declared_value_currency >", value, "declaredValueCurrency");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueCurrencyGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value_currency > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyGreaterThanOrEqualTo(String value) {
addCriterion("declared_value_currency >=", value, "declaredValueCurrency");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueCurrencyGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value_currency >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyLessThan(String value) {
addCriterion("declared_value_currency <", value, "declaredValueCurrency");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueCurrencyLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value_currency < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyLessThanOrEqualTo(String value) {
addCriterion("declared_value_currency <=", value, "declaredValueCurrency");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeclaredValueCurrencyLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("declared_value_currency <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyLike(String value) {
addCriterion("declared_value_currency like", value, "declaredValueCurrency");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyNotLike(String value) {
addCriterion("declared_value_currency not like", value, "declaredValueCurrency");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyIn(List<String> values) {
addCriterion("declared_value_currency in", values, "declaredValueCurrency");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyNotIn(List<String> values) {
addCriterion("declared_value_currency not in", values, "declaredValueCurrency");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyBetween(String value1, String value2) {
addCriterion("declared_value_currency between", value1, value2, "declaredValueCurrency");
return (Criteria) this;
}
public Criteria andDeclaredValueCurrencyNotBetween(String value1, String value2) {
addCriterion("declared_value_currency not between", value1, value2, "declaredValueCurrency");
return (Criteria) this;
}
public Criteria andCustomsBatchsIsNull() {
addCriterion("customs_batchs is null");
return (Criteria) this;
}
public Criteria andCustomsBatchsIsNotNull() {
addCriterion("customs_batchs is not null");
return (Criteria) this;
}
public Criteria andCustomsBatchsEqualTo(String value) {
addCriterion("customs_batchs =", value, "customsBatchs");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustomsBatchsEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("customs_batchs = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustomsBatchsNotEqualTo(String value) {
addCriterion("customs_batchs <>", value, "customsBatchs");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustomsBatchsNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("customs_batchs <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustomsBatchsGreaterThan(String value) {
addCriterion("customs_batchs >", value, "customsBatchs");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustomsBatchsGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("customs_batchs > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustomsBatchsGreaterThanOrEqualTo(String value) {
addCriterion("customs_batchs >=", value, "customsBatchs");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustomsBatchsGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("customs_batchs >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustomsBatchsLessThan(String value) {
addCriterion("customs_batchs <", value, "customsBatchs");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustomsBatchsLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("customs_batchs < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustomsBatchsLessThanOrEqualTo(String value) {
addCriterion("customs_batchs <=", value, "customsBatchs");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCustomsBatchsLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("customs_batchs <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCustomsBatchsLike(String value) {
addCriterion("customs_batchs like", value, "customsBatchs");
return (Criteria) this;
}
public Criteria andCustomsBatchsNotLike(String value) {
addCriterion("customs_batchs not like", value, "customsBatchs");
return (Criteria) this;
}
public Criteria andCustomsBatchsIn(List<String> values) {
addCriterion("customs_batchs in", values, "customsBatchs");
return (Criteria) this;
}
public Criteria andCustomsBatchsNotIn(List<String> values) {
addCriterion("customs_batchs not in", values, "customsBatchs");
return (Criteria) this;
}
public Criteria andCustomsBatchsBetween(String value1, String value2) {
addCriterion("customs_batchs between", value1, value2, "customsBatchs");
return (Criteria) this;
}
public Criteria andCustomsBatchsNotBetween(String value1, String value2) {
addCriterion("customs_batchs not between", value1, value2, "customsBatchs");
return (Criteria) this;
}
public Criteria andSendstarttimeIsNull() {
addCriterion("sendstarttime is null");
return (Criteria) this;
}
public Criteria andSendstarttimeIsNotNull() {
addCriterion("sendstarttime is not null");
return (Criteria) this;
}
public Criteria andSendstarttimeEqualTo(LocalDateTime value) {
addCriterion("sendstarttime =", value, "sendstarttime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSendstarttimeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("sendstarttime = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSendstarttimeNotEqualTo(LocalDateTime value) {
addCriterion("sendstarttime <>", value, "sendstarttime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSendstarttimeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("sendstarttime <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSendstarttimeGreaterThan(LocalDateTime value) {
addCriterion("sendstarttime >", value, "sendstarttime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSendstarttimeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("sendstarttime > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSendstarttimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("sendstarttime >=", value, "sendstarttime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSendstarttimeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("sendstarttime >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSendstarttimeLessThan(LocalDateTime value) {
addCriterion("sendstarttime <", value, "sendstarttime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSendstarttimeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("sendstarttime < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSendstarttimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("sendstarttime <=", value, "sendstarttime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSendstarttimeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("sendstarttime <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSendstarttimeIn(List<LocalDateTime> values) {
addCriterion("sendstarttime in", values, "sendstarttime");
return (Criteria) this;
}
public Criteria andSendstarttimeNotIn(List<LocalDateTime> values) {
addCriterion("sendstarttime not in", values, "sendstarttime");
return (Criteria) this;
}
public Criteria andSendstarttimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("sendstarttime between", value1, value2, "sendstarttime");
return (Criteria) this;
}
public Criteria andSendstarttimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("sendstarttime not between", value1, value2, "sendstarttime");
return (Criteria) this;
}
public Criteria andIsDocallIsNull() {
addCriterion("is_docall is null");
return (Criteria) this;
}
public Criteria andIsDocallIsNotNull() {
addCriterion("is_docall is not null");
return (Criteria) this;
}
public Criteria andIsDocallEqualTo(Integer value) {
addCriterion("is_docall =", value, "isDocall");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDocallEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_docall = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDocallNotEqualTo(Integer value) {
addCriterion("is_docall <>", value, "isDocall");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDocallNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_docall <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDocallGreaterThan(Integer value) {
addCriterion("is_docall >", value, "isDocall");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDocallGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_docall > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDocallGreaterThanOrEqualTo(Integer value) {
addCriterion("is_docall >=", value, "isDocall");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDocallGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_docall >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDocallLessThan(Integer value) {
addCriterion("is_docall <", value, "isDocall");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDocallLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_docall < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDocallLessThanOrEqualTo(Integer value) {
addCriterion("is_docall <=", value, "isDocall");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDocallLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("is_docall <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDocallIn(List<Integer> values) {
addCriterion("is_docall in", values, "isDocall");
return (Criteria) this;
}
public Criteria andIsDocallNotIn(List<Integer> values) {
addCriterion("is_docall not in", values, "isDocall");
return (Criteria) this;
}
public Criteria andIsDocallBetween(Integer value1, Integer value2) {
addCriterion("is_docall between", value1, value2, "isDocall");
return (Criteria) this;
}
public Criteria andIsDocallNotBetween(Integer value1, Integer value2) {
addCriterion("is_docall not between", value1, value2, "isDocall");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoIsNull() {
addCriterion("need_return_tracking_no is null");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoIsNotNull() {
addCriterion("need_return_tracking_no is not null");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoEqualTo(String value) {
addCriterion("need_return_tracking_no =", value, "needReturnTrackingNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNeedReturnTrackingNoEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("need_return_tracking_no = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoNotEqualTo(String value) {
addCriterion("need_return_tracking_no <>", value, "needReturnTrackingNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNeedReturnTrackingNoNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("need_return_tracking_no <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoGreaterThan(String value) {
addCriterion("need_return_tracking_no >", value, "needReturnTrackingNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNeedReturnTrackingNoGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("need_return_tracking_no > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoGreaterThanOrEqualTo(String value) {
addCriterion("need_return_tracking_no >=", value, "needReturnTrackingNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNeedReturnTrackingNoGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("need_return_tracking_no >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoLessThan(String value) {
addCriterion("need_return_tracking_no <", value, "needReturnTrackingNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNeedReturnTrackingNoLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("need_return_tracking_no < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoLessThanOrEqualTo(String value) {
addCriterion("need_return_tracking_no <=", value, "needReturnTrackingNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNeedReturnTrackingNoLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("need_return_tracking_no <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoLike(String value) {
addCriterion("need_return_tracking_no like", value, "needReturnTrackingNo");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoNotLike(String value) {
addCriterion("need_return_tracking_no not like", value, "needReturnTrackingNo");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoIn(List<String> values) {
addCriterion("need_return_tracking_no in", values, "needReturnTrackingNo");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoNotIn(List<String> values) {
addCriterion("need_return_tracking_no not in", values, "needReturnTrackingNo");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoBetween(String value1, String value2) {
addCriterion("need_return_tracking_no between", value1, value2, "needReturnTrackingNo");
return (Criteria) this;
}
public Criteria andNeedReturnTrackingNoNotBetween(String value1, String value2) {
addCriterion("need_return_tracking_no not between", value1, value2, "needReturnTrackingNo");
return (Criteria) this;
}
public Criteria andReturnTrackingIsNull() {
addCriterion("return_tracking is null");
return (Criteria) this;
}
public Criteria andReturnTrackingIsNotNull() {
addCriterion("return_tracking is not null");
return (Criteria) this;
}
public Criteria andReturnTrackingEqualTo(String value) {
addCriterion("return_tracking =", value, "returnTracking");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReturnTrackingEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("return_tracking = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReturnTrackingNotEqualTo(String value) {
addCriterion("return_tracking <>", value, "returnTracking");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReturnTrackingNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("return_tracking <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReturnTrackingGreaterThan(String value) {
addCriterion("return_tracking >", value, "returnTracking");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReturnTrackingGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("return_tracking > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReturnTrackingGreaterThanOrEqualTo(String value) {
addCriterion("return_tracking >=", value, "returnTracking");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReturnTrackingGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("return_tracking >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReturnTrackingLessThan(String value) {
addCriterion("return_tracking <", value, "returnTracking");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReturnTrackingLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("return_tracking < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReturnTrackingLessThanOrEqualTo(String value) {
addCriterion("return_tracking <=", value, "returnTracking");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andReturnTrackingLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("return_tracking <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andReturnTrackingLike(String value) {
addCriterion("return_tracking like", value, "returnTracking");
return (Criteria) this;
}
public Criteria andReturnTrackingNotLike(String value) {
addCriterion("return_tracking not like", value, "returnTracking");
return (Criteria) this;
}
public Criteria andReturnTrackingIn(List<String> values) {
addCriterion("return_tracking in", values, "returnTracking");
return (Criteria) this;
}
public Criteria andReturnTrackingNotIn(List<String> values) {
addCriterion("return_tracking not in", values, "returnTracking");
return (Criteria) this;
}
public Criteria andReturnTrackingBetween(String value1, String value2) {
addCriterion("return_tracking between", value1, value2, "returnTracking");
return (Criteria) this;
}
public Criteria andReturnTrackingNotBetween(String value1, String value2) {
addCriterion("return_tracking not between", value1, value2, "returnTracking");
return (Criteria) this;
}
public Criteria andDTaxNoIsNull() {
addCriterion("d_tax_no is null");
return (Criteria) this;
}
public Criteria andDTaxNoIsNotNull() {
addCriterion("d_tax_no is not null");
return (Criteria) this;
}
public Criteria andDTaxNoEqualTo(String value) {
addCriterion("d_tax_no =", value, "dTaxNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTaxNoEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tax_no = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTaxNoNotEqualTo(String value) {
addCriterion("d_tax_no <>", value, "dTaxNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTaxNoNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tax_no <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTaxNoGreaterThan(String value) {
addCriterion("d_tax_no >", value, "dTaxNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTaxNoGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tax_no > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTaxNoGreaterThanOrEqualTo(String value) {
addCriterion("d_tax_no >=", value, "dTaxNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTaxNoGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tax_no >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTaxNoLessThan(String value) {
addCriterion("d_tax_no <", value, "dTaxNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTaxNoLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tax_no < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTaxNoLessThanOrEqualTo(String value) {
addCriterion("d_tax_no <=", value, "dTaxNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDTaxNoLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("d_tax_no <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDTaxNoLike(String value) {
addCriterion("d_tax_no like", value, "dTaxNo");
return (Criteria) this;
}
public Criteria andDTaxNoNotLike(String value) {
addCriterion("d_tax_no not like", value, "dTaxNo");
return (Criteria) this;
}
public Criteria andDTaxNoIn(List<String> values) {
addCriterion("d_tax_no in", values, "dTaxNo");
return (Criteria) this;
}
public Criteria andDTaxNoNotIn(List<String> values) {
addCriterion("d_tax_no not in", values, "dTaxNo");
return (Criteria) this;
}
public Criteria andDTaxNoBetween(String value1, String value2) {
addCriterion("d_tax_no between", value1, value2, "dTaxNo");
return (Criteria) this;
}
public Criteria andDTaxNoNotBetween(String value1, String value2) {
addCriterion("d_tax_no not between", value1, value2, "dTaxNo");
return (Criteria) this;
}
public Criteria andTaxPayTypeIsNull() {
addCriterion("tax_pay_type is null");
return (Criteria) this;
}
public Criteria andTaxPayTypeIsNotNull() {
addCriterion("tax_pay_type is not null");
return (Criteria) this;
}
public Criteria andTaxPayTypeEqualTo(String value) {
addCriterion("tax_pay_type =", value, "taxPayType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxPayTypeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_pay_type = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxPayTypeNotEqualTo(String value) {
addCriterion("tax_pay_type <>", value, "taxPayType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxPayTypeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_pay_type <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxPayTypeGreaterThan(String value) {
addCriterion("tax_pay_type >", value, "taxPayType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxPayTypeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_pay_type > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxPayTypeGreaterThanOrEqualTo(String value) {
addCriterion("tax_pay_type >=", value, "taxPayType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxPayTypeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_pay_type >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxPayTypeLessThan(String value) {
addCriterion("tax_pay_type <", value, "taxPayType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxPayTypeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_pay_type < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxPayTypeLessThanOrEqualTo(String value) {
addCriterion("tax_pay_type <=", value, "taxPayType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxPayTypeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_pay_type <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxPayTypeLike(String value) {
addCriterion("tax_pay_type like", value, "taxPayType");
return (Criteria) this;
}
public Criteria andTaxPayTypeNotLike(String value) {
addCriterion("tax_pay_type not like", value, "taxPayType");
return (Criteria) this;
}
public Criteria andTaxPayTypeIn(List<String> values) {
addCriterion("tax_pay_type in", values, "taxPayType");
return (Criteria) this;
}
public Criteria andTaxPayTypeNotIn(List<String> values) {
addCriterion("tax_pay_type not in", values, "taxPayType");
return (Criteria) this;
}
public Criteria andTaxPayTypeBetween(String value1, String value2) {
addCriterion("tax_pay_type between", value1, value2, "taxPayType");
return (Criteria) this;
}
public Criteria andTaxPayTypeNotBetween(String value1, String value2) {
addCriterion("tax_pay_type not between", value1, value2, "taxPayType");
return (Criteria) this;
}
public Criteria andTaxSetAccountsIsNull() {
addCriterion("tax_set_accounts is null");
return (Criteria) this;
}
public Criteria andTaxSetAccountsIsNotNull() {
addCriterion("tax_set_accounts is not null");
return (Criteria) this;
}
public Criteria andTaxSetAccountsEqualTo(String value) {
addCriterion("tax_set_accounts =", value, "taxSetAccounts");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxSetAccountsEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_set_accounts = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxSetAccountsNotEqualTo(String value) {
addCriterion("tax_set_accounts <>", value, "taxSetAccounts");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxSetAccountsNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_set_accounts <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxSetAccountsGreaterThan(String value) {
addCriterion("tax_set_accounts >", value, "taxSetAccounts");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxSetAccountsGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_set_accounts > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxSetAccountsGreaterThanOrEqualTo(String value) {
addCriterion("tax_set_accounts >=", value, "taxSetAccounts");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxSetAccountsGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_set_accounts >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxSetAccountsLessThan(String value) {
addCriterion("tax_set_accounts <", value, "taxSetAccounts");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxSetAccountsLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_set_accounts < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxSetAccountsLessThanOrEqualTo(String value) {
addCriterion("tax_set_accounts <=", value, "taxSetAccounts");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTaxSetAccountsLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("tax_set_accounts <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTaxSetAccountsLike(String value) {
addCriterion("tax_set_accounts like", value, "taxSetAccounts");
return (Criteria) this;
}
public Criteria andTaxSetAccountsNotLike(String value) {
addCriterion("tax_set_accounts not like", value, "taxSetAccounts");
return (Criteria) this;
}
public Criteria andTaxSetAccountsIn(List<String> values) {
addCriterion("tax_set_accounts in", values, "taxSetAccounts");
return (Criteria) this;
}
public Criteria andTaxSetAccountsNotIn(List<String> values) {
addCriterion("tax_set_accounts not in", values, "taxSetAccounts");
return (Criteria) this;
}
public Criteria andTaxSetAccountsBetween(String value1, String value2) {
addCriterion("tax_set_accounts between", value1, value2, "taxSetAccounts");
return (Criteria) this;
}
public Criteria andTaxSetAccountsNotBetween(String value1, String value2) {
addCriterion("tax_set_accounts not between", value1, value2, "taxSetAccounts");
return (Criteria) this;
}
public Criteria andOriginalNumberIsNull() {
addCriterion("original_number is null");
return (Criteria) this;
}
public Criteria andOriginalNumberIsNotNull() {
addCriterion("original_number is not null");
return (Criteria) this;
}
public Criteria andOriginalNumberEqualTo(String value) {
addCriterion("original_number =", value, "originalNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalNumberEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("original_number = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalNumberNotEqualTo(String value) {
addCriterion("original_number <>", value, "originalNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalNumberNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("original_number <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalNumberGreaterThan(String value) {
addCriterion("original_number >", value, "originalNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalNumberGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("original_number > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalNumberGreaterThanOrEqualTo(String value) {
addCriterion("original_number >=", value, "originalNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalNumberGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("original_number >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalNumberLessThan(String value) {
addCriterion("original_number <", value, "originalNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalNumberLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("original_number < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalNumberLessThanOrEqualTo(String value) {
addCriterion("original_number <=", value, "originalNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalNumberLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("original_number <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalNumberLike(String value) {
addCriterion("original_number like", value, "originalNumber");
return (Criteria) this;
}
public Criteria andOriginalNumberNotLike(String value) {
addCriterion("original_number not like", value, "originalNumber");
return (Criteria) this;
}
public Criteria andOriginalNumberIn(List<String> values) {
addCriterion("original_number in", values, "originalNumber");
return (Criteria) this;
}
public Criteria andOriginalNumberNotIn(List<String> values) {
addCriterion("original_number not in", values, "originalNumber");
return (Criteria) this;
}
public Criteria andOriginalNumberBetween(String value1, String value2) {
addCriterion("original_number between", value1, value2, "originalNumber");
return (Criteria) this;
}
public Criteria andOriginalNumberNotBetween(String value1, String value2) {
addCriterion("original_number not between", value1, value2, "originalNumber");
return (Criteria) this;
}
public Criteria andPaymentToolIsNull() {
addCriterion("payment_tool is null");
return (Criteria) this;
}
public Criteria andPaymentToolIsNotNull() {
addCriterion("payment_tool is not null");
return (Criteria) this;
}
public Criteria andPaymentToolEqualTo(String value) {
addCriterion("payment_tool =", value, "paymentTool");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentToolEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_tool = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentToolNotEqualTo(String value) {
addCriterion("payment_tool <>", value, "paymentTool");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentToolNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_tool <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentToolGreaterThan(String value) {
addCriterion("payment_tool >", value, "paymentTool");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentToolGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_tool > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentToolGreaterThanOrEqualTo(String value) {
addCriterion("payment_tool >=", value, "paymentTool");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentToolGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_tool >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentToolLessThan(String value) {
addCriterion("payment_tool <", value, "paymentTool");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentToolLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_tool < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentToolLessThanOrEqualTo(String value) {
addCriterion("payment_tool <=", value, "paymentTool");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentToolLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_tool <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentToolLike(String value) {
addCriterion("payment_tool like", value, "paymentTool");
return (Criteria) this;
}
public Criteria andPaymentToolNotLike(String value) {
addCriterion("payment_tool not like", value, "paymentTool");
return (Criteria) this;
}
public Criteria andPaymentToolIn(List<String> values) {
addCriterion("payment_tool in", values, "paymentTool");
return (Criteria) this;
}
public Criteria andPaymentToolNotIn(List<String> values) {
addCriterion("payment_tool not in", values, "paymentTool");
return (Criteria) this;
}
public Criteria andPaymentToolBetween(String value1, String value2) {
addCriterion("payment_tool between", value1, value2, "paymentTool");
return (Criteria) this;
}
public Criteria andPaymentToolNotBetween(String value1, String value2) {
addCriterion("payment_tool not between", value1, value2, "paymentTool");
return (Criteria) this;
}
public Criteria andPaymentNumberIsNull() {
addCriterion("payment_number is null");
return (Criteria) this;
}
public Criteria andPaymentNumberIsNotNull() {
addCriterion("payment_number is not null");
return (Criteria) this;
}
public Criteria andPaymentNumberEqualTo(String value) {
addCriterion("payment_number =", value, "paymentNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentNumberEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_number = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentNumberNotEqualTo(String value) {
addCriterion("payment_number <>", value, "paymentNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentNumberNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_number <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentNumberGreaterThan(String value) {
addCriterion("payment_number >", value, "paymentNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentNumberGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_number > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentNumberGreaterThanOrEqualTo(String value) {
addCriterion("payment_number >=", value, "paymentNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentNumberGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_number >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentNumberLessThan(String value) {
addCriterion("payment_number <", value, "paymentNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentNumberLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_number < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentNumberLessThanOrEqualTo(String value) {
addCriterion("payment_number <=", value, "paymentNumber");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPaymentNumberLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("payment_number <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPaymentNumberLike(String value) {
addCriterion("payment_number like", value, "paymentNumber");
return (Criteria) this;
}
public Criteria andPaymentNumberNotLike(String value) {
addCriterion("payment_number not like", value, "paymentNumber");
return (Criteria) this;
}
public Criteria andPaymentNumberIn(List<String> values) {
addCriterion("payment_number in", values, "paymentNumber");
return (Criteria) this;
}
public Criteria andPaymentNumberNotIn(List<String> values) {
addCriterion("payment_number not in", values, "paymentNumber");
return (Criteria) this;
}
public Criteria andPaymentNumberBetween(String value1, String value2) {
addCriterion("payment_number between", value1, value2, "paymentNumber");
return (Criteria) this;
}
public Criteria andPaymentNumberNotBetween(String value1, String value2) {
addCriterion("payment_number not between", value1, value2, "paymentNumber");
return (Criteria) this;
}
public Criteria andGoodsCodeIsNull() {
addCriterion("goods_code is null");
return (Criteria) this;
}
public Criteria andGoodsCodeIsNotNull() {
addCriterion("goods_code is not null");
return (Criteria) this;
}
public Criteria andGoodsCodeEqualTo(String value) {
addCriterion("goods_code =", value, "goodsCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andGoodsCodeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("goods_code = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andGoodsCodeNotEqualTo(String value) {
addCriterion("goods_code <>", value, "goodsCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andGoodsCodeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("goods_code <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andGoodsCodeGreaterThan(String value) {
addCriterion("goods_code >", value, "goodsCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andGoodsCodeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("goods_code > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andGoodsCodeGreaterThanOrEqualTo(String value) {
addCriterion("goods_code >=", value, "goodsCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andGoodsCodeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("goods_code >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andGoodsCodeLessThan(String value) {
addCriterion("goods_code <", value, "goodsCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andGoodsCodeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("goods_code < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andGoodsCodeLessThanOrEqualTo(String value) {
addCriterion("goods_code <=", value, "goodsCode");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andGoodsCodeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("goods_code <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andGoodsCodeLike(String value) {
addCriterion("goods_code like", value, "goodsCode");
return (Criteria) this;
}
public Criteria andGoodsCodeNotLike(String value) {
addCriterion("goods_code not like", value, "goodsCode");
return (Criteria) this;
}
public Criteria andGoodsCodeIn(List<String> values) {
addCriterion("goods_code in", values, "goodsCode");
return (Criteria) this;
}
public Criteria andGoodsCodeNotIn(List<String> values) {
addCriterion("goods_code not in", values, "goodsCode");
return (Criteria) this;
}
public Criteria andGoodsCodeBetween(String value1, String value2) {
addCriterion("goods_code between", value1, value2, "goodsCode");
return (Criteria) this;
}
public Criteria andGoodsCodeNotBetween(String value1, String value2) {
addCriterion("goods_code not between", value1, value2, "goodsCode");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoIsNull() {
addCriterion("in_process_waybill_no is null");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoIsNotNull() {
addCriterion("in_process_waybill_no is not null");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoEqualTo(String value) {
addCriterion("in_process_waybill_no =", value, "inProcessWaybillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andInProcessWaybillNoEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("in_process_waybill_no = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andInProcessWaybillNoNotEqualTo(String value) {
addCriterion("in_process_waybill_no <>", value, "inProcessWaybillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andInProcessWaybillNoNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("in_process_waybill_no <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andInProcessWaybillNoGreaterThan(String value) {
addCriterion("in_process_waybill_no >", value, "inProcessWaybillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andInProcessWaybillNoGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("in_process_waybill_no > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andInProcessWaybillNoGreaterThanOrEqualTo(String value) {
addCriterion("in_process_waybill_no >=", value, "inProcessWaybillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andInProcessWaybillNoGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("in_process_waybill_no >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andInProcessWaybillNoLessThan(String value) {
addCriterion("in_process_waybill_no <", value, "inProcessWaybillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andInProcessWaybillNoLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("in_process_waybill_no < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andInProcessWaybillNoLessThanOrEqualTo(String value) {
addCriterion("in_process_waybill_no <=", value, "inProcessWaybillNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andInProcessWaybillNoLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("in_process_waybill_no <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andInProcessWaybillNoLike(String value) {
addCriterion("in_process_waybill_no like", value, "inProcessWaybillNo");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoNotLike(String value) {
addCriterion("in_process_waybill_no not like", value, "inProcessWaybillNo");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoIn(List<String> values) {
addCriterion("in_process_waybill_no in", values, "inProcessWaybillNo");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoNotIn(List<String> values) {
addCriterion("in_process_waybill_no not in", values, "inProcessWaybillNo");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoBetween(String value1, String value2) {
addCriterion("in_process_waybill_no between", value1, value2, "inProcessWaybillNo");
return (Criteria) this;
}
public Criteria andInProcessWaybillNoNotBetween(String value1, String value2) {
addCriterion("in_process_waybill_no not between", value1, value2, "inProcessWaybillNo");
return (Criteria) this;
}
public Criteria andBrandIsNull() {
addCriterion("brand is null");
return (Criteria) this;
}
public Criteria andBrandIsNotNull() {
addCriterion("brand is not null");
return (Criteria) this;
}
public Criteria andBrandEqualTo(String value) {
addCriterion("brand =", value, "brand");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBrandEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("brand = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBrandNotEqualTo(String value) {
addCriterion("brand <>", value, "brand");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBrandNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("brand <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBrandGreaterThan(String value) {
addCriterion("brand >", value, "brand");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBrandGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("brand > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBrandGreaterThanOrEqualTo(String value) {
addCriterion("brand >=", value, "brand");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBrandGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("brand >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBrandLessThan(String value) {
addCriterion("brand <", value, "brand");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBrandLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("brand < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBrandLessThanOrEqualTo(String value) {
addCriterion("brand <=", value, "brand");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBrandLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("brand <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBrandLike(String value) {
addCriterion("brand like", value, "brand");
return (Criteria) this;
}
public Criteria andBrandNotLike(String value) {
addCriterion("brand not like", value, "brand");
return (Criteria) this;
}
public Criteria andBrandIn(List<String> values) {
addCriterion("brand in", values, "brand");
return (Criteria) this;
}
public Criteria andBrandNotIn(List<String> values) {
addCriterion("brand not in", values, "brand");
return (Criteria) this;
}
public Criteria andBrandBetween(String value1, String value2) {
addCriterion("brand between", value1, value2, "brand");
return (Criteria) this;
}
public Criteria andBrandNotBetween(String value1, String value2) {
addCriterion("brand not between", value1, value2, "brand");
return (Criteria) this;
}
public Criteria andSpecificationsIsNull() {
addCriterion("specifications is null");
return (Criteria) this;
}
public Criteria andSpecificationsIsNotNull() {
addCriterion("specifications is not null");
return (Criteria) this;
}
public Criteria andSpecificationsEqualTo(String value) {
addCriterion("specifications =", value, "specifications");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSpecificationsEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("specifications = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSpecificationsNotEqualTo(String value) {
addCriterion("specifications <>", value, "specifications");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSpecificationsNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("specifications <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSpecificationsGreaterThan(String value) {
addCriterion("specifications >", value, "specifications");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSpecificationsGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("specifications > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSpecificationsGreaterThanOrEqualTo(String value) {
addCriterion("specifications >=", value, "specifications");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSpecificationsGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("specifications >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSpecificationsLessThan(String value) {
addCriterion("specifications <", value, "specifications");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSpecificationsLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("specifications < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSpecificationsLessThanOrEqualTo(String value) {
addCriterion("specifications <=", value, "specifications");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSpecificationsLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("specifications <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSpecificationsLike(String value) {
addCriterion("specifications like", value, "specifications");
return (Criteria) this;
}
public Criteria andSpecificationsNotLike(String value) {
addCriterion("specifications not like", value, "specifications");
return (Criteria) this;
}
public Criteria andSpecificationsIn(List<String> values) {
addCriterion("specifications in", values, "specifications");
return (Criteria) this;
}
public Criteria andSpecificationsNotIn(List<String> values) {
addCriterion("specifications not in", values, "specifications");
return (Criteria) this;
}
public Criteria andSpecificationsBetween(String value1, String value2) {
addCriterion("specifications between", value1, value2, "specifications");
return (Criteria) this;
}
public Criteria andSpecificationsNotBetween(String value1, String value2) {
addCriterion("specifications not between", value1, value2, "specifications");
return (Criteria) this;
}
public Criteria andTempRangeIsNull() {
addCriterion("temp_range is null");
return (Criteria) this;
}
public Criteria andTempRangeIsNotNull() {
addCriterion("temp_range is not null");
return (Criteria) this;
}
public Criteria andTempRangeEqualTo(Short value) {
addCriterion("temp_range =", value, "tempRange");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTempRangeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("temp_range = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTempRangeNotEqualTo(Short value) {
addCriterion("temp_range <>", value, "tempRange");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTempRangeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("temp_range <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTempRangeGreaterThan(Short value) {
addCriterion("temp_range >", value, "tempRange");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTempRangeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("temp_range > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTempRangeGreaterThanOrEqualTo(Short value) {
addCriterion("temp_range >=", value, "tempRange");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTempRangeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("temp_range >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTempRangeLessThan(Short value) {
addCriterion("temp_range <", value, "tempRange");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTempRangeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("temp_range < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTempRangeLessThanOrEqualTo(Short value) {
addCriterion("temp_range <=", value, "tempRange");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTempRangeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("temp_range <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTempRangeIn(List<Short> values) {
addCriterion("temp_range in", values, "tempRange");
return (Criteria) this;
}
public Criteria andTempRangeNotIn(List<Short> values) {
addCriterion("temp_range not in", values, "tempRange");
return (Criteria) this;
}
public Criteria andTempRangeBetween(Short value1, Short value2) {
addCriterion("temp_range between", value1, value2, "tempRange");
return (Criteria) this;
}
public Criteria andTempRangeNotBetween(Short value1, Short value2) {
addCriterion("temp_range not between", value1, value2, "tempRange");
return (Criteria) this;
}
public Criteria andOrderNameIsNull() {
addCriterion("order_name is null");
return (Criteria) this;
}
public Criteria andOrderNameIsNotNull() {
addCriterion("order_name is not null");
return (Criteria) this;
}
public Criteria andOrderNameEqualTo(String value) {
addCriterion("order_name =", value, "orderName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderNameEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_name = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderNameNotEqualTo(String value) {
addCriterion("order_name <>", value, "orderName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderNameNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_name <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderNameGreaterThan(String value) {
addCriterion("order_name >", value, "orderName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderNameGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_name > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderNameGreaterThanOrEqualTo(String value) {
addCriterion("order_name >=", value, "orderName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderNameGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_name >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderNameLessThan(String value) {
addCriterion("order_name <", value, "orderName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderNameLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_name < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderNameLessThanOrEqualTo(String value) {
addCriterion("order_name <=", value, "orderName");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderNameLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_name <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderNameLike(String value) {
addCriterion("order_name like", value, "orderName");
return (Criteria) this;
}
public Criteria andOrderNameNotLike(String value) {
addCriterion("order_name not like", value, "orderName");
return (Criteria) this;
}
public Criteria andOrderNameIn(List<String> values) {
addCriterion("order_name in", values, "orderName");
return (Criteria) this;
}
public Criteria andOrderNameNotIn(List<String> values) {
addCriterion("order_name not in", values, "orderName");
return (Criteria) this;
}
public Criteria andOrderNameBetween(String value1, String value2) {
addCriterion("order_name between", value1, value2, "orderName");
return (Criteria) this;
}
public Criteria andOrderNameNotBetween(String value1, String value2) {
addCriterion("order_name not between", value1, value2, "orderName");
return (Criteria) this;
}
public Criteria andOrderCertTypeIsNull() {
addCriterion("order_cert_type is null");
return (Criteria) this;
}
public Criteria andOrderCertTypeIsNotNull() {
addCriterion("order_cert_type is not null");
return (Criteria) this;
}
public Criteria andOrderCertTypeEqualTo(String value) {
addCriterion("order_cert_type =", value, "orderCertType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertTypeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_type = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertTypeNotEqualTo(String value) {
addCriterion("order_cert_type <>", value, "orderCertType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertTypeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_type <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertTypeGreaterThan(String value) {
addCriterion("order_cert_type >", value, "orderCertType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertTypeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_type > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertTypeGreaterThanOrEqualTo(String value) {
addCriterion("order_cert_type >=", value, "orderCertType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertTypeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_type >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertTypeLessThan(String value) {
addCriterion("order_cert_type <", value, "orderCertType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertTypeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_type < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertTypeLessThanOrEqualTo(String value) {
addCriterion("order_cert_type <=", value, "orderCertType");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertTypeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_type <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertTypeLike(String value) {
addCriterion("order_cert_type like", value, "orderCertType");
return (Criteria) this;
}
public Criteria andOrderCertTypeNotLike(String value) {
addCriterion("order_cert_type not like", value, "orderCertType");
return (Criteria) this;
}
public Criteria andOrderCertTypeIn(List<String> values) {
addCriterion("order_cert_type in", values, "orderCertType");
return (Criteria) this;
}
public Criteria andOrderCertTypeNotIn(List<String> values) {
addCriterion("order_cert_type not in", values, "orderCertType");
return (Criteria) this;
}
public Criteria andOrderCertTypeBetween(String value1, String value2) {
addCriterion("order_cert_type between", value1, value2, "orderCertType");
return (Criteria) this;
}
public Criteria andOrderCertTypeNotBetween(String value1, String value2) {
addCriterion("order_cert_type not between", value1, value2, "orderCertType");
return (Criteria) this;
}
public Criteria andOrderCertNoIsNull() {
addCriterion("order_cert_no is null");
return (Criteria) this;
}
public Criteria andOrderCertNoIsNotNull() {
addCriterion("order_cert_no is not null");
return (Criteria) this;
}
public Criteria andOrderCertNoEqualTo(String value) {
addCriterion("order_cert_no =", value, "orderCertNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertNoEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_no = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertNoNotEqualTo(String value) {
addCriterion("order_cert_no <>", value, "orderCertNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertNoNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_no <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertNoGreaterThan(String value) {
addCriterion("order_cert_no >", value, "orderCertNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertNoGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_no > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertNoGreaterThanOrEqualTo(String value) {
addCriterion("order_cert_no >=", value, "orderCertNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertNoGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_no >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertNoLessThan(String value) {
addCriterion("order_cert_no <", value, "orderCertNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertNoLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_no < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertNoLessThanOrEqualTo(String value) {
addCriterion("order_cert_no <=", value, "orderCertNo");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderCertNoLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_cert_no <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderCertNoLike(String value) {
addCriterion("order_cert_no like", value, "orderCertNo");
return (Criteria) this;
}
public Criteria andOrderCertNoNotLike(String value) {
addCriterion("order_cert_no not like", value, "orderCertNo");
return (Criteria) this;
}
public Criteria andOrderCertNoIn(List<String> values) {
addCriterion("order_cert_no in", values, "orderCertNo");
return (Criteria) this;
}
public Criteria andOrderCertNoNotIn(List<String> values) {
addCriterion("order_cert_no not in", values, "orderCertNo");
return (Criteria) this;
}
public Criteria andOrderCertNoBetween(String value1, String value2) {
addCriterion("order_cert_no between", value1, value2, "orderCertNo");
return (Criteria) this;
}
public Criteria andOrderCertNoNotBetween(String value1, String value2) {
addCriterion("order_cert_no not between", value1, value2, "orderCertNo");
return (Criteria) this;
}
public Criteria andOrderSourceIsNull() {
addCriterion("order_source is null");
return (Criteria) this;
}
public Criteria andOrderSourceIsNotNull() {
addCriterion("order_source is not null");
return (Criteria) this;
}
public Criteria andOrderSourceEqualTo(String value) {
addCriterion("order_source =", value, "orderSource");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderSourceEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_source = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderSourceNotEqualTo(String value) {
addCriterion("order_source <>", value, "orderSource");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderSourceNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_source <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderSourceGreaterThan(String value) {
addCriterion("order_source >", value, "orderSource");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderSourceGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_source > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderSourceGreaterThanOrEqualTo(String value) {
addCriterion("order_source >=", value, "orderSource");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderSourceGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_source >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderSourceLessThan(String value) {
addCriterion("order_source <", value, "orderSource");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderSourceLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_source < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderSourceLessThanOrEqualTo(String value) {
addCriterion("order_source <=", value, "orderSource");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOrderSourceLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("order_source <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOrderSourceLike(String value) {
addCriterion("order_source like", value, "orderSource");
return (Criteria) this;
}
public Criteria andOrderSourceNotLike(String value) {
addCriterion("order_source not like", value, "orderSource");
return (Criteria) this;
}
public Criteria andOrderSourceIn(List<String> values) {
addCriterion("order_source in", values, "orderSource");
return (Criteria) this;
}
public Criteria andOrderSourceNotIn(List<String> values) {
addCriterion("order_source not in", values, "orderSource");
return (Criteria) this;
}
public Criteria andOrderSourceBetween(String value1, String value2) {
addCriterion("order_source between", value1, value2, "orderSource");
return (Criteria) this;
}
public Criteria andOrderSourceNotBetween(String value1, String value2) {
addCriterion("order_source not between", value1, value2, "orderSource");
return (Criteria) this;
}
public Criteria andTemplateIsNull() {
addCriterion("`template` is null");
return (Criteria) this;
}
public Criteria andTemplateIsNotNull() {
addCriterion("`template` is not null");
return (Criteria) this;
}
public Criteria andTemplateEqualTo(String value) {
addCriterion("`template` =", value, "template");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTemplateEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("`template` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTemplateNotEqualTo(String value) {
addCriterion("`template` <>", value, "template");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTemplateNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("`template` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTemplateGreaterThan(String value) {
addCriterion("`template` >", value, "template");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTemplateGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("`template` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTemplateGreaterThanOrEqualTo(String value) {
addCriterion("`template` >=", value, "template");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTemplateGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("`template` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTemplateLessThan(String value) {
addCriterion("`template` <", value, "template");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTemplateLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("`template` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTemplateLessThanOrEqualTo(String value) {
addCriterion("`template` <=", value, "template");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTemplateLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("`template` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTemplateLike(String value) {
addCriterion("`template` like", value, "template");
return (Criteria) this;
}
public Criteria andTemplateNotLike(String value) {
addCriterion("`template` not like", value, "template");
return (Criteria) this;
}
public Criteria andTemplateIn(List<String> values) {
addCriterion("`template` in", values, "template");
return (Criteria) this;
}
public Criteria andTemplateNotIn(List<String> values) {
addCriterion("`template` not in", values, "template");
return (Criteria) this;
}
public Criteria andTemplateBetween(String value1, String value2) {
addCriterion("`template` between", value1, value2, "template");
return (Criteria) this;
}
public Criteria andTemplateNotBetween(String value1, String value2) {
addCriterion("`template` not between", value1, value2, "template");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRemarkEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("remark = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRemarkNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("remark <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRemarkGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("remark > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRemarkGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("remark >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRemarkLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("remark < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRemarkLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("remark <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andOneselfPickupFlgIsNull() {
addCriterion("oneself_pickup_flg is null");
return (Criteria) this;
}
public Criteria andOneselfPickupFlgIsNotNull() {
addCriterion("oneself_pickup_flg is not null");
return (Criteria) this;
}
public Criteria andOneselfPickupFlgEqualTo(Integer value) {
addCriterion("oneself_pickup_flg =", value, "oneselfPickupFlg");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOneselfPickupFlgEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("oneself_pickup_flg = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOneselfPickupFlgNotEqualTo(Integer value) {
addCriterion("oneself_pickup_flg <>", value, "oneselfPickupFlg");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOneselfPickupFlgNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("oneself_pickup_flg <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOneselfPickupFlgGreaterThan(Integer value) {
addCriterion("oneself_pickup_flg >", value, "oneselfPickupFlg");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOneselfPickupFlgGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("oneself_pickup_flg > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOneselfPickupFlgGreaterThanOrEqualTo(Integer value) {
addCriterion("oneself_pickup_flg >=", value, "oneselfPickupFlg");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOneselfPickupFlgGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("oneself_pickup_flg >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOneselfPickupFlgLessThan(Integer value) {
addCriterion("oneself_pickup_flg <", value, "oneselfPickupFlg");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOneselfPickupFlgLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("oneself_pickup_flg < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOneselfPickupFlgLessThanOrEqualTo(Integer value) {
addCriterion("oneself_pickup_flg <=", value, "oneselfPickupFlg");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOneselfPickupFlgLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("oneself_pickup_flg <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOneselfPickupFlgIn(List<Integer> values) {
addCriterion("oneself_pickup_flg in", values, "oneselfPickupFlg");
return (Criteria) this;
}
public Criteria andOneselfPickupFlgNotIn(List<Integer> values) {
addCriterion("oneself_pickup_flg not in", values, "oneselfPickupFlg");
return (Criteria) this;
}
public Criteria andOneselfPickupFlgBetween(Integer value1, Integer value2) {
addCriterion("oneself_pickup_flg between", value1, value2, "oneselfPickupFlg");
return (Criteria) this;
}
public Criteria andOneselfPickupFlgNotBetween(Integer value1, Integer value2) {
addCriterion("oneself_pickup_flg not between", value1, value2, "oneselfPickupFlg");
return (Criteria) this;
}
public Criteria andDispatchSysIsNull() {
addCriterion("dispatch_sys is null");
return (Criteria) this;
}
public Criteria andDispatchSysIsNotNull() {
addCriterion("dispatch_sys is not null");
return (Criteria) this;
}
public Criteria andDispatchSysEqualTo(String value) {
addCriterion("dispatch_sys =", value, "dispatchSys");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDispatchSysEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("dispatch_sys = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDispatchSysNotEqualTo(String value) {
addCriterion("dispatch_sys <>", value, "dispatchSys");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDispatchSysNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("dispatch_sys <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDispatchSysGreaterThan(String value) {
addCriterion("dispatch_sys >", value, "dispatchSys");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDispatchSysGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("dispatch_sys > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDispatchSysGreaterThanOrEqualTo(String value) {
addCriterion("dispatch_sys >=", value, "dispatchSys");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDispatchSysGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("dispatch_sys >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDispatchSysLessThan(String value) {
addCriterion("dispatch_sys <", value, "dispatchSys");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDispatchSysLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("dispatch_sys < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDispatchSysLessThanOrEqualTo(String value) {
addCriterion("dispatch_sys <=", value, "dispatchSys");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDispatchSysLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("dispatch_sys <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDispatchSysLike(String value) {
addCriterion("dispatch_sys like", value, "dispatchSys");
return (Criteria) this;
}
public Criteria andDispatchSysNotLike(String value) {
addCriterion("dispatch_sys not like", value, "dispatchSys");
return (Criteria) this;
}
public Criteria andDispatchSysIn(List<String> values) {
addCriterion("dispatch_sys in", values, "dispatchSys");
return (Criteria) this;
}
public Criteria andDispatchSysNotIn(List<String> values) {
addCriterion("dispatch_sys not in", values, "dispatchSys");
return (Criteria) this;
}
public Criteria andDispatchSysBetween(String value1, String value2) {
addCriterion("dispatch_sys between", value1, value2, "dispatchSys");
return (Criteria) this;
}
public Criteria andDispatchSysNotBetween(String value1, String value2) {
addCriterion("dispatch_sys not between", value1, value2, "dispatchSys");
return (Criteria) this;
}
public Criteria andFilterFieldIsNull() {
addCriterion("filter_field is null");
return (Criteria) this;
}
public Criteria andFilterFieldIsNotNull() {
addCriterion("filter_field is not null");
return (Criteria) this;
}
public Criteria andFilterFieldEqualTo(String value) {
addCriterion("filter_field =", value, "filterField");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andFilterFieldEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("filter_field = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andFilterFieldNotEqualTo(String value) {
addCriterion("filter_field <>", value, "filterField");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andFilterFieldNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("filter_field <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andFilterFieldGreaterThan(String value) {
addCriterion("filter_field >", value, "filterField");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andFilterFieldGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("filter_field > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andFilterFieldGreaterThanOrEqualTo(String value) {
addCriterion("filter_field >=", value, "filterField");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andFilterFieldGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("filter_field >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andFilterFieldLessThan(String value) {
addCriterion("filter_field <", value, "filterField");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andFilterFieldLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("filter_field < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andFilterFieldLessThanOrEqualTo(String value) {
addCriterion("filter_field <=", value, "filterField");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andFilterFieldLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("filter_field <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andFilterFieldLike(String value) {
addCriterion("filter_field like", value, "filterField");
return (Criteria) this;
}
public Criteria andFilterFieldNotLike(String value) {
addCriterion("filter_field not like", value, "filterField");
return (Criteria) this;
}
public Criteria andFilterFieldIn(List<String> values) {
addCriterion("filter_field in", values, "filterField");
return (Criteria) this;
}
public Criteria andFilterFieldNotIn(List<String> values) {
addCriterion("filter_field not in", values, "filterField");
return (Criteria) this;
}
public Criteria andFilterFieldBetween(String value1, String value2) {
addCriterion("filter_field between", value1, value2, "filterField");
return (Criteria) this;
}
public Criteria andFilterFieldNotBetween(String value1, String value2) {
addCriterion("filter_field not between", value1, value2, "filterField");
return (Criteria) this;
}
public Criteria andTotalNetWeightIsNull() {
addCriterion("total_net_weight is null");
return (Criteria) this;
}
public Criteria andTotalNetWeightIsNotNull() {
addCriterion("total_net_weight is not null");
return (Criteria) this;
}
public Criteria andTotalNetWeightEqualTo(BigDecimal value) {
addCriterion("total_net_weight =", value, "totalNetWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTotalNetWeightEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("total_net_weight = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTotalNetWeightNotEqualTo(BigDecimal value) {
addCriterion("total_net_weight <>", value, "totalNetWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTotalNetWeightNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("total_net_weight <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTotalNetWeightGreaterThan(BigDecimal value) {
addCriterion("total_net_weight >", value, "totalNetWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTotalNetWeightGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("total_net_weight > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTotalNetWeightGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("total_net_weight >=", value, "totalNetWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTotalNetWeightGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("total_net_weight >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTotalNetWeightLessThan(BigDecimal value) {
addCriterion("total_net_weight <", value, "totalNetWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTotalNetWeightLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("total_net_weight < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTotalNetWeightLessThanOrEqualTo(BigDecimal value) {
addCriterion("total_net_weight <=", value, "totalNetWeight");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTotalNetWeightLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("total_net_weight <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTotalNetWeightIn(List<BigDecimal> values) {
addCriterion("total_net_weight in", values, "totalNetWeight");
return (Criteria) this;
}
public Criteria andTotalNetWeightNotIn(List<BigDecimal> values) {
addCriterion("total_net_weight not in", values, "totalNetWeight");
return (Criteria) this;
}
public Criteria andTotalNetWeightBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("total_net_weight between", value1, value2, "totalNetWeight");
return (Criteria) this;
}
public Criteria andTotalNetWeightNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("total_net_weight not between", value1, value2, "totalNetWeight");
return (Criteria) this;
}
public Criteria andRoutelabelforreturnIsNull() {
addCriterion("routelabelForReturn is null");
return (Criteria) this;
}
public Criteria andRoutelabelforreturnIsNotNull() {
addCriterion("routelabelForReturn is not null");
return (Criteria) this;
}
public Criteria andRoutelabelforreturnEqualTo(Integer value) {
addCriterion("routelabelForReturn =", value, "routelabelforreturn");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelforreturnEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelForReturn = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelforreturnNotEqualTo(Integer value) {
addCriterion("routelabelForReturn <>", value, "routelabelforreturn");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelforreturnNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelForReturn <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelforreturnGreaterThan(Integer value) {
addCriterion("routelabelForReturn >", value, "routelabelforreturn");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelforreturnGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelForReturn > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelforreturnGreaterThanOrEqualTo(Integer value) {
addCriterion("routelabelForReturn >=", value, "routelabelforreturn");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelforreturnGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelForReturn >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelforreturnLessThan(Integer value) {
addCriterion("routelabelForReturn <", value, "routelabelforreturn");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelforreturnLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelForReturn < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelforreturnLessThanOrEqualTo(Integer value) {
addCriterion("routelabelForReturn <=", value, "routelabelforreturn");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelforreturnLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelForReturn <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelforreturnIn(List<Integer> values) {
addCriterion("routelabelForReturn in", values, "routelabelforreturn");
return (Criteria) this;
}
public Criteria andRoutelabelforreturnNotIn(List<Integer> values) {
addCriterion("routelabelForReturn not in", values, "routelabelforreturn");
return (Criteria) this;
}
public Criteria andRoutelabelforreturnBetween(Integer value1, Integer value2) {
addCriterion("routelabelForReturn between", value1, value2, "routelabelforreturn");
return (Criteria) this;
}
public Criteria andRoutelabelforreturnNotBetween(Integer value1, Integer value2) {
addCriterion("routelabelForReturn not between", value1, value2, "routelabelforreturn");
return (Criteria) this;
}
public Criteria andRoutelabelserviceIsNull() {
addCriterion("routelabelService is null");
return (Criteria) this;
}
public Criteria andRoutelabelserviceIsNotNull() {
addCriterion("routelabelService is not null");
return (Criteria) this;
}
public Criteria andRoutelabelserviceEqualTo(Integer value) {
addCriterion("routelabelService =", value, "routelabelservice");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelserviceEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelService = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelserviceNotEqualTo(Integer value) {
addCriterion("routelabelService <>", value, "routelabelservice");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelserviceNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelService <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelserviceGreaterThan(Integer value) {
addCriterion("routelabelService >", value, "routelabelservice");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelserviceGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelService > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelserviceGreaterThanOrEqualTo(Integer value) {
addCriterion("routelabelService >=", value, "routelabelservice");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelserviceGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelService >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelserviceLessThan(Integer value) {
addCriterion("routelabelService <", value, "routelabelservice");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelserviceLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelService < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelserviceLessThanOrEqualTo(Integer value) {
addCriterion("routelabelService <=", value, "routelabelservice");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andRoutelabelserviceLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("routelabelService <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andRoutelabelserviceIn(List<Integer> values) {
addCriterion("routelabelService in", values, "routelabelservice");
return (Criteria) this;
}
public Criteria andRoutelabelserviceNotIn(List<Integer> values) {
addCriterion("routelabelService not in", values, "routelabelservice");
return (Criteria) this;
}
public Criteria andRoutelabelserviceBetween(Integer value1, Integer value2) {
addCriterion("routelabelService between", value1, value2, "routelabelservice");
return (Criteria) this;
}
public Criteria andRoutelabelserviceNotBetween(Integer value1, Integer value2) {
addCriterion("routelabelService not between", value1, value2, "routelabelservice");
return (Criteria) this;
}
public Criteria andAddTimeIsNull() {
addCriterion("add_time is null");
return (Criteria) this;
}
public Criteria andAddTimeIsNotNull() {
addCriterion("add_time is not null");
return (Criteria) this;
}
public Criteria andAddTimeEqualTo(LocalDateTime value) {
addCriterion("add_time =", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAddTimeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
addCriterion("add_time <>", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAddTimeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAddTimeGreaterThan(LocalDateTime value) {
addCriterion("add_time >", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAddTimeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("add_time >=", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAddTimeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAddTimeLessThan(LocalDateTime value) {
addCriterion("add_time <", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAddTimeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("add_time <=", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andAddTimeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andAddTimeIn(List<LocalDateTime> values) {
addCriterion("add_time in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotIn(List<LocalDateTime> values) {
addCriterion("add_time not in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("add_time between", value1, value2, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("add_time not between", value1, value2, "addTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(LocalDateTime value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdateTimeLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<LocalDateTime> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<LocalDateTime> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andDeletedIsNull() {
addCriterion("deleted is null");
return (Criteria) this;
}
public Criteria andDeletedIsNotNull() {
addCriterion("deleted is not null");
return (Criteria) this;
}
public Criteria andDeletedEqualTo(Boolean value) {
addCriterion("deleted =", value, "deleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeletedEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeletedNotEqualTo(Boolean value) {
addCriterion("deleted <>", value, "deleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeletedNotEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeletedGreaterThan(Boolean value) {
addCriterion("deleted >", value, "deleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeletedGreaterThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
addCriterion("deleted >=", value, "deleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeletedGreaterThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeletedLessThan(Boolean value) {
addCriterion("deleted <", value, "deleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeletedLessThanColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
addCriterion("deleted <=", value, "deleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andDeletedLessThanOrEqualToColumn(LitemallExpressOrder.Column column) {
addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andDeletedIn(List<Boolean> values) {
addCriterion("deleted in", values, "deleted");
return (Criteria) this;
}
public Criteria andDeletedNotIn(List<Boolean> values) {
addCriterion("deleted not in", values, "deleted");
return (Criteria) this;
}
public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
addCriterion("deleted between", value1, value2, "deleted");
return (Criteria) this;
}
public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
addCriterion("deleted not between", value1, value2, "deleted");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_express_order
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private LitemallExpressOrderExample example;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria(LitemallExpressOrderExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public LitemallExpressOrderExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
if (ifAdd) {
add.add(this);
}
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLogicalDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallExpressOrder.IS_DELETED) : andDeletedNotEqualTo(LitemallExpressOrder.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public interface ICriteriaAdd {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_express_order
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria add(Criteria add);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table litemall_express_order
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
|
lanl/DnMFkCPP
|
install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level2/CMakeFiles/dtpmv_NUN.c
|
<reponame>lanl/DnMFkCPP<filename>install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level2/CMakeFiles/dtpmv_NUN.c
#define ASMNAME dtpmv_NUN
#define ASMFNAME dtpmv_NUN_
#define NAME dtpmv_NUN_
#define CNAME dtpmv_NUN
#define CHAR_NAME "dtpmv_NUN_"
#define CHAR_CNAME "dtpmv_NUN"
#define DOUBLE
#include "/lustre/scratch3/turquoise/rvangara/RD100/distnnmfkcpp_Src/install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level2/tpmv_U.c"
|
sebokopter/KarteVonMorgenApp
|
core/src/main/java/de/heilsen/kartevonmorgen/core/validator/EmailValidator.java
|
package de.heilsen.kartevonmorgen.core.validator;
import java.util.regex.Pattern;
//TODO: implement own rfc 5322 compliant validator
public class EmailValidator {
private static final String WSP = "[\\t ]";
private static final String CRLF = "(\\r\\n)";
private static final String FWS = String.format("((%s*%s)?%s+)", WSP, CRLF, WSP); //FIXME: obs-fws part missing
private static final String CFWS = String.format("(%s)", FWS); //FIXME: comment part missing
private static final String ALPHA = "[A-Za-z]";
private static final String DIGIT = "[0-9]";
private static final String SPECIAL = "[!#$%&'*+-/=?^_`{|}~]";
private static final String ATEXT = String.format("(%s|%s|%s)", ALPHA, DIGIT, SPECIAL);
private static final String ATOM = String.format("(%s?%s+%s?)", CFWS, ATEXT, CFWS);
private static final String DOT_ATOM_TEXT = String.format("(%s+(\\.%s+)*)", ATEXT, ATEXT);
private static final String DOT_ATOM = String.format("(%s?%s%s?)", CFWS, DOT_ATOM_TEXT, CFWS);
// private static final String ADDR_SPEC = LOCAL_PART + "@" + DOMAIN_PART;
// private static final String LOCAL_PART = DOT_ATOM
private static final String EMAIL_PART = "[^\\x00-\\x1F()<>@,;:\\\\\".\\[\\]\\s]";
private static final String DOMAIN_PATTERN = EMAIL_PART + "+(\\." + EMAIL_PART
+ "+)*";
private static final String IPv4_PATTERN = "\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\]";
private static final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern
.compile("^" + EMAIL_PART + "+(\\." + EMAIL_PART + "+)*@(" + DOMAIN_PATTERN
+ "|" + IPv4_PATTERN + ")$", Pattern.CASE_INSENSITIVE);
}
|
VHAINNOVATIONS/Telepathology
|
Source/Java/FederationDataSourceProvider/main/src/java/gov/va/med/imaging/federation/proxy/v5/FederationRestImageAnnotationProxyV5.java
|
<gh_stars>1-10
/**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created: Jun 20, 2011
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: VHAISWWERFEJ
Description:
;; +--------------------------------------------------------------------+
;; Property of the US Government.
;; No permission to copy or redistribute this software is given.
;; Use of unreleased versions of this software requires the user
;; to execute a written test agreement with the VistA Imaging
;; Development Office of the Department of Veterans Affairs,
;; telephone (301) 734-0100.
;;
;; The Food and Drug Administration classifies this software as
;; a Class II medical device. As such, it may not be changed
;; in any way. Modifications to this software may result in an
;; adulterated medical device under 21CFR820, the use of which
;; is considered to be a violation of US Federal Statutes.
;; +--------------------------------------------------------------------+
*/
package gov.va.med.imaging.federation.proxy.v5;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.MediaType;
import org.apache.commons.httpclient.methods.GetMethod;
import gov.va.med.imaging.AbstractImagingURN;
import gov.va.med.imaging.ImageAnnotationURN;
import gov.va.med.imaging.core.interfaces.exceptions.ConnectionException;
import gov.va.med.imaging.core.interfaces.exceptions.MethodException;
import gov.va.med.imaging.exceptions.URNFormatException;
import gov.va.med.imaging.exchange.business.annotations.ImageAnnotation;
import gov.va.med.imaging.exchange.business.annotations.ImageAnnotationDetails;
import gov.va.med.imaging.exchange.business.annotations.ImageAnnotationSource;
import gov.va.med.imaging.federation.rest.endpoints.FederationImageAnnotationRestUri;
import gov.va.med.imaging.federation.rest.proxy.AbstractFederationRestImageProxy;
import gov.va.med.imaging.federation.rest.proxy.FederationRestGetClient;
import gov.va.med.imaging.federation.rest.proxy.FederationRestPostClient;
import gov.va.med.imaging.federation.rest.translator.FederationRestTranslator;
import gov.va.med.imaging.federation.rest.types.FederationImageAnnotationDetailsType;
import gov.va.med.imaging.federation.rest.types.FederationImageAnnotationType;
import gov.va.med.imaging.federationdatasource.configuration.FederationConfiguration;
import gov.va.med.imaging.proxy.services.ProxyServiceType;
import gov.va.med.imaging.proxy.services.ProxyServices;
import gov.va.med.imaging.transactioncontext.TransactionContext;
import gov.va.med.imaging.transactioncontext.TransactionContextFactory;
/**
* @author VHAISWWERFEJ
*
*/
public class FederationRestImageAnnotationProxyV5
extends AbstractFederationRestImageProxy
{
public FederationRestImageAnnotationProxyV5(ProxyServices proxyServices,
FederationConfiguration federationConfiguration)
{
super(proxyServices, federationConfiguration);
}
@Override
protected String getRestServicePath()
{
return FederationImageAnnotationRestUri.imageAnnotationServicePath;
}
@Override
protected ProxyServiceType getProxyServiceType()
{
return ProxyServiceType.metadata;
}
@Override
protected String getDataSourceVersion()
{
return "5";
}
@Override
protected void addOptionalGetInstanceHeaders(GetMethod getMethod)
{
// don't need to do anything here since image not actually loaded here
}
@Override
protected ProxyServiceType getInstanceRequestProxyServiceType()
{
return ProxyServiceType.image;
}
@Override
protected ProxyServiceType getTextFileRequestProxyServiceType()
{
return ProxyServiceType.text;
}
public List<ImageAnnotation> getImageAnnotations(AbstractImagingURN imagingUrn)
throws MethodException, ConnectionException
{
TransactionContext transactionContext = TransactionContextFactory.get();
getLogger().info("getImageAnnotations, Transaction [" + transactionContext.getTransactionId() + "] initiated, image '" + imagingUrn.toString() + "'.");
setDataSourceMethodAndVersion("getImageAnnotations");
Map<String, String> urlParameterKeyValues = new HashMap<String, String>();
urlParameterKeyValues.put("{imagingUrn}", imagingUrn.toString());
String url = getWebResourceUrl(FederationImageAnnotationRestUri.imageAnnotationsPath, urlParameterKeyValues);
FederationRestGetClient getClient = new FederationRestGetClient(url, MediaType.APPLICATION_XML_TYPE, federationConfiguration);
FederationImageAnnotationType [] imageAnnotations = getClient.executeRequest(FederationImageAnnotationType[].class);
getLogger().info("getImageAnnotations, Transaction [" + transactionContext.getTransactionId() + "] returned [" + (imageAnnotations == null ? "null" : "not null") + "] patient sensitivity webservice object.");
List<ImageAnnotation> result = null;
try
{
result = FederationRestTranslator.translate(imageAnnotations);
}
catch(URNFormatException urnfX)
{
logger.error("URNFormatException translating image annotations", urnfX);
throw new MethodException(urnfX);
}
getLogger().info("getImageAnnotations, Transaction [" + transactionContext.getTransactionId() + "] returned [" + (result == null ? "null" : result.size()) + "] image annotations.");
return result;
}
public ImageAnnotationDetails getAnnotationDetails(
AbstractImagingURN imagingUrn,
ImageAnnotationURN imageAnnotationUrn)
throws MethodException, ConnectionException
{
TransactionContext transactionContext = TransactionContextFactory.get();
getLogger().info("getAnnotationDetails, Transaction [" + transactionContext.getTransactionId() + "] initiated, image annotation '" + imageAnnotationUrn.toString() + "'.");
setDataSourceMethodAndVersion("getAnnotationDetails");
Map<String, String> urlParameterKeyValues = new HashMap<String, String>();
urlParameterKeyValues.put("{imagingUrn}", imagingUrn.toString());
urlParameterKeyValues.put("{imageAnnotationUrn}", imageAnnotationUrn.toString());
String url = getWebResourceUrl(FederationImageAnnotationRestUri.imageAnnotationDetailsPath, urlParameterKeyValues);
FederationRestGetClient getClient = new FederationRestGetClient(url, MediaType.APPLICATION_XML_TYPE, federationConfiguration);
FederationImageAnnotationDetailsType imageAnnotationDetails =
getClient.executeRequest(FederationImageAnnotationDetailsType.class);
getLogger().info("getAnnotationDetails, Transaction [" + transactionContext.getTransactionId() + "] returned [" + (imageAnnotationDetails == null ? "null" : "not null") + "] annotation details webservice object.");
ImageAnnotationDetails result = null;
try
{
result = FederationRestTranslator.translate(imageAnnotationDetails);
}
catch(URNFormatException urnfX)
{
logger.error("URNFormatException translating image annotation details", urnfX);
throw new MethodException(urnfX);
}
getLogger().info("getAnnotationDetails, Transaction [" + transactionContext.getTransactionId() + "] returned [" + (result == null ? "null" : "not null") + "] image annotation details.");
return result;
}
public ImageAnnotation storeImageAnnotationDetails(AbstractImagingURN imagingUrn,
String annotationDetails, String annotationVersion, ImageAnnotationSource annotationSource)
throws MethodException, ConnectionException
{
TransactionContext transactionContext = TransactionContextFactory.get();
getLogger().info("storeImageAnnotationDetails, Transaction [" + transactionContext.getTransactionId() + "] initiated, image '" + imagingUrn.toString() + "'.");
setDataSourceMethodAndVersion("storeImageAnnotationDetails");
Map<String, String> urlParameterKeyValues = new HashMap<String, String>();
urlParameterKeyValues.put("{imagingUrn}", imagingUrn.toString());
urlParameterKeyValues.put("{version}", annotationVersion);
urlParameterKeyValues.put("{source}", FederationRestTranslator.translate(annotationSource).name());
String url = getWebResourceUrl(FederationImageAnnotationRestUri.storeImageAnnotationPath, urlParameterKeyValues);
FederationRestPostClient postClient = new FederationRestPostClient(url, MediaType.APPLICATION_XML_TYPE, federationConfiguration);
FederationImageAnnotationType imageAnnotation =
postClient.executeRequest(FederationImageAnnotationType.class, annotationDetails);
getLogger().info("storeImageAnnotationDetails, Transaction [" + transactionContext.getTransactionId() + "] returned [" + (imageAnnotation == null ? "null" : "not null") + "] image annotation webservice object.");
ImageAnnotation result = null;
try
{
result = FederationRestTranslator.translate(imageAnnotation);
}
catch(URNFormatException urnfX)
{
logger.error("URNFormatException translating image annotation", urnfX);
throw new MethodException(urnfX);
}
getLogger().info("storeImageAnnotationDetails, Transaction [" + transactionContext.getTransactionId() + "] returned [" + (result == null ? "null" : "not null") + "] image annotation.");
return result;
}
}
|
barbalex/kapla4
|
src/store/Links.js
|
import { types } from 'mobx-state-tree'
export default types.model('Links', {
idGeschaeft: types.maybeNull(types.integer),
url: types.maybeNull(types.string),
txt: types.maybeNull(types.string),
})
|
Osedea/times-components
|
packages/article-label/__tests__/android/jest.config.js
|
const jestConfigurator = require("@times-components/jest-configurator");
module.exports = Object.assign(jestConfigurator("article-label", "android"), {
collectCoverageFrom: [
"**/packages/article-label/article-label.js",
"**/packages/article-label/style/shared.js",
"**/packages/article-label/**/*.android.js"
]
});
|
ZhenYongFan/libRaft
|
libRaftExt/network/RaftAdminClient.cpp
|
#include "stdafx.h"
#include "RaftAdminClient.h"
#include "RaftClientPool.h"
#include "protobuffer/rpc.pb.h"
using namespace raftserverpb;
CRaftClient::CRaftClient()
{
m_uSubSessionID = 0;
m_pClientPool = NULL;
}
CRaftClient::~CRaftClient()
{
}
bool CRaftClient::Init(CRaftClientPool *pClientPool)
{
bool bInit = false;
if (NULL != pClientPool && NULL == m_pClientPool)
{
m_pClientPool = pClientPool;
m_uSubSessionID = m_pClientPool->RegClient(this);
bInit = (0 != m_uSubSessionID);
}
return bInit;
}
void CRaftClient::Uninit(void)
{
if (NULL != m_pClientPool)
{
m_pClientPool->UnRegClient(this);
m_pClientPool = NULL;
}
}
void CRaftClient::SetSubSessionID(uint32_t uSubSessionID)
{
m_uSubSessionID = uSubSessionID;
}
uint32_t CRaftClient::GetSubSessionID(void)
{
return m_uSubSessionID;
}
int CRaftClient::Put(const std::string &strKey, const std::string &strValue)
{
int nPut = 0;
RequestOp *pRequest = new RequestOp();
pRequest->set_subsessionid(m_uSubSessionID);
PutRequest *pPutRequest = pRequest->mutable_request_put();
pPutRequest->set_key(strKey);
pPutRequest->set_value(strValue);
uint32_t dwTimeoutMs = INFINITE;
ResponseOp *pResponse = m_pClientPool->SendReq(pRequest, dwTimeoutMs);
if (NULL != pResponse)
{
const PutResponse& resPut = pResponse->response_put();
nPut = pResponse->errorno();
delete pResponse;
}
else
nPut = 1;
delete pRequest;
return nPut;
}
int CRaftClient::Get(const std::string &strKey, std::string &strValue)
{
int nGet = 0;
RequestOp *pRequest = new RequestOp();
pRequest->set_clientid(m_uSubSessionID);
RangeRequest *pRangeRequest = pRequest->mutable_request_range();
pRangeRequest->set_key(strKey);
uint32_t dwTimeoutMs = INFINITE;
ResponseOp *pResponse = m_pClientPool->SendReq(pRequest, dwTimeoutMs);
if (NULL != pResponse)
{
const RangeResponse& resRange = pResponse->response_range();
nGet = pResponse->errorno();
if (0 == nGet)
{
const google::protobuf::RepeatedPtrField<::raftserverpb::KeyValue>&rsFound = resRange.kvs();
if (!rsFound.empty())
strValue = (*rsFound.begin()).value();
else
nGet = 1;
}
delete pResponse;
}
else
nGet = 1;
delete pRequest;
return nGet;
}
int CRaftClient::Delete(const std::string &strKey)
{
int nDelete = 0;
RequestOp *pRequest = new RequestOp();
pRequest->set_clientid(m_uSubSessionID);
DeleteRangeRequest *pRangeRequest = pRequest->mutable_request_delete_range();
pRangeRequest->set_key(strKey);
uint32_t dwTimeoutMs = INFINITE;
ResponseOp *pResponse = m_pClientPool->SendReq(pRequest, dwTimeoutMs);
if (NULL != pResponse)
{
const DeleteRangeResponse& resRange = pResponse->response_delete_range();
nDelete = pResponse->errorno();
if (0 == nDelete)
{
std::string strValue;
const google::protobuf::RepeatedPtrField<::raftserverpb::KeyValue>&rsFound = resRange.prev_kvs();
if (!rsFound.empty())
strValue = (*rsFound.begin()).value();
else
nDelete = 1;
}
delete pResponse;
}
else
nDelete = 1;
delete pRequest;
return nDelete;
}
|
jssuzanne/dregcli
|
dregcli/tests/tests_unit/test_repository.py
|
<reponame>jssuzanne/dregcli
import os
import sys
from unittest import mock
import pytest
sys.path.append(
os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)
)
from fixtures import (
fixture_registry_url,
fixture_repository,
fixture_repositories,
fixture_tags,
fixture_digest,
fixture_tags_url,
fixture_tags_json,
fixture_image_url,
fixture_image_json,
)
from dregcli.dregcli import DRegCliException, Client, Repository, Image
class TestRepository:
@pytest.mark.usefixtures(
'fixture_registry_url',
'fixture_repository',
'fixture_tags_url',
'fixture_tags_json'
)
def test_tags(
self,
fixture_registry_url,
fixture_repository,
fixture_tags_url,
fixture_tags_json
):
expected_url = fixture_registry_url + fixture_tags_url
mock_res = mock.MagicMock()
mock_res.status_code = 200
mock_res.json = mock.MagicMock(return_value=fixture_tags_json)
with mock.patch('requests.get', return_value=mock_res) as mo:
repository = Repository(
Client(fixture_registry_url),
fixture_repository
)
tags = repository.tags()
assert isinstance(tags, list) and \
tags == fixture_tags_json['tags']
@pytest.mark.usefixtures(
'fixture_registry_url',
'fixture_repository',
'fixture_tags',
'fixture_digest',
'fixture_image_url',
'fixture_image_json'
)
def test_image(
self,
fixture_registry_url,
fixture_repository,
fixture_tags,
fixture_digest,
fixture_image_url,
fixture_image_json
):
expected_url = fixture_registry_url + fixture_image_url
mock_res = mock.MagicMock()
mock_res.status_code = 200
mock_res.json = mock.MagicMock(
return_value=fixture_image_json
)
# mock response headers
response_headers = {}
response_headers[Repository.Meta.manifest_response_header_digest] = \
fixture_digest
mock_res.headers.__getitem__.side_effect = response_headers.__getitem__
mock_res.headers.get.side_effect = response_headers.get # mock get
mock_res.headers.__iter__.side_effect = response_headers.__iter__
expected_image_name = "{repo}:{tag}".format(
repo=fixture_repository,
tag=fixture_tags[0]
)
with mock.patch('requests.get', return_value=mock_res) as mo:
repository = Repository(
Client(fixture_registry_url),
fixture_repository
)
image = repository.image(fixture_tags[0])
mo.assert_called_once_with(
expected_url,
headers=Repository.Meta.manifests_headers
)
assert type(image) == Image and \
image.name == fixture_repository and \
image.tag == fixture_tags[0] and \
image.digest == fixture_digest and \
image.data == fixture_image_json and \
str(image) == "{repo}:{tag}".format(
repo=fixture_repository,
tag=fixture_tags[0])
|
zcoinofficial/omniexplorer
|
app/containers/AddressDetail/actions.js
|
/*
* App Actions
*
* Actions change things in your application
* Since this boilerplate uses a uni-directional data flow, specifically redux,
* we have these actions which are the only way your application interacts with
* your application state. This guarantees that your state is up to date and nobody
* messes it up weirdly somewhere.
*
* To add a new Action:
* 1) Import your constant
* 2) Add a function like this:
* export function yourAction(var) {
* return { type: YOUR_ACTION_CONSTANT, var: var }
* }
*/
import {
LOAD_ADDRESS,
LOAD_ADDRESS_SUCCESS,
} from './constants';
/**
* Load the address, this action starts the request saga
*
* @return {object} An action object with a type of LOAD_ADDRESS
*/
export function loadAddress(addr) {
return {
type: LOAD_ADDRESS,
addr,
};
}
/**
* Dispatched when the address are loaded by the request saga
*
* @param {array} Address The address data
*
* @return {object} An action object with a type of LOAD_ADDRESS_SUCCESS passing the address
*/
export function addressLoaded(address) {
return {
type: LOAD_ADDRESS_SUCCESS,
address,
};
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.