PeriodInfoMapper.xml 16.3 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.dao.PeriodInfoMapper">
4
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.PeriodInfo">
5 6 7 8 9 10 11 12 13 14 15 16 17 18
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="ID" jdbcType="VARCHAR" property="ID" />
    <result column="ProjectID" jdbcType="VARCHAR" property="projectID" />
    <result column="Period" jdbcType="INTEGER" property="period" />
    <result column="Status" jdbcType="INTEGER" property="status" />
    <result column="CreatorID" jdbcType="VARCHAR" property="creatorID" />
    <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="ImportType" jdbcType="INTEGER" property="importType" />
    <result column="ServiceType" jdbcType="INTEGER" property="serviceType" />
  </resultMap>
19
  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="pwc.taxtech.atms.entity.PeriodInfo">
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 48 49 50 51 52
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="ProjectInfo" jdbcType="LONGVARCHAR" property="projectInfo" />
  </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>
53
            </foreach>
54
          </trim>
55
        </if>
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 84 85 86 87
      </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>
88
        </if>
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    ID, ProjectID, Period, Status, CreatorID, CreateTime, UpdateTime, ImportType, ServiceType
  </sql>
  <sql id="Blob_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    ProjectInfo
  </sql>
106
  <select id="selectByExampleWithBLOBs" parameterType="pwc.taxtech.atms.entity.PeriodInfoExample" resultMap="ResultMapWithBLOBs">
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    <!--
      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" />
    ,
    <include refid="Blob_Column_List" />
    from PeriodInfo
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
126
  <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.PeriodInfoExample" resultMap="BaseResultMap">
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
    <!--
      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" />
    from PeriodInfo
    <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="ResultMapWithBLOBs">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    ,
    <include refid="Blob_Column_List" />
    from PeriodInfo
    where ID = #{ID,jdbcType=VARCHAR}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from PeriodInfo
    where ID = #{ID,jdbcType=VARCHAR}
  </delete>
164
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.PeriodInfoExample">
165 166 167 168 169 170 171 172 173
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from PeriodInfo
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
174
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.PeriodInfo">
175 176 177 178 179 180 181 182 183 184 185 186 187
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into PeriodInfo (ID, ProjectID, Period, 
      Status, CreatorID, CreateTime, 
      UpdateTime, ImportType, ServiceType, 
      ProjectInfo)
    values (#{ID,jdbcType=VARCHAR}, #{projectID,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, 
      #{status,jdbcType=INTEGER}, #{creatorID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
      #{updateTime,jdbcType=TIMESTAMP}, #{importType,jdbcType=INTEGER}, #{serviceType,jdbcType=INTEGER}, 
      #{projectInfo,jdbcType=LONGVARCHAR})
  </insert>
188
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.PeriodInfo">
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into PeriodInfo
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="ID != null">
        ID,
      </if>
      <if test="projectID != null">
        ProjectID,
      </if>
      <if test="period != null">
        Period,
      </if>
      <if test="status != null">
        Status,
      </if>
      <if test="creatorID != null">
        CreatorID,
      </if>
      <if test="createTime != null">
        CreateTime,
      </if>
      <if test="updateTime != null">
        UpdateTime,
      </if>
      <if test="importType != null">
        ImportType,
      </if>
      <if test="serviceType != null">
        ServiceType,
      </if>
      <if test="projectInfo != null">
        ProjectInfo,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="ID != null">
        #{ID,jdbcType=VARCHAR},
      </if>
      <if test="projectID != null">
        #{projectID,jdbcType=VARCHAR},
      </if>
      <if test="period != null">
        #{period,jdbcType=INTEGER},
      </if>
      <if test="status != null">
        #{status,jdbcType=INTEGER},
      </if>
      <if test="creatorID != null">
        #{creatorID,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="importType != null">
        #{importType,jdbcType=INTEGER},
      </if>
      <if test="serviceType != null">
        #{serviceType,jdbcType=INTEGER},
      </if>
      <if test="projectInfo != null">
        #{projectInfo,jdbcType=LONGVARCHAR},
      </if>
    </trim>
  </insert>
259
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.PeriodInfoExample" resultType="java.lang.Long">
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from PeriodInfo
    <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.
    -->
    update PeriodInfo
    <set>
      <if test="record.ID != null">
        ID = #{record.ID,jdbcType=VARCHAR},
      </if>
      <if test="record.projectID != null">
280
        ProjectID = #{record.projectID,jdbcType=VARCHAR},
281 282
      </if>
      <if test="record.period != null">
283
        Period = #{record.period,jdbcType=INTEGER},
284 285
      </if>
      <if test="record.status != null">
286
        Status = #{record.status,jdbcType=INTEGER},
287 288
      </if>
      <if test="record.creatorID != null">
289
        CreatorID = #{record.creatorID,jdbcType=VARCHAR},
290 291
      </if>
      <if test="record.createTime != null">
292
        CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
293 294
      </if>
      <if test="record.updateTime != null">
295
        UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
296 297
      </if>
      <if test="record.importType != null">
298
        ImportType = #{record.importType,jdbcType=INTEGER},
299 300
      </if>
      <if test="record.serviceType != null">
301
        ServiceType = #{record.serviceType,jdbcType=INTEGER},
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
      </if>
      <if test="record.projectInfo != null">
        ProjectInfo = #{record.projectInfo,jdbcType=LONGVARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExampleWithBLOBs" parameterType="map">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update PeriodInfo
    set ID = #{record.ID,jdbcType=VARCHAR},
      ProjectID = #{record.projectID,jdbcType=VARCHAR},
      Period = #{record.period,jdbcType=INTEGER},
      Status = #{record.status,jdbcType=INTEGER},
      CreatorID = #{record.creatorID,jdbcType=VARCHAR},
      CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
      UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
      ImportType = #{record.importType,jdbcType=INTEGER},
      ServiceType = #{record.serviceType,jdbcType=INTEGER},
      ProjectInfo = #{record.projectInfo,jdbcType=LONGVARCHAR}
    <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.
    -->
    update PeriodInfo
    set ID = #{record.ID,jdbcType=VARCHAR},
      ProjectID = #{record.projectID,jdbcType=VARCHAR},
      Period = #{record.period,jdbcType=INTEGER},
      Status = #{record.status,jdbcType=INTEGER},
      CreatorID = #{record.creatorID,jdbcType=VARCHAR},
      CreateTime = #{record.createTime,jdbcType=TIMESTAMP},
      UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP},
      ImportType = #{record.importType,jdbcType=INTEGER},
      ServiceType = #{record.serviceType,jdbcType=INTEGER}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
350
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.entity.PeriodInfo">
351 352 353 354 355 356 357 358 359 360
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update PeriodInfo
    <set>
      <if test="projectID != null">
        ProjectID = #{projectID,jdbcType=VARCHAR},
      </if>
      <if test="period != null">
361
        Period = #{period,jdbcType=INTEGER},
362 363
      </if>
      <if test="status != null">
364
        Status = #{status,jdbcType=INTEGER},
365 366
      </if>
      <if test="creatorID != null">
367
        CreatorID = #{creatorID,jdbcType=VARCHAR},
368 369
      </if>
      <if test="createTime != null">
370
        CreateTime = #{createTime,jdbcType=TIMESTAMP},
371 372
      </if>
      <if test="updateTime != null">
373
        UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
374 375
      </if>
      <if test="importType != null">
376
        ImportType = #{importType,jdbcType=INTEGER},
377 378
      </if>
      <if test="serviceType != null">
379
        ServiceType = #{serviceType,jdbcType=INTEGER},
380 381 382 383 384 385 386
      </if>
      <if test="projectInfo != null">
        ProjectInfo = #{projectInfo,jdbcType=LONGVARCHAR},
      </if>
    </set>
    where ID = #{ID,jdbcType=VARCHAR}
  </update>
387
  <update id="updateByPrimaryKeyWithBLOBs" parameterType="pwc.taxtech.atms.entity.PeriodInfo">
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update PeriodInfo
    set ProjectID = #{projectID,jdbcType=VARCHAR},
      Period = #{period,jdbcType=INTEGER},
      Status = #{status,jdbcType=INTEGER},
      CreatorID = #{creatorID,jdbcType=VARCHAR},
      CreateTime = #{createTime,jdbcType=TIMESTAMP},
      UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
      ImportType = #{importType,jdbcType=INTEGER},
      ServiceType = #{serviceType,jdbcType=INTEGER},
      ProjectInfo = #{projectInfo,jdbcType=LONGVARCHAR}
    where ID = #{ID,jdbcType=VARCHAR}
  </update>
404
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.entity.PeriodInfo">
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update PeriodInfo
    set ProjectID = #{projectID,jdbcType=VARCHAR},
      Period = #{period,jdbcType=INTEGER},
      Status = #{status,jdbcType=INTEGER},
      CreatorID = #{creatorID,jdbcType=VARCHAR},
      CreateTime = #{createTime,jdbcType=TIMESTAMP},
      UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
      ImportType = #{importType,jdbcType=INTEGER},
      ServiceType = #{serviceType,jdbcType=INTEGER}
    where ID = #{ID,jdbcType=VARCHAR}
  </update>
420
  <select id="selectByExampleWithBLOBsWithRowbounds" parameterType="pwc.taxtech.atms.entity.PeriodInfoExample" resultMap="ResultMapWithBLOBs">
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
    <!--
      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" />
    ,
    <include refid="Blob_Column_List" />
    from PeriodInfo
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
440
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.PeriodInfoExample" resultMap="BaseResultMap">
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
    <!--
      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" />
    from PeriodInfo
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
458
</mapper>