CellCommentMapper.xml 13.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.vat.dao.CellCommentMapper">
4 5 6 7 8
  <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.CellComment">
    <!--
      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
    <id column="ID" jdbcType="DECIMAL" property="id" />
    <result column="CELL_DATA_ID" jdbcType="DECIMAL" property="cellDataId" />
    <result column="USER_ID" jdbcType="VARCHAR" property="userId" />
    <result column="USER_NAME" jdbcType="VARCHAR" property="userName" />
    <result column="COMMENT" jdbcType="VARCHAR" property="comment" />
    <result column="REPLY_TO_USER_NAME" jdbcType="VARCHAR" property="replyToUserName" />
    <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
    <result column="CREATE_BY" jdbcType="VARCHAR" property="createBy" />
    <result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy" />
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 46
  </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>
47
            </foreach>
48
          </trim>
49
        </if>
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
      </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>
82
        </if>
83 84 85 86 87 88 89 90
      </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
91 92
    ID, CELL_DATA_ID, USER_ID, USER_NAME, "COMMENT", REPLY_TO_USER_NAME, CREATE_TIME, 
    UPDATE_TIME, CREATE_BY, UPDATE_BY
93 94 95 96 97 98 99 100 101 102 103
  </sql>
  <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.CellCommentExample" 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
104
    from CELL_COMMENT
105 106 107 108 109 110 111 112 113 114 115 116 117 118
    <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.Long" 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
119 120
    from CELL_COMMENT
    where ID = #{id,jdbcType=DECIMAL}
121 122 123 124 125 126
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
127 128
    delete from CELL_COMMENT
    where ID = #{id,jdbcType=DECIMAL}
129 130 131 132 133 134
  </delete>
  <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.CellCommentExample">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
135
    delete from CELL_COMMENT
136 137 138 139 140 141 142 143 144
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.CellComment">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
145 146 147 148 149
    insert into CELL_COMMENT (ID, CELL_DATA_ID, USER_ID, 
      USER_NAME, "COMMENT", REPLY_TO_USER_NAME, 
      CREATE_TIME, UPDATE_TIME, CREATE_BY, 
      UPDATE_BY)
    values (#{id,jdbcType=DECIMAL}, #{cellDataId,jdbcType=DECIMAL}, #{userId,jdbcType=VARCHAR}, 
150 151 152 153 154 155 156 157 158
      #{userName,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{replyToUserName,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, 
      #{updateBy,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.CellComment">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
159
    insert into CELL_COMMENT
160 161
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
neo's avatar
neo committed
162
        ID,
163 164
      </if>
      <if test="cellDataId != null">
neo's avatar
neo committed
165
        CELL_DATA_ID,
166 167
      </if>
      <if test="userId != null">
neo's avatar
neo committed
168
        USER_ID,
169 170
      </if>
      <if test="userName != null">
neo's avatar
neo committed
171
        USER_NAME,
172 173
      </if>
      <if test="comment != null">
neo's avatar
neo committed
174
        "COMMENT",
175 176
      </if>
      <if test="replyToUserName != null">
neo's avatar
neo committed
177
        REPLY_TO_USER_NAME,
178 179
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
180
        CREATE_TIME,
181 182
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
183
        UPDATE_TIME,
184 185
      </if>
      <if test="createBy != null">
neo's avatar
neo committed
186
        CREATE_BY,
187 188
      </if>
      <if test="updateBy != null">
neo's avatar
neo committed
189
        UPDATE_BY,
190 191 192 193
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
neo's avatar
neo committed
194
        #{id,jdbcType=DECIMAL},
195 196
      </if>
      <if test="cellDataId != null">
neo's avatar
neo committed
197
        #{cellDataId,jdbcType=DECIMAL},
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
      </if>
      <if test="userId != null">
        #{userId,jdbcType=VARCHAR},
      </if>
      <if test="userName != null">
        #{userName,jdbcType=VARCHAR},
      </if>
      <if test="comment != null">
        #{comment,jdbcType=VARCHAR},
      </if>
      <if test="replyToUserName != null">
        #{replyToUserName,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="updateTime != null">
        #{updateTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=VARCHAR},
      </if>
      <if test="updateBy != null">
        #{updateBy,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.CellCommentExample" resultType="java.lang.Long">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
230
    select count(*) from CELL_COMMENT
231 232 233 234 235 236 237 238 239
    <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
240
    update CELL_COMMENT
241 242
    <set>
      <if test="record.id != null">
neo's avatar
neo committed
243
        ID = #{record.id,jdbcType=DECIMAL},
244 245
      </if>
      <if test="record.cellDataId != null">
neo's avatar
neo committed
246
        CELL_DATA_ID = #{record.cellDataId,jdbcType=DECIMAL},
247 248
      </if>
      <if test="record.userId != null">
neo's avatar
neo committed
249
        USER_ID = #{record.userId,jdbcType=VARCHAR},
250 251
      </if>
      <if test="record.userName != null">
neo's avatar
neo committed
252
        USER_NAME = #{record.userName,jdbcType=VARCHAR},
253 254
      </if>
      <if test="record.comment != null">
neo's avatar
neo committed
255
        "COMMENT" = #{record.comment,jdbcType=VARCHAR},
256 257
      </if>
      <if test="record.replyToUserName != null">
neo's avatar
neo committed
258
        REPLY_TO_USER_NAME = #{record.replyToUserName,jdbcType=VARCHAR},
259 260
      </if>
      <if test="record.createTime != null">
neo's avatar
neo committed
261
        CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
262 263
      </if>
      <if test="record.updateTime != null">
neo's avatar
neo committed
264
        UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
265 266
      </if>
      <if test="record.createBy != null">
neo's avatar
neo committed
267
        CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
268 269
      </if>
      <if test="record.updateBy != null">
neo's avatar
neo committed
270
        UPDATE_BY = #{record.updateBy,jdbcType=VARCHAR},
271 272 273 274 275 276 277 278 279 280 281
      </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
282 283 284 285 286 287 288 289 290 291 292
    update CELL_COMMENT
    set ID = #{record.id,jdbcType=DECIMAL},
      CELL_DATA_ID = #{record.cellDataId,jdbcType=DECIMAL},
      USER_ID = #{record.userId,jdbcType=VARCHAR},
      USER_NAME = #{record.userName,jdbcType=VARCHAR},
      "COMMENT" = #{record.comment,jdbcType=VARCHAR},
      REPLY_TO_USER_NAME = #{record.replyToUserName,jdbcType=VARCHAR},
      CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP},
      CREATE_BY = #{record.createBy,jdbcType=VARCHAR},
      UPDATE_BY = #{record.updateBy,jdbcType=VARCHAR}
293 294 295 296 297 298 299 300 301
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.CellComment">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
302
    update CELL_COMMENT
303 304
    <set>
      <if test="cellDataId != null">
neo's avatar
neo committed
305
        CELL_DATA_ID = #{cellDataId,jdbcType=DECIMAL},
306 307
      </if>
      <if test="userId != null">
neo's avatar
neo committed
308
        USER_ID = #{userId,jdbcType=VARCHAR},
309 310
      </if>
      <if test="userName != null">
neo's avatar
neo committed
311
        USER_NAME = #{userName,jdbcType=VARCHAR},
312 313
      </if>
      <if test="comment != null">
neo's avatar
neo committed
314
        "COMMENT" = #{comment,jdbcType=VARCHAR},
315 316
      </if>
      <if test="replyToUserName != null">
neo's avatar
neo committed
317
        REPLY_TO_USER_NAME = #{replyToUserName,jdbcType=VARCHAR},
318 319
      </if>
      <if test="createTime != null">
neo's avatar
neo committed
320
        CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
321 322
      </if>
      <if test="updateTime != null">
neo's avatar
neo committed
323
        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
324 325
      </if>
      <if test="createBy != null">
neo's avatar
neo committed
326
        CREATE_BY = #{createBy,jdbcType=VARCHAR},
327 328
      </if>
      <if test="updateBy != null">
neo's avatar
neo committed
329
        UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
330 331
      </if>
    </set>
neo's avatar
neo committed
332
    where ID = #{id,jdbcType=DECIMAL}
333 334 335 336 337 338
  </update>
  <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.CellComment">
    <!--
      WARNING - @mbg.generated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
neo's avatar
neo committed
339 340 341 342 343 344 345 346 347 348 349
    update CELL_COMMENT
    set CELL_DATA_ID = #{cellDataId,jdbcType=DECIMAL},
      USER_ID = #{userId,jdbcType=VARCHAR},
      USER_NAME = #{userName,jdbcType=VARCHAR},
      "COMMENT" = #{comment,jdbcType=VARCHAR},
      REPLY_TO_USER_NAME = #{replyToUserName,jdbcType=VARCHAR},
      CREATE_TIME = #{createTime,jdbcType=TIMESTAMP},
      UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
      CREATE_BY = #{createBy,jdbcType=VARCHAR},
      UPDATE_BY = #{updateBy,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=DECIMAL}
350 351 352 353 354 355 356 357 358 359 360
  </update>
  <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.CellCommentExample" 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
361
    from CELL_COMMENT
362 363 364 365 366 367 368
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
369
</mapper>