|
@@ -31,25 +31,40 @@
|
|
|
<arg column="describe" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
<arg column="open_notice" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
<arg column="trader_notice" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
+ <arg column="site_email_password" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
+ <arg column="site_email_host" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
+ <arg column="site_email_protocol" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
+ <arg column="site_email_subject" jdbcType="VARCHAR" javaType="java.lang.String" />
|
|
|
</constructor>
|
|
|
-
|
|
|
</resultMap>
|
|
|
+
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, site_name, site_host, site_keywords, site_description, site_logo, site_logo_sm, site_qq,
|
|
|
site_phone, site_android_img, site_android_url, site_ios_img, site_ios_url, site_email_from,
|
|
|
site_email_to, site_language, site_version_info, site_intro, risk_notice, company_info,
|
|
|
- cert_img1, cert_img2, reg_agree, trade_agree, site_color, `describe`, open_notice, trader_notice
|
|
|
+ cert_img1, cert_img2, reg_agree, trade_agree, site_color, `describe`, open_notice, trader_notice,
|
|
|
+ site_email_password , site_email_host , site_email_protocol , site_email_subject
|
|
|
</sql>
|
|
|
+
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from site_info
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectOne" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from site_info
|
|
|
+ order by id DESC limit 1
|
|
|
+ </select>
|
|
|
+
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from site_info
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
+
|
|
|
<insert id="insert" parameterType="com.xc.pojo.SiteInfo" >
|
|
|
insert into site_info (id, site_name, site_host, site_keywords,
|
|
|
site_description, site_logo, site_logo_sm,
|
|
@@ -71,169 +86,6 @@
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
- <insert id="insertSelective" parameterType="com.xc.pojo.SiteInfo" >
|
|
|
- insert into site_info
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id != null" >
|
|
|
- id,
|
|
|
- </if>
|
|
|
- <if test="siteName != null" >
|
|
|
- site_name,
|
|
|
- </if>
|
|
|
- <if test="siteHost != null" >
|
|
|
- site_host,
|
|
|
- </if>
|
|
|
- <if test="siteKeywords != null" >
|
|
|
- site_keywords,
|
|
|
- </if>
|
|
|
- <if test="siteDescription != null" >
|
|
|
- site_description,
|
|
|
- </if>
|
|
|
- <if test="siteLogo != null" >
|
|
|
- site_logo,
|
|
|
- </if>
|
|
|
- <if test="siteLogoSm != null" >
|
|
|
- site_logo_sm,
|
|
|
- </if>
|
|
|
- <if test="siteQq != null" >
|
|
|
- site_qq,
|
|
|
- </if>
|
|
|
- <if test="sitePhone != null" >
|
|
|
- site_phone,
|
|
|
- </if>
|
|
|
- <if test="siteAndroidImg != null" >
|
|
|
- site_android_img,
|
|
|
- </if>
|
|
|
- <if test="siteAndroidUrl != null" >
|
|
|
- site_android_url,
|
|
|
- </if>
|
|
|
- <if test="siteIosImg != null" >
|
|
|
- site_ios_img,
|
|
|
- </if>
|
|
|
- <if test="siteIosUrl != null" >
|
|
|
- site_ios_url,
|
|
|
- </if>
|
|
|
- <if test="siteEmailFrom != null" >
|
|
|
- site_email_from,
|
|
|
- </if>
|
|
|
- <if test="siteEmailTo != null" >
|
|
|
- site_email_to,
|
|
|
- </if>
|
|
|
- <if test="siteLanguage != null" >
|
|
|
- site_language,
|
|
|
- </if>
|
|
|
- <if test="siteVersionInfo != null" >
|
|
|
- site_version_info,
|
|
|
- </if>
|
|
|
-
|
|
|
- <if test="siteIntro != null" >
|
|
|
- site_intro,
|
|
|
- </if>
|
|
|
- <if test="riskNotice != null" >
|
|
|
- risk_notice,
|
|
|
- </if>
|
|
|
- <if test="companyInfo != null" >
|
|
|
- company_info,
|
|
|
- </if>
|
|
|
- <if test="certImg1 != null" >
|
|
|
- cert_img1,
|
|
|
- </if>
|
|
|
- <if test="certImg2 != null" >
|
|
|
- cert_img2,
|
|
|
- </if>
|
|
|
-
|
|
|
- <if test="regAgree != null" >
|
|
|
- reg_agree,
|
|
|
- </if>
|
|
|
- <if test="tradeAgree != null" >
|
|
|
- trade_agree,
|
|
|
- </if>
|
|
|
- <if test="siteColor != null" >
|
|
|
- site_color
|
|
|
- </if>
|
|
|
-
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id != null" >
|
|
|
- #{id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="siteName != null" >
|
|
|
- #{siteName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteHost != null" >
|
|
|
- #{siteHost,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteKeywords != null" >
|
|
|
- #{siteKeywords,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteDescription != null" >
|
|
|
- #{siteDescription,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteLogo != null" >
|
|
|
- #{siteLogo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteLogoSm != null" >
|
|
|
- #{siteLogoSm,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteQq != null" >
|
|
|
- #{siteQq,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="sitePhone != null" >
|
|
|
- #{sitePhone,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteAndroidImg != null" >
|
|
|
- #{siteAndroidImg,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteAndroidUrl != null" >
|
|
|
- #{siteAndroidUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteIosImg != null" >
|
|
|
- #{siteIosImg,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteIosUrl != null" >
|
|
|
- #{siteIosUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteEmailFrom != null" >
|
|
|
- #{siteEmailFrom,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteEmailTo != null" >
|
|
|
- #{siteEmailTo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteLanguage != null" >
|
|
|
- #{siteLanguage,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteVersionInfo != null" >
|
|
|
- #{siteVersionInfo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
-
|
|
|
- <if test="siteIntro != null" >
|
|
|
- #{siteIntro,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="riskNotice != null" >
|
|
|
- #{riskNotice,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="companyInfo != null" >
|
|
|
- #{companyInfo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="certImg1 != null" >
|
|
|
- #{certImg1,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="certImg2 != null" >
|
|
|
- #{certImg2,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
-
|
|
|
- <if test="regAgree != null" >
|
|
|
- #{regAgree,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="tradeAgree != null" >
|
|
|
- #{tradeAgree,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="siteColor != null" >
|
|
|
- #{siteColor,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
-
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.xc.pojo.SiteInfo" >
|
|
|
update site_info
|
|
|
<set >
|
|
@@ -285,7 +137,6 @@
|
|
|
<if test="siteVersionInfo != null" >
|
|
|
site_version_info = #{siteVersionInfo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
<if test="siteIntro != null" >
|
|
|
site_intro = #{siteIntro,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -301,7 +152,6 @@
|
|
|
<if test="certImg2 != null" >
|
|
|
cert_img2 = #{certImg2,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
-
|
|
|
<if test="regAgree != null" >
|
|
|
reg_agree = #{regAgree,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -318,41 +168,25 @@
|
|
|
open_notice = #{openNotice,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="traderNotice != null" >
|
|
|
- trader_notice = #{traderNotice,jdbcType=VARCHAR}
|
|
|
+ trader_notice = #{traderNotice,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="siteEmailPassword != null" >
|
|
|
+ site_email_password = #{siteEmailPassword,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="siteEmailHost != null" >
|
|
|
+ site_email_host = #{siteEmailHost,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="siteEmailProtocol != null" >
|
|
|
+ site_email_protocol = #{siteEmailProtocol,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="siteEmailSubject != null" >
|
|
|
+ site_email_subject = #{siteEmailSubject,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.xc.pojo.SiteInfo" >
|
|
|
- update site_info
|
|
|
- set site_name = #{siteName,jdbcType=VARCHAR},
|
|
|
- site_host = #{siteHost,jdbcType=VARCHAR},
|
|
|
- site_keywords = #{siteKeywords,jdbcType=VARCHAR},
|
|
|
- site_description = #{siteDescription,jdbcType=VARCHAR},
|
|
|
- site_logo = #{siteLogo,jdbcType=VARCHAR},
|
|
|
- site_logo_sm = #{siteLogoSm,jdbcType=VARCHAR},
|
|
|
- site_qq = #{siteQq,jdbcType=VARCHAR},
|
|
|
- site_phone = #{sitePhone,jdbcType=VARCHAR},
|
|
|
- site_android_img = #{siteAndroidImg,jdbcType=VARCHAR},
|
|
|
- site_android_url = #{siteAndroidUrl,jdbcType=VARCHAR},
|
|
|
- site_ios_img = #{siteIosImg,jdbcType=VARCHAR},
|
|
|
- site_ios_url = #{siteIosUrl,jdbcType=VARCHAR},
|
|
|
- site_email_from = #{siteEmailFrom,jdbcType=VARCHAR},
|
|
|
- site_email_to = #{siteEmailTo,jdbcType=VARCHAR},
|
|
|
- site_language = #{siteLanguage,jdbcType=VARCHAR},
|
|
|
- site_version_info = #{siteVersionInfo,jdbcType=VARCHAR},
|
|
|
|
|
|
- site_intro = #{siteIntro,jdbcType=VARCHAR},
|
|
|
- risk_notice = #{riskNotice,jdbcType=VARCHAR},
|
|
|
- company_info = #{companyInfo,jdbcType=VARCHAR},
|
|
|
- cert_img1 = #{certImg1,jdbcType=VARCHAR},
|
|
|
- cert_img2 = #{certImg2,jdbcType=VARCHAR},
|
|
|
|
|
|
- reg_agree = #{regAgree,jdbcType=VARCHAR},
|
|
|
- trade_agree = #{tradeAgree,jdbcType=VARCHAR},
|
|
|
- site_color = #{siteColor,jdbcType=VARCHAR}
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
|
|
|
<select id="findAll" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -360,4 +194,4 @@
|
|
|
from site_info
|
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|