ModelDetailLogMapper.xml 13.7 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.vat.dao.ModelDetailLogMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.ModelDetailLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
9 10 11 12 13 14 15 16 17 18 19
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="MODEL_LOG_ID" jdbcType="VARCHAR" property="modelLogId" />
    <result column="FEATURE" jdbcType="DECIMAL" property="feature" />
    <result column="MODEL_ID" jdbcType="VARCHAR" property="modelId" />
    <result column="CODE" jdbcType="VARCHAR" property="code" />
    <result column="NAME" jdbcType="VARCHAR" property="name" />
    <result column="DESCRIPTION" jdbcType="VARCHAR" property="description" />
    <result column="RUNNING_RESULT" jdbcType="DECIMAL" property="runningResult" />
    <result column="PERIOD" jdbcType="DECIMAL" property="period" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
48
            </foreach>
49
          </trim>
50
        </if>
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
83
        </if>
84 85 86 87 88 89 90 91
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
92 93
    ID, MODEL_LOG_ID, FEATURE, MODEL_ID, CODE, "NAME", DESCRIPTION, RUNNING_RESULT, PERIOD, 
    CREATE_TIME, UPDATE_TIME
94 95 96 97 98 99 100 101 102 103 104
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLogExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
neo's avatar
neo committed
105
    from MODEL_DETAIL_LOG
106 107 108 109 110 111 112 113 114 115 116 117 118 119
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
neo's avatar
neo committed
120 121
    from MODEL_DETAIL_LOG
    where ID = #{id,jdbcType=VARCHAR}
122 123 124 125 126 127
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
128 129
    delete from MODEL_DETAIL_LOG
    where ID = #{id,jdbcType=VARCHAR}
130 131 132 133 134 135
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLogExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
136
    delete from MODEL_DETAIL_LOG
137 138 139 140 141 142 143 144 145
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
146 147 148 149 150 151 152
    insert into MODEL_DETAIL_LOG (ID, MODEL_LOG_ID, FEATURE, 
      MODEL_ID, CODE, "NAME", 
      DESCRIPTION, RUNNING_RESULT, PERIOD, 
      CREATE_TIME, UPDATE_TIME)
    values (#{id,jdbcType=VARCHAR}, #{modelLogId,jdbcType=VARCHAR}, #{feature,jdbcType=DECIMAL}, 
      #{modelId,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
      #{description,jdbcType=VARCHAR}, #{runningResult,jdbcType=DECIMAL}, #{period,jdbcType=DECIMAL}, 
153 154 155 156 157 158 159
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
160
    insert into MODEL_DETAIL_LOG
161
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
162
      <if test="id != null">
163 164
        ID,
      </if>
neo's avatar
neo committed
165 166
      <if test="modelLogId != null">
        MODEL_LOG_ID,
167 168
      </if>
      <if test="feature != null">
neo's avatar
neo committed
169
        FEATURE,
170
      </if>
neo's avatar
neo committed
171 172
      <if test="modelId != null">
        MODEL_ID,
173 174
      </if>
      <if test="code != null">
neo's avatar
neo committed
175
        CODE,
176 177
      </if>
      <if test="name != null">
neo's avatar
neo committed
178
        "NAME",
179 180
      </if>
      <if test="description != null">
neo's avatar
neo committed
181
        DESCRIPTION,
182 183
      </if>
      <if test="runningResult != null">
neo's avatar
neo committed
184
        RUNNING_RESULT,
185 186
      </if>
      <if test="period != null">
neo's avatar
neo committed
187
        PERIOD,
188 189
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
190
        CREATE_TIME,
191 192
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
193
        UPDATE_TIME,
194 195 196
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
197 198
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
199
      </if>
neo's avatar
neo committed
200 201
      <if test="modelLogId != null">
        #{modelLogId,jdbcType=VARCHAR},
202 203
      </if>
      <if test="feature != null">
neo's avatar
neo committed
204
        #{feature,jdbcType=DECIMAL},
205
      </if>
neo's avatar
neo committed
206 207
      <if test="modelId != null">
        #{modelId,jdbcType=VARCHAR},
208 209 210 211 212 213 214 215 216 217 218
      </if>
      <if test="code != null">
        #{code,jdbcType=VARCHAR},
      </if>
      <if test="name != null">
        #{name,jdbcType=VARCHAR},
      </if>
      <if test="description != null">
        #{description,jdbcType=VARCHAR},
      </if>
      <if test="runningResult != null">
neo's avatar
neo committed
219
        #{runningResult,jdbcType=DECIMAL},
220 221
      </if>
      <if test="period != null">
neo's avatar
neo committed
222
        #{period,jdbcType=DECIMAL},
223 224 225 226 227 228 229 230 231 232 233 234 235 236
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLogExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
237
    select count(*) from MODEL_DETAIL_LOG
238 239 240 241 242 243 244 245 246
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
247
    update MODEL_DETAIL_LOG
248
    <set>
neo's avatar
neo committed
249 250
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
251
      </if>
neo's avatar
neo committed
252 253
      <if test="record.modelLogId != null">
        MODEL_LOG_ID = #{record.modelLogId,jdbcType=VARCHAR},
254 255
      </if>
      <if test="record.feature != null">
neo's avatar
neo committed
256
        FEATURE = #{record.feature,jdbcType=DECIMAL},
257
      </if>
neo's avatar
neo committed
258 259
      <if test="record.modelId != null">
        MODEL_ID = #{record.modelId,jdbcType=VARCHAR},
260 261
      </if>
      <if test="record.code != null">
neo's avatar
neo committed
262
        CODE = #{record.code,jdbcType=VARCHAR},
263 264
      </if>
      <if test="record.name != null">
neo's avatar
neo committed
265
        "NAME" = #{record.name,jdbcType=VARCHAR},
266 267
      </if>
      <if test="record.description != null">
neo's avatar
neo committed
268
        DESCRIPTION = #{record.description,jdbcType=VARCHAR},
269 270
      </if>
      <if test="record.runningResult != null">
neo's avatar
neo committed
271
        RUNNING_RESULT = #{record.runningResult,jdbcType=DECIMAL},
272 273
      </if>
      <if test="record.period != null">
neo's avatar
neo committed
274
        PERIOD = #{record.period,jdbcType=DECIMAL},
275 276
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
277
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
278 279
      </if>
      <if test="record.updateTime != null">
neo's avatar
neo committed
280
        UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
281 282 283 284 285 286 287 288 289 290 291
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
292 293 294 295 296 297 298 299 300 301 302 303
    update MODEL_DETAIL_LOG
    set ID = #{record.id,jdbcType=VARCHAR},
      MODEL_LOG_ID = #{record.modelLogId,jdbcType=VARCHAR},
      FEATURE = #{record.feature,jdbcType=DECIMAL},
      MODEL_ID = #{record.modelId,jdbcType=VARCHAR},
      CODE = #{record.code,jdbcType=VARCHAR},
      "NAME" = #{record.name,jdbcType=VARCHAR},
      DESCRIPTION = #{record.description,jdbcType=VARCHAR},
      RUNNING_RESULT = #{record.runningResult,jdbcType=DECIMAL},
      PERIOD = #{record.period,jdbcType=DECIMAL},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}
304 305 306 307 308 309 310 311 312
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
313
    update MODEL_DETAIL_LOG
314
    <set>
neo's avatar
neo committed
315 316
      <if test="modelLogId != null">
        MODEL_LOG_ID = #{modelLogId,jdbcType=VARCHAR},
317 318
      </if>
      <if test="feature != null">
neo's avatar
neo committed
319
        FEATURE = #{feature,jdbcType=DECIMAL},
320
      </if>
neo's avatar
neo committed
321 322
      <if test="modelId != null">
        MODEL_ID = #{modelId,jdbcType=VARCHAR},
323 324
      </if>
      <if test="code != null">
neo's avatar
neo committed
325
        CODE = #{code,jdbcType=VARCHAR},
326 327
      </if>
      <if test="name != null">
neo's avatar
neo committed
328
        "NAME" = #{name,jdbcType=VARCHAR},
329 330
      </if>
      <if test="description != null">
neo's avatar
neo committed
331
        DESCRIPTION = #{description,jdbcType=VARCHAR},
332 333
      </if>
      <if test="runningResult != null">
neo's avatar
neo committed
334
        RUNNING_RESULT = #{runningResult,jdbcType=DECIMAL},
335 336
      </if>
      <if test="period != null">
neo's avatar
neo committed
337
        PERIOD = #{period,jdbcType=DECIMAL},
338 339
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
340
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
341 342
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
343
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
344 345
      </if>
    </set>
neo's avatar
neo committed
346
    where ID = #{id,jdbcType=VARCHAR}
347 348 349 350 351 352
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
353 354 355 356 357 358 359 360 361 362 363 364
    update MODEL_DETAIL_LOG
    set MODEL_LOG_ID = #{modelLogId,jdbcType=VARCHAR},
      FEATURE = #{feature,jdbcType=DECIMAL},
      MODEL_ID = #{modelId,jdbcType=VARCHAR},
      CODE = #{code,jdbcType=VARCHAR},
      "NAME" = #{name,jdbcType=VARCHAR},
      DESCRIPTION = #{description,jdbcType=VARCHAR},
      RUNNING_RESULT = #{runningResult,jdbcType=DECIMAL},
      PERIOD = #{period,jdbcType=DECIMAL},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=VARCHAR}
365 366 367 368 369 370 371 372 373 374 375
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.ModelDetailLogExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
neo's avatar
neo committed
376
    from MODEL_DETAIL_LOG
377 378 379 380 381 382 383
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
384
</mapper>