diff --git a/src/main/java/com/objecteye/entity/SyServiceInterfaceMould.java b/src/main/java/com/objecteye/entity/SyServiceInterfaceMould.java index 8295eea..18fd1cb 100644 --- a/src/main/java/com/objecteye/entity/SyServiceInterfaceMould.java +++ b/src/main/java/com/objecteye/entity/SyServiceInterfaceMould.java @@ -6,7 +6,7 @@ import java.util.Arrays; public class SyServiceInterfaceMould implements Serializable { - private static final long serialVersionUID = 3590203064086293410L; + private static final long serialVersionUID = 6679094513245276595L; private Integer id; @@ -20,6 +20,8 @@ public class SyServiceInterfaceMould implements Serializable { private String defaultJson; + private Integer sort; + public Integer getId() { return id; } @@ -68,6 +70,14 @@ public class SyServiceInterfaceMould implements Serializable { this.defaultJson = defaultJson; } + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + public static SyServiceInterfaceMould.Builder builder() { return new SyServiceInterfaceMould.Builder(); } @@ -109,6 +119,11 @@ public class SyServiceInterfaceMould implements Serializable { return this; } + public Builder sort(Integer sort) { + obj.setSort(sort); + return this; + } + public SyServiceInterfaceMould build() { return this.obj; } @@ -120,7 +135,8 @@ public class SyServiceInterfaceMould implements Serializable { methodType("method_type", "methodType", "VARCHAR", false), contentType("content_type", "contentType", "VARCHAR", false), uri("uri", "uri", "VARCHAR", false), - defaultJson("default_json", "defaultJson", "VARCHAR", false); + defaultJson("default_json", "defaultJson", "VARCHAR", false), + sort("sort", "sort", "INTEGER", false); private static final String BEGINNING_DELIMITER = "\""; diff --git a/src/main/java/com/objecteye/entity/SyServiceInterfaceMouldExample.java b/src/main/java/com/objecteye/entity/SyServiceInterfaceMouldExample.java index 5ab1f76..7d66bfb 100644 --- a/src/main/java/com/objecteye/entity/SyServiceInterfaceMouldExample.java +++ b/src/main/java/com/objecteye/entity/SyServiceInterfaceMouldExample.java @@ -760,6 +760,96 @@ public class SyServiceInterfaceMouldExample { addCriterion("default_json not between", value1, value2, "defaultJson"); return (Criteria) this; } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortEqualToColumn(SyServiceInterfaceMould.Column column) { + addCriterion(new StringBuilder("sort = ").append(column.getEscapedColumnName()).toString()); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualToColumn(SyServiceInterfaceMould.Column column) { + addCriterion(new StringBuilder("sort <> ").append(column.getEscapedColumnName()).toString()); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanColumn(SyServiceInterfaceMould.Column column) { + addCriterion(new StringBuilder("sort > ").append(column.getEscapedColumnName()).toString()); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualToColumn(SyServiceInterfaceMould.Column column) { + addCriterion(new StringBuilder("sort >= ").append(column.getEscapedColumnName()).toString()); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanColumn(SyServiceInterfaceMould.Column column) { + addCriterion(new StringBuilder("sort < ").append(column.getEscapedColumnName()).toString()); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualToColumn(SyServiceInterfaceMould.Column column) { + addCriterion(new StringBuilder("sort <= ").append(column.getEscapedColumnName()).toString()); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/src/main/resources/com.objecteye.mapper/SyServiceInterfaceMouldMapper.xml b/src/main/resources/com.objecteye.mapper/SyServiceInterfaceMouldMapper.xml index a6ffd1b..084182e 100644 --- a/src/main/resources/com.objecteye.mapper/SyServiceInterfaceMouldMapper.xml +++ b/src/main/resources/com.objecteye.mapper/SyServiceInterfaceMouldMapper.xml @@ -1,256 +1,269 @@ - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, mould_id, method_type, content_type, uri, default_json - - - - - delete - from sy_service_interface_mould - where id = #{id,jdbcType=INTEGER} - - - delete from sy_service_interface_mould - - + - - - - SELECT LAST_INSERT_ID() - - insert into sy_service_interface_mould (id, mould_id, method_type, - content_type, uri, default_json - ) - values (#{id,jdbcType=INTEGER}, #{mouldId,jdbcType=INTEGER}, #{methodType,jdbcType=VARCHAR}, - #{contentType,jdbcType=VARCHAR}, #{uri,jdbcType=VARCHAR}, #{defaultJson,jdbcType=VARCHAR} - ) - - - - SELECT LAST_INSERT_ID() - - insert into sy_service_interface_mould - - id, - - mould_id, - - - method_type, - - - content_type, - - - uri, - - - default_json, - - - - #{id,jdbcType=INTEGER}, - - #{mouldId,jdbcType=INTEGER}, - - - #{methodType,jdbcType=VARCHAR}, - - - #{contentType,jdbcType=VARCHAR}, - - - #{uri,jdbcType=VARCHAR}, - - - #{defaultJson,jdbcType=VARCHAR}, - - - - - - update sy_service_interface_mould - - - id = #{record.id,jdbcType=INTEGER}, - - - mould_id = #{record.mouldId,jdbcType=INTEGER}, - - - method_type = #{record.methodType,jdbcType=VARCHAR}, - - - content_type = #{record.contentType,jdbcType=VARCHAR}, - - - uri = #{record.uri,jdbcType=VARCHAR}, - - - default_json = #{record.defaultJson,jdbcType=VARCHAR}, - - - - + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + - - - update sy_service_interface_mould - set id = #{record.id,jdbcType=INTEGER}, + + + + + id, mould_id, method_type, content_type, uri, default_json, sort + + + + + delete + from sy_service_interface_mould + where id = #{id,jdbcType=INTEGER} + + + delete from sy_service_interface_mould + + + + + + + SELECT LAST_INSERT_ID() + + insert into sy_service_interface_mould (id, mould_id, method_type, + content_type, uri, default_json, + sort) + values (#{id,jdbcType=INTEGER}, #{mouldId,jdbcType=INTEGER}, #{methodType,jdbcType=VARCHAR}, + #{contentType,jdbcType=VARCHAR}, #{uri,jdbcType=VARCHAR}, #{defaultJson,jdbcType=VARCHAR}, + #{sort,jdbcType=INTEGER}) + + + + SELECT LAST_INSERT_ID() + + insert into sy_service_interface_mould + + id, + + mould_id, + + + method_type, + + + content_type, + + + uri, + + + default_json, + + + sort, + + + + #{id,jdbcType=INTEGER}, + + #{mouldId,jdbcType=INTEGER}, + + + #{methodType,jdbcType=VARCHAR}, + + + #{contentType,jdbcType=VARCHAR}, + + + #{uri,jdbcType=VARCHAR}, + + + #{defaultJson,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + + + + update sy_service_interface_mould + + + id = #{record.id,jdbcType=INTEGER}, + + mould_id = #{record.mouldId,jdbcType=INTEGER}, + + method_type = #{record.methodType,jdbcType=VARCHAR}, + + content_type = #{record.contentType,jdbcType=VARCHAR}, + + uri = #{record.uri,jdbcType=VARCHAR}, - default_json = #{record.defaultJson,jdbcType=VARCHAR} - - - - - - update sy_service_interface_mould - - - mould_id = #{mouldId,jdbcType=INTEGER}, - - - method_type = #{methodType,jdbcType=VARCHAR}, - - - content_type = #{contentType,jdbcType=VARCHAR}, - - - uri = #{uri,jdbcType=VARCHAR}, - - - default_json = #{defaultJson,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - update sy_service_interface_mould - set mould_id = #{mouldId,jdbcType=INTEGER}, - method_type = #{methodType,jdbcType=VARCHAR}, - content_type = #{contentType,jdbcType=VARCHAR}, - uri = #{uri,jdbcType=VARCHAR}, - default_json = #{defaultJson,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} - - + + + default_json = #{record.defaultJson,jdbcType=VARCHAR}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + + + + + + update sy_service_interface_mould + set id = #{record.id,jdbcType=INTEGER}, + mould_id = #{record.mouldId,jdbcType=INTEGER}, + method_type = #{record.methodType,jdbcType=VARCHAR}, + content_type = #{record.contentType,jdbcType=VARCHAR}, + uri = #{record.uri,jdbcType=VARCHAR}, + default_json = #{record.defaultJson,jdbcType=VARCHAR}, + sort = #{record.sort,jdbcType=INTEGER} + + + + + + update sy_service_interface_mould + + + mould_id = #{mouldId,jdbcType=INTEGER}, + + + method_type = #{methodType,jdbcType=VARCHAR}, + + + content_type = #{contentType,jdbcType=VARCHAR}, + + + uri = #{uri,jdbcType=VARCHAR}, + + + default_json = #{defaultJson,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + update sy_service_interface_mould + set mould_id = #{mouldId,jdbcType=INTEGER}, + method_type = #{methodType,jdbcType=VARCHAR}, + content_type = #{contentType,jdbcType=VARCHAR}, + uri = #{uri,jdbcType=VARCHAR}, + default_json = #{defaultJson,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file