ModelLogMapper.xml 12.9 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.ModelLogMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.ModelLog">
    <!--
      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
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="ORGANIZATION_ID" jdbcType="VARCHAR" property="organizationId" />
    <result column="RUN_NUMBER" jdbcType="DECIMAL" property="runNumber" />
    <result column="DESCRIPTION" jdbcType="VARCHAR" property="description" />
    <result column="SUCCESS_NUMBER" jdbcType="DECIMAL" property="successNumber" />
    <result column="FAILURE_NUMBER" jdbcType="DECIMAL" property="failureNumber" />
    <result column="SERVICE_TYPE_ID" jdbcType="VARCHAR" property="serviceTypeId" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
18 19 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
  </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>
46
            </foreach>
47
          </trim>
48
        </if>
49 50 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
      </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>
81
        </if>
82 83 84 85 86 87 88 89
      </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
90 91
    ID, ORGANIZATION_ID, RUN_NUMBER, DESCRIPTION, SUCCESS_NUMBER, FAILURE_NUMBER, SERVICE_TYPE_ID, 
    CREATE_TIME, UPDATE_TIME
92 93 94 95 96 97 98 99 100 101 102
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.ModelLogExample" 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
103
    from MODEL_LOG
104 105 106 107 108 109 110 111 112 113 114 115 116 117
    <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
118 119
    from MODEL_LOG
    where ID = #{id,jdbcType=VARCHAR}
120 121 122 123 124 125
  </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
126 127
    delete from MODEL_LOG
    where ID = #{id,jdbcType=VARCHAR}
128 129 130 131 132 133
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.ModelLogExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
134
    delete from MODEL_LOG
135 136 137 138 139 140 141 142 143
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.ModelLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
144 145 146
    insert into MODEL_LOG (ID, ORGANIZATION_ID, RUN_NUMBER, 
      DESCRIPTION, SUCCESS_NUMBER, FAILURE_NUMBER, 
      SERVICE_TYPE_ID, CREATE_TIME, UPDATE_TIME
147
      )
neo's avatar
neo committed
148 149 150
    values (#{id,jdbcType=VARCHAR}, #{organizationId,jdbcType=VARCHAR}, #{runNumber,jdbcType=DECIMAL}, 
      #{description,jdbcType=VARCHAR}, #{successNumber,jdbcType=DECIMAL}, #{failureNumber,jdbcType=DECIMAL}, 
      #{serviceTypeId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
151 152 153 154 155 156 157
      )
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.ModelLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
158
    insert into MODEL_LOG
159
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
160
      <if test="id != null">
161 162
        ID,
      </if>
neo's avatar
neo committed
163 164
      <if test="organizationId != null">
        ORGANIZATION_ID,
165 166
      </if>
      <if test="runNumber != null">
neo's avatar
neo committed
167
        RUN_NUMBER,
168 169
      </if>
      <if test="description != null">
neo's avatar
neo committed
170
        DESCRIPTION,
171 172
      </if>
      <if test="successNumber != null">
neo's avatar
neo committed
173
        SUCCESS_NUMBER,
174 175
      </if>
      <if test="failureNumber != null">
neo's avatar
neo committed
176
        FAILURE_NUMBER,
177
      </if>
neo's avatar
neo committed
178 179
      <if test="serviceTypeId != null">
        SERVICE_TYPE_ID,
180 181
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
182
        CREATE_TIME,
183 184
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
185
        UPDATE_TIME,
186 187 188
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
189 190
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
191
      </if>
neo's avatar
neo committed
192 193
      <if test="organizationId != null">
        #{organizationId,jdbcType=VARCHAR},
194 195
      </if>
      <if test="runNumber != null">
neo's avatar
neo committed
196
        #{runNumber,jdbcType=DECIMAL},
197 198 199 200 201
      </if>
      <if test="description != null">
        #{description,jdbcType=VARCHAR},
      </if>
      <if test="successNumber != null">
neo's avatar
neo committed
202
        #{successNumber,jdbcType=DECIMAL},
203 204
      </if>
      <if test="failureNumber != null">
neo's avatar
neo committed
205
        #{failureNumber,jdbcType=DECIMAL},
206
      </if>
neo's avatar
neo committed
207 208
      <if test="serviceTypeId != null">
        #{serviceTypeId,jdbcType=VARCHAR},
209 210 211 212 213 214 215 216 217 218 219 220 221 222
      </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.ModelLogExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
223
    select count(*) from MODEL_LOG
224 225 226 227 228 229 230 231 232
    <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
233
    update MODEL_LOG
234
    <set>
neo's avatar
neo committed
235 236
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
237
      </if>
neo's avatar
neo committed
238 239
      <if test="record.organizationId != null">
        ORGANIZATION_ID = #{record.organizationId,jdbcType=VARCHAR},
240 241
      </if>
      <if test="record.runNumber != null">
neo's avatar
neo committed
242
        RUN_NUMBER = #{record.runNumber,jdbcType=DECIMAL},
243 244
      </if>
      <if test="record.description != null">
neo's avatar
neo committed
245
        DESCRIPTION = #{record.description,jdbcType=VARCHAR},
246 247
      </if>
      <if test="record.successNumber != null">
neo's avatar
neo committed
248
        SUCCESS_NUMBER = #{record.successNumber,jdbcType=DECIMAL},
249 250
      </if>
      <if test="record.failureNumber != null">
neo's avatar
neo committed
251
        FAILURE_NUMBER = #{record.failureNumber,jdbcType=DECIMAL},
252
      </if>
neo's avatar
neo committed
253 254
      <if test="record.serviceTypeId != null">
        SERVICE_TYPE_ID = #{record.serviceTypeId,jdbcType=VARCHAR},
255 256
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
257
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
258 259
      </if>
      <if test="record.updateTime != null">
neo's avatar
neo committed
260
        UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
261 262 263 264 265 266 267 268 269 270 271
      </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
272 273 274 275 276 277 278 279 280 281
    update MODEL_LOG
    set ID = #{record.id,jdbcType=VARCHAR},
      ORGANIZATION_ID = #{record.organizationId,jdbcType=VARCHAR},
      RUN_NUMBER = #{record.runNumber,jdbcType=DECIMAL},
      DESCRIPTION = #{record.description,jdbcType=VARCHAR},
      SUCCESS_NUMBER = #{record.successNumber,jdbcType=DECIMAL},
      FAILURE_NUMBER = #{record.failureNumber,jdbcType=DECIMAL},
      SERVICE_TYPE_ID = #{record.serviceTypeId,jdbcType=VARCHAR},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}
282 283 284 285 286 287 288 289 290
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.ModelLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
291
    update MODEL_LOG
292
    <set>
neo's avatar
neo committed
293 294
      <if test="organizationId != null">
        ORGANIZATION_ID = #{organizationId,jdbcType=VARCHAR},
295 296
      </if>
      <if test="runNumber != null">
neo's avatar
neo committed
297
        RUN_NUMBER = #{runNumber,jdbcType=DECIMAL},
298 299
      </if>
      <if test="description != null">
neo's avatar
neo committed
300
        DESCRIPTION = #{description,jdbcType=VARCHAR},
301 302
      </if>
      <if test="successNumber != null">
neo's avatar
neo committed
303
        SUCCESS_NUMBER = #{successNumber,jdbcType=DECIMAL},
304 305
      </if>
      <if test="failureNumber != null">
neo's avatar
neo committed
306
        FAILURE_NUMBER = #{failureNumber,jdbcType=DECIMAL},
307
      </if>
neo's avatar
neo committed
308 309
      <if test="serviceTypeId != null">
        SERVICE_TYPE_ID = #{serviceTypeId,jdbcType=VARCHAR},
310 311
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
312
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
313 314
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
315
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
316 317
      </if>
    </set>
neo's avatar
neo committed
318
    where ID = #{id,jdbcType=VARCHAR}
319 320 321 322 323 324
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.ModelLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
325 326 327 328 329 330 331 332 333 334
    update MODEL_LOG
    set ORGANIZATION_ID = #{organizationId,jdbcType=VARCHAR},
      RUN_NUMBER = #{runNumber,jdbcType=DECIMAL},
      DESCRIPTION = #{description,jdbcType=VARCHAR},
      SUCCESS_NUMBER = #{successNumber,jdbcType=DECIMAL},
      FAILURE_NUMBER = #{failureNumber,jdbcType=DECIMAL},
      SERVICE_TYPE_ID = #{serviceTypeId,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}
    where ID = #{id,jdbcType=VARCHAR}
335 336 337 338 339 340 341 342 343 344 345
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.ModelLogExample" 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
346
    from MODEL_LOG
347 348 349 350 351 352 353
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
354
</mapper>