重构-系统配置模块
This commit is contained in:
@@ -7,10 +7,12 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="value" jdbcType="VARCHAR" property="value" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
|
||||
<result column="company_contacts" jdbcType="VARCHAR" property="companyContacts" />
|
||||
<result column="company_address" jdbcType="VARCHAR" property="companyAddress" />
|
||||
<result column="company_tel" jdbcType="VARCHAR" property="companyTel" />
|
||||
<result column="company_fax" jdbcType="VARCHAR" property="companyFax" />
|
||||
<result column="company_post_code" jdbcType="VARCHAR" property="companyPostCode" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
@@ -83,7 +85,7 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, type, name, value, description
|
||||
id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
@@ -136,10 +138,12 @@
|
||||
WARNING - @mbggenerated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into jsh_systemconfig (id, type, name,
|
||||
value, description)
|
||||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
||||
#{value,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR})
|
||||
insert into jsh_systemconfig (id, company_name, company_contacts,
|
||||
company_address, company_tel, company_fax,
|
||||
company_post_code)
|
||||
values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR},
|
||||
#{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR},
|
||||
#{companyPostCode,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SystemConfig">
|
||||
<!--
|
||||
@@ -151,34 +155,46 @@
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
<if test="companyName != null">
|
||||
company_name,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
<if test="companyContacts != null">
|
||||
company_contacts,
|
||||
</if>
|
||||
<if test="value != null">
|
||||
value,
|
||||
<if test="companyAddress != null">
|
||||
company_address,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
<if test="companyTel != null">
|
||||
company_tel,
|
||||
</if>
|
||||
<if test="companyFax != null">
|
||||
company_fax,
|
||||
</if>
|
||||
<if test="companyPostCode != null">
|
||||
company_post_code,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
<if test="companyName != null">
|
||||
#{companyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
<if test="companyContacts != null">
|
||||
#{companyContacts,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="value != null">
|
||||
#{value,jdbcType=VARCHAR},
|
||||
<if test="companyAddress != null">
|
||||
#{companyAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=VARCHAR},
|
||||
<if test="companyTel != null">
|
||||
#{companyTel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyFax != null">
|
||||
#{companyFax,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyPostCode != null">
|
||||
#{companyPostCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@@ -202,17 +218,23 @@
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="record.type != null">
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
<if test="record.companyName != null">
|
||||
company_name = #{record.companyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
<if test="record.companyContacts != null">
|
||||
company_contacts = #{record.companyContacts,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.value != null">
|
||||
value = #{record.value,jdbcType=VARCHAR},
|
||||
<if test="record.companyAddress != null">
|
||||
company_address = #{record.companyAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.description != null">
|
||||
description = #{record.description,jdbcType=VARCHAR},
|
||||
<if test="record.companyTel != null">
|
||||
company_tel = #{record.companyTel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.companyFax != null">
|
||||
company_fax = #{record.companyFax,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.companyPostCode != null">
|
||||
company_post_code = #{record.companyPostCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
@@ -226,10 +248,12 @@
|
||||
-->
|
||||
update jsh_systemconfig
|
||||
set id = #{record.id,jdbcType=BIGINT},
|
||||
type = #{record.type,jdbcType=VARCHAR},
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
value = #{record.value,jdbcType=VARCHAR},
|
||||
description = #{record.description,jdbcType=VARCHAR}
|
||||
company_name = #{record.companyName,jdbcType=VARCHAR},
|
||||
company_contacts = #{record.companyContacts,jdbcType=VARCHAR},
|
||||
company_address = #{record.companyAddress,jdbcType=VARCHAR},
|
||||
company_tel = #{record.companyTel,jdbcType=VARCHAR},
|
||||
company_fax = #{record.companyFax,jdbcType=VARCHAR},
|
||||
company_post_code = #{record.companyPostCode,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
@@ -241,17 +265,23 @@
|
||||
-->
|
||||
update jsh_systemconfig
|
||||
<set>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
<if test="companyName != null">
|
||||
company_name = #{companyName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
<if test="companyContacts != null">
|
||||
company_contacts = #{companyContacts,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="value != null">
|
||||
value = #{value,jdbcType=VARCHAR},
|
||||
<if test="companyAddress != null">
|
||||
company_address = #{companyAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=VARCHAR},
|
||||
<if test="companyTel != null">
|
||||
company_tel = #{companyTel,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyFax != null">
|
||||
company_fax = #{companyFax,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyPostCode != null">
|
||||
company_post_code = #{companyPostCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
@@ -262,10 +292,12 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update jsh_systemconfig
|
||||
set type = #{type,jdbcType=VARCHAR},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
value = #{value,jdbcType=VARCHAR},
|
||||
description = #{description,jdbcType=VARCHAR}
|
||||
set company_name = #{companyName,jdbcType=VARCHAR},
|
||||
company_contacts = #{companyContacts,jdbcType=VARCHAR},
|
||||
company_address = #{companyAddress,jdbcType=VARCHAR},
|
||||
company_tel = #{companyTel,jdbcType=VARCHAR},
|
||||
company_fax = #{companyFax,jdbcType=VARCHAR},
|
||||
company_post_code = #{companyPostCode,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user