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