ValidationInfoMapper.xml 15 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.ValidationInfoMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.ValidationInfo">
    <!--
      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 20
    <id column="ID" jdbcType="VARCHAR" property="id" />
    <result column="IMPORT_TYPE_ID" jdbcType="DECIMAL" property="importTypeId" />
    <result column="VALIDATION_RESULT" jdbcType="VARCHAR" property="validationResult" />
    <result column="VALIDATION_DETAILS" jdbcType="VARCHAR" property="validationDetails" />
    <result column="VALIDATION_TIPS" jdbcType="VARCHAR" property="validationTips" />
    <result column="NUMBER" jdbcType="DECIMAL" property="number" />
    <result column="CREATOR_ID" jdbcType="VARCHAR" property="creatorId" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="PERIOD_ID" jdbcType="DECIMAL" property="periodId" />
    <result column="ERP_CHECK_TYPE_ID" jdbcType="DECIMAL" property="erpCheckTypeId" />
    <result column="ERROR_LEVEL" jdbcType="DECIMAL" property="errorLevel" />
    <result column="IS_SHOW_DETAIL" jdbcType="DECIMAL" property="isShowDetail" />
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 48
  </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>
49
            </foreach>
50
          </trim>
51
        </if>
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 83
      </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>
84
        </if>
85 86 87 88 89 90 91 92
      </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
93 94
    ID, IMPORT_TYPE_ID, VALIDATION_RESULT, VALIDATION_DETAILS, VALIDATION_TIPS, "NUMBER", 
    CREATOR_ID, CREATE_TIME, PERIOD_ID, ERP_CHECK_TYPE_ID, ERROR_LEVEL, IS_SHOW_DETAIL
95 96 97 98 99 100 101 102 103 104 105
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfoExample" 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
106
    from VALIDATION_INFO
107 108 109 110 111 112 113 114 115 116 117 118 119 120
    <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
121 122
    from VALIDATION_INFO
    where ID = #{id,jdbcType=VARCHAR}
123 124 125 126 127 128
  </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
129 130
    delete from VALIDATION_INFO
    where ID = #{id,jdbcType=VARCHAR}
131 132 133 134 135 136
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfoExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
137
    delete from VALIDATION_INFO
138 139 140 141 142 143 144 145 146
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfo">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
147 148 149 150
    insert into VALIDATION_INFO (ID, IMPORT_TYPE_ID, VALIDATION_RESULT, 
      VALIDATION_DETAILS, VALIDATION_TIPS, "NUMBER", 
      CREATOR_ID, CREATE_TIME, PERIOD_ID, 
      ERP_CHECK_TYPE_ID, ERROR_LEVEL, IS_SHOW_DETAIL
151
      )
neo's avatar
neo committed
152 153 154 155
    values (#{id,jdbcType=VARCHAR}, #{importTypeId,jdbcType=DECIMAL}, #{validationResult,jdbcType=VARCHAR}, 
      #{validationDetails,jdbcType=VARCHAR}, #{validationTips,jdbcType=VARCHAR}, #{number,jdbcType=DECIMAL}, 
      #{creatorId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{periodId,jdbcType=DECIMAL}, 
      #{erpCheckTypeId,jdbcType=DECIMAL}, #{errorLevel,jdbcType=DECIMAL}, #{isShowDetail,jdbcType=DECIMAL}
156 157 158 159 160 161 162
      )
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfo">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
163
    insert into VALIDATION_INFO
164
    <trim prefix="(" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
165
      <if test="id != null">
166 167 168
        ID,
      </if>
      <if test="importTypeId != null">
neo's avatar
neo committed
169
        IMPORT_TYPE_ID,
170 171
      </if>
      <if test="validationResult != null">
neo's avatar
neo committed
172
        VALIDATION_RESULT,
173 174
      </if>
      <if test="validationDetails != null">
neo's avatar
neo committed
175
        VALIDATION_DETAILS,
176 177
      </if>
      <if test="validationTips != null">
neo's avatar
neo committed
178
        VALIDATION_TIPS,
179 180
      </if>
      <if test="number != null">
neo's avatar
neo committed
181
        "NUMBER",
182 183
      </if>
      <if test="creatorId != null">
neo's avatar
neo committed
184
        CREATOR_ID,
185 186
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
187
        CREATE_TIME,
188 189
      </if>
      <if test="periodId != null">
neo's avatar
neo committed
190
        PERIOD_ID,
191 192
      </if>
      <if test="erpCheckTypeId != null">
neo's avatar
neo committed
193
        ERP_CHECK_TYPE_ID,
194 195
      </if>
      <if test="errorLevel != null">
neo's avatar
neo committed
196
        ERROR_LEVEL,
197 198
      </if>
      <if test="isShowDetail != null">
neo's avatar
neo committed
199
        IS_SHOW_DETAIL,
200 201 202
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
neo's avatar
neo committed
203 204
      <if test="id != null">
        #{id,jdbcType=VARCHAR},
205 206
      </if>
      <if test="importTypeId != null">
neo's avatar
neo committed
207
        #{importTypeId,jdbcType=DECIMAL},
208 209 210 211 212 213 214 215 216 217 218
      </if>
      <if test="validationResult != null">
        #{validationResult,jdbcType=VARCHAR},
      </if>
      <if test="validationDetails != null">
        #{validationDetails,jdbcType=VARCHAR},
      </if>
      <if test="validationTips != null">
        #{validationTips,jdbcType=VARCHAR},
      </if>
      <if test="number != null">
neo's avatar
neo committed
219
        #{number,jdbcType=DECIMAL},
220 221 222 223 224 225 226 227
      </if>
      <if test="creatorId != null">
        #{creatorId,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="periodId != null">
neo's avatar
neo committed
228
        #{periodId,jdbcType=DECIMAL},
229 230
      </if>
      <if test="erpCheckTypeId != null">
neo's avatar
neo committed
231
        #{erpCheckTypeId,jdbcType=DECIMAL},
232 233
      </if>
      <if test="errorLevel != null">
neo's avatar
neo committed
234
        #{errorLevel,jdbcType=DECIMAL},
235 236
      </if>
      <if test="isShowDetail != null">
neo's avatar
neo committed
237
        #{isShowDetail,jdbcType=DECIMAL},
238 239 240 241 242 243 244 245
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfoExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
246
    select count(*) from VALIDATION_INFO
247 248 249 250 251 252 253 254 255
    <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
256
    update VALIDATION_INFO
257
    <set>
neo's avatar
neo committed
258 259
      <if test="record.id != null">
        ID = #{record.id,jdbcType=VARCHAR},
260 261
      </if>
      <if test="record.importTypeId != null">
neo's avatar
neo committed
262
        IMPORT_TYPE_ID = #{record.importTypeId,jdbcType=DECIMAL},
263 264
      </if>
      <if test="record.validationResult != null">
neo's avatar
neo committed
265
        VALIDATION_RESULT = #{record.validationResult,jdbcType=VARCHAR},
266 267
      </if>
      <if test="record.validationDetails != null">
neo's avatar
neo committed
268
        VALIDATION_DETAILS = #{record.validationDetails,jdbcType=VARCHAR},
269 270
      </if>
      <if test="record.validationTips != null">
neo's avatar
neo committed
271
        VALIDATION_TIPS = #{record.validationTips,jdbcType=VARCHAR},
272 273
      </if>
      <if test="record.number != null">
neo's avatar
neo committed
274
        "NUMBER" = #{record.number,jdbcType=DECIMAL},
275 276
      </if>
      <if test="record.creatorId != null">
neo's avatar
neo committed
277
        CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR},
278 279
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
280
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
281 282
      </if>
      <if test="record.periodId != null">
neo's avatar
neo committed
283
        PERIOD_ID = #{record.periodId,jdbcType=DECIMAL},
284 285
      </if>
      <if test="record.erpCheckTypeId != null">
neo's avatar
neo committed
286
        ERP_CHECK_TYPE_ID = #{record.erpCheckTypeId,jdbcType=DECIMAL},
287 288
      </if>
      <if test="record.errorLevel != null">
neo's avatar
neo committed
289
        ERROR_LEVEL = #{record.errorLevel,jdbcType=DECIMAL},
290 291
      </if>
      <if test="record.isShowDetail != null">
neo's avatar
neo committed
292
        IS_SHOW_DETAIL = #{record.isShowDetail,jdbcType=DECIMAL},
293 294 295 296 297 298 299 300 301 302 303
      </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
304 305 306 307 308 309 310 311 312 313 314 315 316
    update VALIDATION_INFO
    set ID = #{record.id,jdbcType=VARCHAR},
      IMPORT_TYPE_ID = #{record.importTypeId,jdbcType=DECIMAL},
      VALIDATION_RESULT = #{record.validationResult,jdbcType=VARCHAR},
      VALIDATION_DETAILS = #{record.validationDetails,jdbcType=VARCHAR},
      VALIDATION_TIPS = #{record.validationTips,jdbcType=VARCHAR},
      "NUMBER" = #{record.number,jdbcType=DECIMAL},
      CREATOR_ID = #{record.creatorId,jdbcType=VARCHAR},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      PERIOD_ID = #{record.periodId,jdbcType=DECIMAL},
      ERP_CHECK_TYPE_ID = #{record.erpCheckTypeId,jdbcType=DECIMAL},
      ERROR_LEVEL = #{record.errorLevel,jdbcType=DECIMAL},
      IS_SHOW_DETAIL = #{record.isShowDetail,jdbcType=DECIMAL}
317 318 319 320 321 322 323 324 325
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfo">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
326
    update VALIDATION_INFO
327 328
    <set>
      <if test="importTypeId != null">
neo's avatar
neo committed
329
        IMPORT_TYPE_ID = #{importTypeId,jdbcType=DECIMAL},
330 331
      </if>
      <if test="validationResult != null">
neo's avatar
neo committed
332
        VALIDATION_RESULT = #{validationResult,jdbcType=VARCHAR},
333 334
      </if>
      <if test="validationDetails != null">
neo's avatar
neo committed
335
        VALIDATION_DETAILS = #{validationDetails,jdbcType=VARCHAR},
336 337
      </if>
      <if test="validationTips != null">
neo's avatar
neo committed
338
        VALIDATION_TIPS = #{validationTips,jdbcType=VARCHAR},
339 340
      </if>
      <if test="number != null">
neo's avatar
neo committed
341
        "NUMBER" = #{number,jdbcType=DECIMAL},
342 343
      </if>
      <if test="creatorId != null">
neo's avatar
neo committed
344
        CREATOR_ID = #{creatorId,jdbcType=VARCHAR},
345 346
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
347
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
348 349
      </if>
      <if test="periodId != null">
neo's avatar
neo committed
350
        PERIOD_ID = #{periodId,jdbcType=DECIMAL},
351 352
      </if>
      <if test="erpCheckTypeId != null">
neo's avatar
neo committed
353
        ERP_CHECK_TYPE_ID = #{erpCheckTypeId,jdbcType=DECIMAL},
354 355
      </if>
      <if test="errorLevel != null">
neo's avatar
neo committed
356
        ERROR_LEVEL = #{errorLevel,jdbcType=DECIMAL},
357 358
      </if>
      <if test="isShowDetail != null">
neo's avatar
neo committed
359
        IS_SHOW_DETAIL = #{isShowDetail,jdbcType=DECIMAL},
360 361
      </if>
    </set>
neo's avatar
neo committed
362
    where ID = #{id,jdbcType=VARCHAR}
363 364 365 366 367 368
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfo">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
369 370 371 372 373 374 375 376 377 378 379 380 381
    update VALIDATION_INFO
    set IMPORT_TYPE_ID = #{importTypeId,jdbcType=DECIMAL},
      VALIDATION_RESULT = #{validationResult,jdbcType=VARCHAR},
      VALIDATION_DETAILS = #{validationDetails,jdbcType=VARCHAR},
      VALIDATION_TIPS = #{validationTips,jdbcType=VARCHAR},
      "NUMBER" = #{number,jdbcType=DECIMAL},
      CREATOR_ID = #{creatorId,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      PERIOD_ID = #{periodId,jdbcType=DECIMAL},
      ERP_CHECK_TYPE_ID = #{erpCheckTypeId,jdbcType=DECIMAL},
      ERROR_LEVEL = #{errorLevel,jdbcType=DECIMAL},
      IS_SHOW_DETAIL = #{isShowDetail,jdbcType=DECIMAL}
    where ID = #{id,jdbcType=VARCHAR}
382 383 384 385 386 387 388 389 390 391 392
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.ValidationInfoExample" 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
393
    from VALIDATION_INFO
394 395 396 397 398 399 400
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
401
</mapper>