Authored by wangnan

fix

... ... @@ -3,8 +3,8 @@
<mapper namespace="com.yoho.search.dal.TblSiteMapper" >
<resultMap id="BaseResultMap" type="com.yoho.search.dal.model.TblSite" >
<id column="siteId" property="siteId" jdbcType="INTEGER" />
<result column="siteName" property="sitename" jdbcType="VARCHAR" />
<result column="siteUrl" property="siteurl" jdbcType="VARCHAR" />
<result column="siteName" property="siteName" jdbcType="VARCHAR" />
<result column="siteUrl" property="siteUrl" jdbcType="VARCHAR" />
<result column="logo" property="logo" jdbcType="VARCHAR" />
<result column="desc" property="desc" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="CHAR" />
... ... @@ -28,7 +28,7 @@
insert into tbl_site (siteId, siteName, siteUrl,
logo, `desc`, status, create_time,
update_time)
values (#{siteId,jdbcType=INTEGER}, #{sitename,jdbcType=VARCHAR}, #{siteurl,jdbcType=VARCHAR},
values (#{siteId,jdbcType=INTEGER}, #{siteName,jdbcType=VARCHAR}, #{siteUrl,jdbcType=VARCHAR},
#{logo,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{createTime,jdbcType=INTEGER},
#{updateTime,jdbcType=INTEGER})
</insert>
... ... @@ -38,10 +38,10 @@
<if test="siteId != null" >
siteId,
</if>
<if test="sitename != null" >
<if test="siteName != null" >
siteName,
</if>
<if test="siteurl != null" >
<if test="siteUrl != null" >
siteUrl,
</if>
<if test="logo != null" >
... ... @@ -64,11 +64,11 @@
<if test="siteId != null" >
#{siteId,jdbcType=INTEGER},
</if>
<if test="sitename != null" >
#{sitename,jdbcType=VARCHAR},
<if test="siteName != null" >
#{siteName,jdbcType=VARCHAR},
</if>
<if test="siteurl != null" >
#{siteurl,jdbcType=VARCHAR},
<if test="siteUrl != null" >
#{siteUrl,jdbcType=VARCHAR},
</if>
<if test="logo != null" >
#{logo,jdbcType=VARCHAR},
... ... @@ -90,11 +90,11 @@
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.TblSite" >
update tbl_site
<set >
<if test="sitename != null" >
siteName = #{sitename,jdbcType=VARCHAR},
<if test="siteName != null" >
siteName = #{siteName,jdbcType=VARCHAR},
</if>
<if test="siteurl != null" >
siteUrl = #{siteurl,jdbcType=VARCHAR},
<if test="siteUrl != null" >
siteUrl = #{siteUrl,jdbcType=VARCHAR},
</if>
<if test="logo != null" >
logo = #{logo,jdbcType=VARCHAR},
... ... @@ -116,8 +116,8 @@
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.TblSite" >
update tbl_site
set siteName = #{sitename,jdbcType=VARCHAR},
siteUrl = #{siteurl,jdbcType=VARCHAR},
set siteName = #{siteName,jdbcType=VARCHAR},
siteUrl = #{siteUrl,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
status = #{status,jdbcType=CHAR},
... ...