OperationLogEntryLogMapper.xml 15.4 KB
Newer Older
kevin's avatar
#  
kevin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?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.OperationLogEntryLogMapper">
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.entity.OperationLogEntryLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="my_id" jdbcType="BIGINT" property="myId" />
    <result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
    <result column="account_period" jdbcType="VARCHAR" property="accountPeriod" />
    <result column="accounted_dr" jdbcType="BIGINT" property="accountedDr" />
    <result column="accounted_cr" jdbcType="BIGINT" property="accountedCr" />
    <result column="accounting_date" jdbcType="TIMESTAMP" property="accountingDate" />
    <result column="approval_status" jdbcType="VARCHAR" property="approvalStatus" />
    <result column="category" jdbcType="VARCHAR" property="category" />
    <result column="id" jdbcType="BIGINT" property="id" />
    <result column="period" jdbcType="INTEGER" property="period" />
    <result column="source" jdbcType="VARCHAR" property="source" />
kevin's avatar
kevin committed
20
    <result column="subject_code" jdbcType="VARCHAR" property="subjectCode" />
kevin's avatar
#  
kevin committed
21 22 23 24
    <result column="subject_name" jdbcType="VARCHAR" property="subjectName" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="voucher_num" jdbcType="VARCHAR" property="voucherNum" />
    <result column="org_code" jdbcType="VARCHAR" property="orgCode" />
kevin's avatar
kevin committed
25
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
kevin's avatar
#  
kevin committed
26 27
    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
    <result column="update_by" jdbcType="VARCHAR" property="updateBy" />
kevin's avatar
kevin committed
28
    <result column="operate" jdbcType="VARCHAR" property="operate" />
kevin's avatar
#  
kevin committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
  </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>
            </foreach>
          </trim>
        </if>
      </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>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
kevin's avatar
kevin committed
101 102 103
    my_id, organization_id, account_period, accounted_dr, accounted_cr, accounting_date, 
    approval_status, category, id, period, source, subject_code, subject_name, update_time, 
    voucher_num, org_code, create_time, create_by, update_by, operate
kevin's avatar
#  
kevin committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.OperationLogEntryLogExample" 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" />
    from operation_log_entry_log
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.OperationLogEntryLogExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from operation_log_entry_log
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.entity.OperationLogEntryLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
kevin's avatar
kevin committed
138 139 140 141
    insert into operation_log_entry_log (my_id, organization_id, account_period, 
      accounted_dr, accounted_cr, accounting_date, 
      approval_status, category, id, 
      period, source, subject_code, 
kevin's avatar
#  
kevin committed
142 143
      subject_name, update_time, voucher_num, 
      org_code, create_time, create_by, 
kevin's avatar
kevin committed
144 145 146 147 148
      update_by, operate)
    values (#{myId,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{accountPeriod,jdbcType=VARCHAR}, 
      #{accountedDr,jdbcType=BIGINT}, #{accountedCr,jdbcType=BIGINT}, #{accountingDate,jdbcType=TIMESTAMP}, 
      #{approvalStatus,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{id,jdbcType=BIGINT}, 
      #{period,jdbcType=INTEGER}, #{source,jdbcType=VARCHAR}, #{subjectCode,jdbcType=VARCHAR}, 
kevin's avatar
#  
kevin committed
149
      #{subjectName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{voucherNum,jdbcType=VARCHAR}, 
kevin's avatar
kevin committed
150 151
      #{orgCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, 
      #{updateBy,jdbcType=VARCHAR}, #{operate,jdbcType=VARCHAR})
kevin's avatar
#  
kevin committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.entity.OperationLogEntryLog">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into operation_log_entry_log
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="myId != null">
        my_id,
      </if>
      <if test="organizationId != null">
        organization_id,
      </if>
      <if test="accountPeriod != null">
        account_period,
      </if>
      <if test="accountedDr != null">
        accounted_dr,
      </if>
      <if test="accountedCr != null">
        accounted_cr,
      </if>
      <if test="accountingDate != null">
        accounting_date,
      </if>
      <if test="approvalStatus != null">
        approval_status,
      </if>
      <if test="category != null">
        category,
      </if>
      <if test="id != null">
        id,
      </if>
      <if test="period != null">
        period,
      </if>
      <if test="source != null">
        source,
      </if>
kevin's avatar
kevin committed
193 194 195
      <if test="subjectCode != null">
        subject_code,
      </if>
kevin's avatar
#  
kevin committed
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
      <if test="subjectName != null">
        subject_name,
      </if>
      <if test="updateTime != null">
        update_time,
      </if>
      <if test="voucherNum != null">
        voucher_num,
      </if>
      <if test="orgCode != null">
        org_code,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="updateBy != null">
        update_by,
      </if>
kevin's avatar
kevin committed
217 218 219
      <if test="operate != null">
        operate,
      </if>
kevin's avatar
#  
kevin committed
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
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="myId != null">
        #{myId,jdbcType=BIGINT},
      </if>
      <if test="organizationId != null">
        #{organizationId,jdbcType=VARCHAR},
      </if>
      <if test="accountPeriod != null">
        #{accountPeriod,jdbcType=VARCHAR},
      </if>
      <if test="accountedDr != null">
        #{accountedDr,jdbcType=BIGINT},
      </if>
      <if test="accountedCr != null">
        #{accountedCr,jdbcType=BIGINT},
      </if>
      <if test="accountingDate != null">
        #{accountingDate,jdbcType=TIMESTAMP},
      </if>
      <if test="approvalStatus != null">
        #{approvalStatus,jdbcType=VARCHAR},
      </if>
      <if test="category != null">
        #{category,jdbcType=VARCHAR},
      </if>
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="period != null">
        #{period,jdbcType=INTEGER},
      </if>
      <if test="source != null">
        #{source,jdbcType=VARCHAR},
      </if>
kevin's avatar
kevin committed
255 256 257
      <if test="subjectCode != null">
        #{subjectCode,jdbcType=VARCHAR},
      </if>
kevin's avatar
#  
kevin committed
258 259 260 261 262 263 264 265 266 267 268 269 270
      <if test="subjectName != null">
        #{subjectName,jdbcType=VARCHAR},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="voucherNum != null">
        #{voucherNum,jdbcType=VARCHAR},
      </if>
      <if test="orgCode != null">
        #{orgCode,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
kevin's avatar
kevin committed
271
        #{createTime,jdbcType=TIMESTAMP},
kevin's avatar
#  
kevin committed
272 273 274 275 276 277 278
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
kevin's avatar
kevin committed
279 280 281
      <if test="operate != null">
        #{operate,jdbcType=VARCHAR},
      </if>
kevin's avatar
#  
kevin committed
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 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
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.entity.OperationLogEntryLogExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from operation_log_entry_log
    <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 operation_log_entry_log
    <set>
      <if test="record.myId != null">
        my_id = #{record.myId,jdbcType=BIGINT},
      </if>
      <if test="record.organizationId != null">
        organization_id = #{record.organizationId,jdbcType=VARCHAR},
      </if>
      <if test="record.accountPeriod != null">
        account_period = #{record.accountPeriod,jdbcType=VARCHAR},
      </if>
      <if test="record.accountedDr != null">
        accounted_dr = #{record.accountedDr,jdbcType=BIGINT},
      </if>
      <if test="record.accountedCr != null">
        accounted_cr = #{record.accountedCr,jdbcType=BIGINT},
      </if>
      <if test="record.accountingDate != null">
        accounting_date = #{record.accountingDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.approvalStatus != null">
        approval_status = #{record.approvalStatus,jdbcType=VARCHAR},
      </if>
      <if test="record.category != null">
        category = #{record.category,jdbcType=VARCHAR},
      </if>
      <if test="record.id != null">
        id = #{record.id,jdbcType=BIGINT},
      </if>
      <if test="record.period != null">
        period = #{record.period,jdbcType=INTEGER},
      </if>
      <if test="record.source != null">
        source = #{record.source,jdbcType=VARCHAR},
      </if>
kevin's avatar
kevin committed
334 335 336
      <if test="record.subjectCode != null">
        subject_code = #{record.subjectCode,jdbcType=VARCHAR},
      </if>
kevin's avatar
#  
kevin committed
337 338 339 340 341 342 343 344 345 346 347 348 349
      <if test="record.subjectName != null">
        subject_name = #{record.subjectName,jdbcType=VARCHAR},
      </if>
      <if test="record.updateTime != null">
        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.voucherNum != null">
        voucher_num = #{record.voucherNum,jdbcType=VARCHAR},
      </if>
      <if test="record.orgCode != null">
        org_code = #{record.orgCode,jdbcType=VARCHAR},
      </if>
      <if test="record.createTime != null">
kevin's avatar
kevin committed
350
        create_time = #{record.createTime,jdbcType=TIMESTAMP},
kevin's avatar
#  
kevin committed
351 352 353 354 355 356 357
      </if>
      <if test="record.createBy != null">
        create_by = #{record.createBy,jdbcType=VARCHAR},
      </if>
      <if test="record.updateBy != null">
        update_by = #{record.updateBy,jdbcType=VARCHAR},
      </if>
kevin's avatar
kevin committed
358 359 360
      <if test="record.operate != null">
        operate = #{record.operate,jdbcType=VARCHAR},
      </if>
kevin's avatar
#  
kevin committed
361 362 363 364 365 366 367 368 369 370 371
    </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.
    -->
    update operation_log_entry_log
kevin's avatar
kevin committed
372
    set my_id = #{record.myId,jdbcType=BIGINT},
kevin's avatar
#  
kevin committed
373 374 375 376 377 378 379 380 381 382
      organization_id = #{record.organizationId,jdbcType=VARCHAR},
      account_period = #{record.accountPeriod,jdbcType=VARCHAR},
      accounted_dr = #{record.accountedDr,jdbcType=BIGINT},
      accounted_cr = #{record.accountedCr,jdbcType=BIGINT},
      accounting_date = #{record.accountingDate,jdbcType=TIMESTAMP},
      approval_status = #{record.approvalStatus,jdbcType=VARCHAR},
      category = #{record.category,jdbcType=VARCHAR},
      id = #{record.id,jdbcType=BIGINT},
      period = #{record.period,jdbcType=INTEGER},
      source = #{record.source,jdbcType=VARCHAR},
kevin's avatar
kevin committed
383
      subject_code = #{record.subjectCode,jdbcType=VARCHAR},
kevin's avatar
#  
kevin committed
384 385 386 387
      subject_name = #{record.subjectName,jdbcType=VARCHAR},
      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
      voucher_num = #{record.voucherNum,jdbcType=VARCHAR},
      org_code = #{record.orgCode,jdbcType=VARCHAR},
kevin's avatar
kevin committed
388
      create_time = #{record.createTime,jdbcType=TIMESTAMP},
kevin's avatar
#  
kevin committed
389
      create_by = #{record.createBy,jdbcType=VARCHAR},
kevin's avatar
kevin committed
390 391
      update_by = #{record.updateBy,jdbcType=VARCHAR},
      operate = #{record.operate,jdbcType=VARCHAR}
kevin's avatar
#  
kevin committed
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.entity.OperationLogEntryLogExample" 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" />
    from operation_log_entry_log
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
</mapper>