Commit ace728ed61642a888e49cbd57e4d1a262c3a6d28

Authored by Liu Haoyu
1 parent 64cdd0e3

接口模型类补充字段;

src/main/java/com/objecteye/entity/SyServiceInterfaceMould.java
... ... @@ -6,7 +6,7 @@ import java.util.Arrays;
6 6  
7 7 public class SyServiceInterfaceMould implements Serializable {
8 8  
9   - private static final long serialVersionUID = 3590203064086293410L;
  9 + private static final long serialVersionUID = 6679094513245276595L;
10 10  
11 11 private Integer id;
12 12  
... ... @@ -20,6 +20,8 @@ public class SyServiceInterfaceMould implements Serializable {
20 20  
21 21 private String defaultJson;
22 22  
  23 + private Integer sort;
  24 +
23 25 public Integer getId() {
24 26 return id;
25 27 }
... ... @@ -68,6 +70,14 @@ public class SyServiceInterfaceMould implements Serializable {
68 70 this.defaultJson = defaultJson;
69 71 }
70 72  
  73 + public Integer getSort() {
  74 + return sort;
  75 + }
  76 +
  77 + public void setSort(Integer sort) {
  78 + this.sort = sort;
  79 + }
  80 +
71 81 public static SyServiceInterfaceMould.Builder builder() {
72 82 return new SyServiceInterfaceMould.Builder();
73 83 }
... ... @@ -109,6 +119,11 @@ public class SyServiceInterfaceMould implements Serializable {
109 119 return this;
110 120 }
111 121  
  122 + public Builder sort(Integer sort) {
  123 + obj.setSort(sort);
  124 + return this;
  125 + }
  126 +
112 127 public SyServiceInterfaceMould build() {
113 128 return this.obj;
114 129 }
... ... @@ -120,7 +135,8 @@ public class SyServiceInterfaceMould implements Serializable {
120 135 methodType("method_type", "methodType", "VARCHAR", false),
121 136 contentType("content_type", "contentType", "VARCHAR", false),
122 137 uri("uri", "uri", "VARCHAR", false),
123   - defaultJson("default_json", "defaultJson", "VARCHAR", false);
  138 + defaultJson("default_json", "defaultJson", "VARCHAR", false),
  139 + sort("sort", "sort", "INTEGER", false);
124 140  
125 141 private static final String BEGINNING_DELIMITER = "\"";
126 142  
... ...
src/main/java/com/objecteye/entity/SyServiceInterfaceMouldExample.java
... ... @@ -760,6 +760,96 @@ public class SyServiceInterfaceMouldExample {
760 760 addCriterion("default_json not between", value1, value2, "defaultJson");
761 761 return (Criteria) this;
762 762 }
  763 +
  764 + public Criteria andSortIsNull() {
  765 + addCriterion("sort is null");
  766 + return (Criteria) this;
  767 + }
  768 +
  769 + public Criteria andSortIsNotNull() {
  770 + addCriterion("sort is not null");
  771 + return (Criteria) this;
  772 + }
  773 +
  774 + public Criteria andSortEqualTo(Integer value) {
  775 + addCriterion("sort =", value, "sort");
  776 + return (Criteria) this;
  777 + }
  778 +
  779 + public Criteria andSortEqualToColumn(SyServiceInterfaceMould.Column column) {
  780 + addCriterion(new StringBuilder("sort = ").append(column.getEscapedColumnName()).toString());
  781 + return (Criteria) this;
  782 + }
  783 +
  784 + public Criteria andSortNotEqualTo(Integer value) {
  785 + addCriterion("sort <>", value, "sort");
  786 + return (Criteria) this;
  787 + }
  788 +
  789 + public Criteria andSortNotEqualToColumn(SyServiceInterfaceMould.Column column) {
  790 + addCriterion(new StringBuilder("sort <> ").append(column.getEscapedColumnName()).toString());
  791 + return (Criteria) this;
  792 + }
  793 +
  794 + public Criteria andSortGreaterThan(Integer value) {
  795 + addCriterion("sort >", value, "sort");
  796 + return (Criteria) this;
  797 + }
  798 +
  799 + public Criteria andSortGreaterThanColumn(SyServiceInterfaceMould.Column column) {
  800 + addCriterion(new StringBuilder("sort > ").append(column.getEscapedColumnName()).toString());
  801 + return (Criteria) this;
  802 + }
  803 +
  804 + public Criteria andSortGreaterThanOrEqualTo(Integer value) {
  805 + addCriterion("sort >=", value, "sort");
  806 + return (Criteria) this;
  807 + }
  808 +
  809 + public Criteria andSortGreaterThanOrEqualToColumn(SyServiceInterfaceMould.Column column) {
  810 + addCriterion(new StringBuilder("sort >= ").append(column.getEscapedColumnName()).toString());
  811 + return (Criteria) this;
  812 + }
  813 +
  814 + public Criteria andSortLessThan(Integer value) {
  815 + addCriterion("sort <", value, "sort");
  816 + return (Criteria) this;
  817 + }
  818 +
  819 + public Criteria andSortLessThanColumn(SyServiceInterfaceMould.Column column) {
  820 + addCriterion(new StringBuilder("sort < ").append(column.getEscapedColumnName()).toString());
  821 + return (Criteria) this;
  822 + }
  823 +
  824 + public Criteria andSortLessThanOrEqualTo(Integer value) {
  825 + addCriterion("sort <=", value, "sort");
  826 + return (Criteria) this;
  827 + }
  828 +
  829 + public Criteria andSortLessThanOrEqualToColumn(SyServiceInterfaceMould.Column column) {
  830 + addCriterion(new StringBuilder("sort <= ").append(column.getEscapedColumnName()).toString());
  831 + return (Criteria) this;
  832 + }
  833 +
  834 + public Criteria andSortIn(List<Integer> values) {
  835 + addCriterion("sort in", values, "sort");
  836 + return (Criteria) this;
  837 + }
  838 +
  839 + public Criteria andSortNotIn(List<Integer> values) {
  840 + addCriterion("sort not in", values, "sort");
  841 + return (Criteria) this;
  842 + }
  843 +
  844 + public Criteria andSortBetween(Integer value1, Integer value2) {
  845 + addCriterion("sort between", value1, value2, "sort");
  846 + return (Criteria) this;
  847 + }
  848 +
  849 + public Criteria andSortNotBetween(Integer value1, Integer value2) {
  850 + addCriterion("sort not between", value1, value2, "sort");
  851 + return (Criteria) this;
  852 + }
763 853 }
764 854  
765 855 public static class Criteria extends GeneratedCriteria {
... ...
src/main/resources/com.objecteye.mapper/SyServiceInterfaceMouldMapper.xml
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3 <mapper namespace="com.objecteye.mapper.SyServiceInterfaceMouldMapper">
4   - <resultMap id="BaseResultMap" type="com.objecteye.entity.SyServiceInterfaceMould">
5   - <id column="id" jdbcType="INTEGER" property="id"/>
6   - <result column="mould_id" jdbcType="INTEGER" property="mouldId"/>
7   - <result column="method_type" jdbcType="VARCHAR" property="methodType"/>
8   - <result column="content_type" jdbcType="VARCHAR" property="contentType"/>
9   - <result column="uri" jdbcType="VARCHAR" property="uri"/>
10   - <result column="default_json" jdbcType="VARCHAR" property="defaultJson"/>
11   - </resultMap>
12   - <sql id="Example_Where_Clause">
13   - <where>
14   - <foreach collection="oredCriteria" item="criteria" separator="or">
15   - <if test="criteria.valid">
16   - <trim prefix="(" prefixOverrides="and" suffix=")">
17   - <foreach collection="criteria.criteria" item="criterion">
18   - <choose>
19   - <when test="criterion.noValue">
20   - and ${criterion.condition}
21   - </when>
22   - <when test="criterion.singleValue">
23   - and ${criterion.condition} #{criterion.value}
24   - </when>
25   - <when test="criterion.betweenValue">
26   - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
27   - </when>
28   - <when test="criterion.listValue">
29   - and ${criterion.condition}
30   - <foreach close=")" collection="criterion.value" item="listItem" open="("
31   - separator=",">
32   - #{listItem}
33   - </foreach>
34   - </when>
35   - </choose>
36   - </foreach>
37   - </trim>
38   - </if>
  4 + <resultMap id="BaseResultMap" type="com.objecteye.entity.SyServiceInterfaceMould">
  5 + <id column="id" jdbcType="INTEGER" property="id"/>
  6 + <result column="mould_id" jdbcType="INTEGER" property="mouldId"/>
  7 + <result column="method_type" jdbcType="VARCHAR" property="methodType"/>
  8 + <result column="content_type" jdbcType="VARCHAR" property="contentType"/>
  9 + <result column="uri" jdbcType="VARCHAR" property="uri"/>
  10 + <result column="default_json" jdbcType="VARCHAR" property="defaultJson"/>
  11 + <result column="sort" jdbcType="INTEGER" property="sort"/>
  12 + </resultMap>
  13 + <sql id="Example_Where_Clause">
  14 + <where>
  15 + <foreach collection="oredCriteria" item="criteria" separator="or">
  16 + <if test="criteria.valid">
  17 + <trim prefix="(" prefixOverrides="and" suffix=")">
  18 + <foreach collection="criteria.criteria" item="criterion">
  19 + <choose>
  20 + <when test="criterion.noValue">
  21 + and ${criterion.condition}
  22 + </when>
  23 + <when test="criterion.singleValue">
  24 + and ${criterion.condition} #{criterion.value}
  25 + </when>
  26 + <when test="criterion.betweenValue">
  27 + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  28 + </when>
  29 + <when test="criterion.listValue">
  30 + and ${criterion.condition}
  31 + <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  32 + #{listItem}
  33 + </foreach>
  34 + </when>
  35 + </choose>
39 36 </foreach>
40   - </where>
41   - </sql>
42   - <sql id="Update_By_Example_Where_Clause">
43   - <where>
44   - <foreach collection="example.oredCriteria" item="criteria" separator="or">
45   - <if test="criteria.valid">
46   - <trim prefix="(" prefixOverrides="and" suffix=")">
47   - <foreach collection="criteria.criteria" item="criterion">
48   - <choose>
49   - <when test="criterion.noValue">
50   - and ${criterion.condition}
51   - </when>
52   - <when test="criterion.singleValue">
53   - and ${criterion.condition} #{criterion.value}
54   - </when>
55   - <when test="criterion.betweenValue">
56   - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
57   - </when>
58   - <when test="criterion.listValue">
59   - and ${criterion.condition}
60   - <foreach close=")" collection="criterion.value" item="listItem" open="("
61   - separator=",">
62   - #{listItem}
63   - </foreach>
64   - </when>
65   - </choose>
66   - </foreach>
67   - </trim>
68   - </if>
69   - </foreach>
70   - </where>
71   - </sql>
72   - <sql id="Base_Column_List">
73   - id, mould_id, method_type, content_type, uri, default_json
74   - </sql>
75   - <select id="selectByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample"
76   - resultMap="BaseResultMap">
77   - select
78   - <if test="distinct">
79   - distinct
80   - </if>
81   - <include refid="Base_Column_List"/>
82   - from sy_service_interface_mould
83   - <if test="_parameter != null">
84   - <include refid="Example_Where_Clause"/>
85   - </if>
86   - <if test="orderByClause != null">
87   - order by ${orderByClause}
88   - </if>
89   - <if test="rows != null">
90   - <if test="offset != null">
91   - limit ${offset}, ${rows}
92   - </if>
93   - <if test="offset == null">
94   - limit ${rows}
95   - </if>
96   - </if>
97   - </select>
98   - <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
99   - select
100   - <include refid="Base_Column_List"/>
101   - from sy_service_interface_mould
102   - where id = #{id,jdbcType=INTEGER}
103   - </select>
104   - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
105   - delete
106   - from sy_service_interface_mould
107   - where id = #{id,jdbcType=INTEGER}
108   - </delete>
109   - <delete id="deleteByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample">
110   - delete from sy_service_interface_mould
111   - <if test="_parameter != null">
112   - <include refid="Example_Where_Clause"/>
  37 + </trim>
113 38 </if>
114   - </delete>
115   - <insert id="insert" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
116   - <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
117   - SELECT LAST_INSERT_ID()
118   - </selectKey>
119   - insert into sy_service_interface_mould (id, mould_id, method_type,
120   - content_type, uri, default_json
121   - )
122   - values (#{id,jdbcType=INTEGER}, #{mouldId,jdbcType=INTEGER}, #{methodType,jdbcType=VARCHAR},
123   - #{contentType,jdbcType=VARCHAR}, #{uri,jdbcType=VARCHAR}, #{defaultJson,jdbcType=VARCHAR}
124   - )
125   - </insert>
126   - <insert id="insertSelective" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
127   - <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
128   - SELECT LAST_INSERT_ID()
129   - </selectKey>
130   - insert into sy_service_interface_mould
131   - <trim prefix="(" suffix=")" suffixOverrides=",">
132   - id,
133   - <if test="mouldId != null">
134   - mould_id,
135   - </if>
136   - <if test="methodType != null">
137   - method_type,
138   - </if>
139   - <if test="contentType != null">
140   - content_type,
141   - </if>
142   - <if test="uri != null">
143   - uri,
144   - </if>
145   - <if test="defaultJson != null">
146   - default_json,
147   - </if>
148   - </trim>
149   - <trim prefix="values (" suffix=")" suffixOverrides=",">
150   - #{id,jdbcType=INTEGER},
151   - <if test="mouldId != null">
152   - #{mouldId,jdbcType=INTEGER},
153   - </if>
154   - <if test="methodType != null">
155   - #{methodType,jdbcType=VARCHAR},
156   - </if>
157   - <if test="contentType != null">
158   - #{contentType,jdbcType=VARCHAR},
159   - </if>
160   - <if test="uri != null">
161   - #{uri,jdbcType=VARCHAR},
162   - </if>
163   - <if test="defaultJson != null">
164   - #{defaultJson,jdbcType=VARCHAR},
165   - </if>
166   - </trim>
167   - </insert>
168   - <select id="countByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample"
169   - resultType="java.lang.Long">
170   - select count(*) from sy_service_interface_mould
171   - <if test="_parameter != null">
172   - <include refid="Example_Where_Clause"/>
173   - </if>
174   - </select>
175   - <update id="updateByExampleSelective" parameterType="map">
176   - update sy_service_interface_mould
177   - <set>
178   - <if test="record.id != null">
179   - id = #{record.id,jdbcType=INTEGER},
180   - </if>
181   - <if test="record.mouldId != null">
182   - mould_id = #{record.mouldId,jdbcType=INTEGER},
183   - </if>
184   - <if test="record.methodType != null">
185   - method_type = #{record.methodType,jdbcType=VARCHAR},
186   - </if>
187   - <if test="record.contentType != null">
188   - content_type = #{record.contentType,jdbcType=VARCHAR},
189   - </if>
190   - <if test="record.uri != null">
191   - uri = #{record.uri,jdbcType=VARCHAR},
192   - </if>
193   - <if test="record.defaultJson != null">
194   - default_json = #{record.defaultJson,jdbcType=VARCHAR},
195   - </if>
196   - </set>
197   - <if test="_parameter != null">
198   - <include refid="Update_By_Example_Where_Clause"/>
  39 + </foreach>
  40 + </where>
  41 + </sql>
  42 + <sql id="Update_By_Example_Where_Clause">
  43 + <where>
  44 + <foreach collection="example.oredCriteria" item="criteria" separator="or">
  45 + <if test="criteria.valid">
  46 + <trim prefix="(" prefixOverrides="and" suffix=")">
  47 + <foreach collection="criteria.criteria" item="criterion">
  48 + <choose>
  49 + <when test="criterion.noValue">
  50 + and ${criterion.condition}
  51 + </when>
  52 + <when test="criterion.singleValue">
  53 + and ${criterion.condition} #{criterion.value}
  54 + </when>
  55 + <when test="criterion.betweenValue">
  56 + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  57 + </when>
  58 + <when test="criterion.listValue">
  59 + and ${criterion.condition}
  60 + <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  61 + #{listItem}
  62 + </foreach>
  63 + </when>
  64 + </choose>
  65 + </foreach>
  66 + </trim>
199 67 </if>
200   - </update>
201   - <update id="updateByExample" parameterType="map">
202   - update sy_service_interface_mould
203   - set id = #{record.id,jdbcType=INTEGER},
  68 + </foreach>
  69 + </where>
  70 + </sql>
  71 + <sql id="Base_Column_List">
  72 + id, mould_id, method_type, content_type, uri, default_json, sort
  73 + </sql>
  74 + <select id="selectByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample"
  75 + resultMap="BaseResultMap">
  76 + select
  77 + <if test="distinct">
  78 + distinct
  79 + </if>
  80 + <include refid="Base_Column_List"/>
  81 + from sy_service_interface_mould
  82 + <if test="_parameter != null">
  83 + <include refid="Example_Where_Clause"/>
  84 + </if>
  85 + <if test="orderByClause != null">
  86 + order by ${orderByClause}
  87 + </if>
  88 + <if test="rows != null">
  89 + <if test="offset != null">
  90 + limit ${offset}, ${rows}
  91 + </if>
  92 + <if test="offset == null">
  93 + limit ${rows}
  94 + </if>
  95 + </if>
  96 + </select>
  97 + <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
  98 + select
  99 + <include refid="Base_Column_List"/>
  100 + from sy_service_interface_mould
  101 + where id = #{id,jdbcType=INTEGER}
  102 + </select>
  103 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  104 + delete
  105 + from sy_service_interface_mould
  106 + where id = #{id,jdbcType=INTEGER}
  107 + </delete>
  108 + <delete id="deleteByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample">
  109 + delete from sy_service_interface_mould
  110 + <if test="_parameter != null">
  111 + <include refid="Example_Where_Clause"/>
  112 + </if>
  113 + </delete>
  114 + <insert id="insert" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
  115 + <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
  116 + SELECT LAST_INSERT_ID()
  117 + </selectKey>
  118 + insert into sy_service_interface_mould (id, mould_id, method_type,
  119 + content_type, uri, default_json,
  120 + sort)
  121 + values (#{id,jdbcType=INTEGER}, #{mouldId,jdbcType=INTEGER}, #{methodType,jdbcType=VARCHAR},
  122 + #{contentType,jdbcType=VARCHAR}, #{uri,jdbcType=VARCHAR}, #{defaultJson,jdbcType=VARCHAR},
  123 + #{sort,jdbcType=INTEGER})
  124 + </insert>
  125 + <insert id="insertSelective" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
  126 + <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Integer">
  127 + SELECT LAST_INSERT_ID()
  128 + </selectKey>
  129 + insert into sy_service_interface_mould
  130 + <trim prefix="(" suffix=")" suffixOverrides=",">
  131 + id,
  132 + <if test="mouldId != null">
  133 + mould_id,
  134 + </if>
  135 + <if test="methodType != null">
  136 + method_type,
  137 + </if>
  138 + <if test="contentType != null">
  139 + content_type,
  140 + </if>
  141 + <if test="uri != null">
  142 + uri,
  143 + </if>
  144 + <if test="defaultJson != null">
  145 + default_json,
  146 + </if>
  147 + <if test="sort != null">
  148 + sort,
  149 + </if>
  150 + </trim>
  151 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  152 + #{id,jdbcType=INTEGER},
  153 + <if test="mouldId != null">
  154 + #{mouldId,jdbcType=INTEGER},
  155 + </if>
  156 + <if test="methodType != null">
  157 + #{methodType,jdbcType=VARCHAR},
  158 + </if>
  159 + <if test="contentType != null">
  160 + #{contentType,jdbcType=VARCHAR},
  161 + </if>
  162 + <if test="uri != null">
  163 + #{uri,jdbcType=VARCHAR},
  164 + </if>
  165 + <if test="defaultJson != null">
  166 + #{defaultJson,jdbcType=VARCHAR},
  167 + </if>
  168 + <if test="sort != null">
  169 + #{sort,jdbcType=INTEGER},
  170 + </if>
  171 + </trim>
  172 + </insert>
  173 + <select id="countByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample"
  174 + resultType="java.lang.Long">
  175 + select count(*) from sy_service_interface_mould
  176 + <if test="_parameter != null">
  177 + <include refid="Example_Where_Clause"/>
  178 + </if>
  179 + </select>
  180 + <update id="updateByExampleSelective" parameterType="map">
  181 + update sy_service_interface_mould
  182 + <set>
  183 + <if test="record.id != null">
  184 + id = #{record.id,jdbcType=INTEGER},
  185 + </if>
  186 + <if test="record.mouldId != null">
204 187 mould_id = #{record.mouldId,jdbcType=INTEGER},
  188 + </if>
  189 + <if test="record.methodType != null">
205 190 method_type = #{record.methodType,jdbcType=VARCHAR},
  191 + </if>
  192 + <if test="record.contentType != null">
206 193 content_type = #{record.contentType,jdbcType=VARCHAR},
  194 + </if>
  195 + <if test="record.uri != null">
207 196 uri = #{record.uri,jdbcType=VARCHAR},
208   - default_json = #{record.defaultJson,jdbcType=VARCHAR}
209   - <if test="_parameter != null">
210   - <include refid="Update_By_Example_Where_Clause"/>
211   - </if>
212   - </update>
213   - <update id="updateByPrimaryKeySelective" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
214   - update sy_service_interface_mould
215   - <set>
216   - <if test="mouldId != null">
217   - mould_id = #{mouldId,jdbcType=INTEGER},
218   - </if>
219   - <if test="methodType != null">
220   - method_type = #{methodType,jdbcType=VARCHAR},
221   - </if>
222   - <if test="contentType != null">
223   - content_type = #{contentType,jdbcType=VARCHAR},
224   - </if>
225   - <if test="uri != null">
226   - uri = #{uri,jdbcType=VARCHAR},
227   - </if>
228   - <if test="defaultJson != null">
229   - default_json = #{defaultJson,jdbcType=VARCHAR},
230   - </if>
231   - </set>
232   - where id = #{id,jdbcType=INTEGER}
233   - </update>
234   - <update id="updateByPrimaryKey" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
235   - update sy_service_interface_mould
236   - set mould_id = #{mouldId,jdbcType=INTEGER},
237   - method_type = #{methodType,jdbcType=VARCHAR},
238   - content_type = #{contentType,jdbcType=VARCHAR},
239   - uri = #{uri,jdbcType=VARCHAR},
240   - default_json = #{defaultJson,jdbcType=VARCHAR}
241   - where id = #{id,jdbcType=INTEGER}
242   - </update>
243   - <select id="selectOneByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample"
244   - resultMap="BaseResultMap">
245   - select
246   - <include refid="Base_Column_List"/>
247   - from sy_service_interface_mould
248   - <if test="_parameter != null">
249   - <include refid="Example_Where_Clause"/>
250   - </if>
251   - <if test="orderByClause != null">
252   - order by ${orderByClause}
253   - </if>
254   - limit 1
255   - </select>
  197 + </if>
  198 + <if test="record.defaultJson != null">
  199 + default_json = #{record.defaultJson,jdbcType=VARCHAR},
  200 + </if>
  201 + <if test="record.sort != null">
  202 + sort = #{record.sort,jdbcType=INTEGER},
  203 + </if>
  204 + </set>
  205 + <if test="_parameter != null">
  206 + <include refid="Update_By_Example_Where_Clause"/>
  207 + </if>
  208 + </update>
  209 + <update id="updateByExample" parameterType="map">
  210 + update sy_service_interface_mould
  211 + set id = #{record.id,jdbcType=INTEGER},
  212 + mould_id = #{record.mouldId,jdbcType=INTEGER},
  213 + method_type = #{record.methodType,jdbcType=VARCHAR},
  214 + content_type = #{record.contentType,jdbcType=VARCHAR},
  215 + uri = #{record.uri,jdbcType=VARCHAR},
  216 + default_json = #{record.defaultJson,jdbcType=VARCHAR},
  217 + sort = #{record.sort,jdbcType=INTEGER}
  218 + <if test="_parameter != null">
  219 + <include refid="Update_By_Example_Where_Clause"/>
  220 + </if>
  221 + </update>
  222 + <update id="updateByPrimaryKeySelective" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
  223 + update sy_service_interface_mould
  224 + <set>
  225 + <if test="mouldId != null">
  226 + mould_id = #{mouldId,jdbcType=INTEGER},
  227 + </if>
  228 + <if test="methodType != null">
  229 + method_type = #{methodType,jdbcType=VARCHAR},
  230 + </if>
  231 + <if test="contentType != null">
  232 + content_type = #{contentType,jdbcType=VARCHAR},
  233 + </if>
  234 + <if test="uri != null">
  235 + uri = #{uri,jdbcType=VARCHAR},
  236 + </if>
  237 + <if test="defaultJson != null">
  238 + default_json = #{defaultJson,jdbcType=VARCHAR},
  239 + </if>
  240 + <if test="sort != null">
  241 + sort = #{sort,jdbcType=INTEGER},
  242 + </if>
  243 + </set>
  244 + where id = #{id,jdbcType=INTEGER}
  245 + </update>
  246 + <update id="updateByPrimaryKey" parameterType="com.objecteye.entity.SyServiceInterfaceMould">
  247 + update sy_service_interface_mould
  248 + set mould_id = #{mouldId,jdbcType=INTEGER},
  249 + method_type = #{methodType,jdbcType=VARCHAR},
  250 + content_type = #{contentType,jdbcType=VARCHAR},
  251 + uri = #{uri,jdbcType=VARCHAR},
  252 + default_json = #{defaultJson,jdbcType=VARCHAR},
  253 + sort = #{sort,jdbcType=INTEGER}
  254 + where id = #{id,jdbcType=INTEGER}
  255 + </update>
  256 + <select id="selectOneByExample" parameterType="com.objecteye.entity.SyServiceInterfaceMouldExample"
  257 + resultMap="BaseResultMap">
  258 + select
  259 + <include refid="Base_Column_List"/>
  260 + from sy_service_interface_mould
  261 + <if test="_parameter != null">
  262 + <include refid="Example_Where_Clause"/>
  263 + </if>
  264 + <if test="orderByClause != null">
  265 + order by ${orderByClause}
  266 + </if>
  267 + limit 1
  268 + </select>
256 269 </mapper>
257 270 \ No newline at end of file
... ...