Showing
1 changed file
with
15 additions
and
15 deletions
@@ -3,8 +3,8 @@ | @@ -3,8 +3,8 @@ | ||
3 | <mapper namespace="com.yoho.search.dal.TblSiteMapper" > | 3 | <mapper namespace="com.yoho.search.dal.TblSiteMapper" > |
4 | <resultMap id="BaseResultMap" type="com.yoho.search.dal.model.TblSite" > | 4 | <resultMap id="BaseResultMap" type="com.yoho.search.dal.model.TblSite" > |
5 | <id column="siteId" property="siteId" jdbcType="INTEGER" /> | 5 | <id column="siteId" property="siteId" jdbcType="INTEGER" /> |
6 | - <result column="siteName" property="sitename" jdbcType="VARCHAR" /> | ||
7 | - <result column="siteUrl" property="siteurl" jdbcType="VARCHAR" /> | 6 | + <result column="siteName" property="siteName" jdbcType="VARCHAR" /> |
7 | + <result column="siteUrl" property="siteUrl" jdbcType="VARCHAR" /> | ||
8 | <result column="logo" property="logo" jdbcType="VARCHAR" /> | 8 | <result column="logo" property="logo" jdbcType="VARCHAR" /> |
9 | <result column="desc" property="desc" jdbcType="VARCHAR" /> | 9 | <result column="desc" property="desc" jdbcType="VARCHAR" /> |
10 | <result column="status" property="status" jdbcType="CHAR" /> | 10 | <result column="status" property="status" jdbcType="CHAR" /> |
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | insert into tbl_site (siteId, siteName, siteUrl, | 28 | insert into tbl_site (siteId, siteName, siteUrl, |
29 | logo, `desc`, status, create_time, | 29 | logo, `desc`, status, create_time, |
30 | update_time) | 30 | update_time) |
31 | - values (#{siteId,jdbcType=INTEGER}, #{sitename,jdbcType=VARCHAR}, #{siteurl,jdbcType=VARCHAR}, | 31 | + values (#{siteId,jdbcType=INTEGER}, #{siteName,jdbcType=VARCHAR}, #{siteUrl,jdbcType=VARCHAR}, |
32 | #{logo,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{createTime,jdbcType=INTEGER}, | 32 | #{logo,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{createTime,jdbcType=INTEGER}, |
33 | #{updateTime,jdbcType=INTEGER}) | 33 | #{updateTime,jdbcType=INTEGER}) |
34 | </insert> | 34 | </insert> |
@@ -38,10 +38,10 @@ | @@ -38,10 +38,10 @@ | ||
38 | <if test="siteId != null" > | 38 | <if test="siteId != null" > |
39 | siteId, | 39 | siteId, |
40 | </if> | 40 | </if> |
41 | - <if test="sitename != null" > | 41 | + <if test="siteName != null" > |
42 | siteName, | 42 | siteName, |
43 | </if> | 43 | </if> |
44 | - <if test="siteurl != null" > | 44 | + <if test="siteUrl != null" > |
45 | siteUrl, | 45 | siteUrl, |
46 | </if> | 46 | </if> |
47 | <if test="logo != null" > | 47 | <if test="logo != null" > |
@@ -64,11 +64,11 @@ | @@ -64,11 +64,11 @@ | ||
64 | <if test="siteId != null" > | 64 | <if test="siteId != null" > |
65 | #{siteId,jdbcType=INTEGER}, | 65 | #{siteId,jdbcType=INTEGER}, |
66 | </if> | 66 | </if> |
67 | - <if test="sitename != null" > | ||
68 | - #{sitename,jdbcType=VARCHAR}, | 67 | + <if test="siteName != null" > |
68 | + #{siteName,jdbcType=VARCHAR}, | ||
69 | </if> | 69 | </if> |
70 | - <if test="siteurl != null" > | ||
71 | - #{siteurl,jdbcType=VARCHAR}, | 70 | + <if test="siteUrl != null" > |
71 | + #{siteUrl,jdbcType=VARCHAR}, | ||
72 | </if> | 72 | </if> |
73 | <if test="logo != null" > | 73 | <if test="logo != null" > |
74 | #{logo,jdbcType=VARCHAR}, | 74 | #{logo,jdbcType=VARCHAR}, |
@@ -90,11 +90,11 @@ | @@ -90,11 +90,11 @@ | ||
90 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.TblSite" > | 90 | <update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.TblSite" > |
91 | update tbl_site | 91 | update tbl_site |
92 | <set > | 92 | <set > |
93 | - <if test="sitename != null" > | ||
94 | - siteName = #{sitename,jdbcType=VARCHAR}, | 93 | + <if test="siteName != null" > |
94 | + siteName = #{siteName,jdbcType=VARCHAR}, | ||
95 | </if> | 95 | </if> |
96 | - <if test="siteurl != null" > | ||
97 | - siteUrl = #{siteurl,jdbcType=VARCHAR}, | 96 | + <if test="siteUrl != null" > |
97 | + siteUrl = #{siteUrl,jdbcType=VARCHAR}, | ||
98 | </if> | 98 | </if> |
99 | <if test="logo != null" > | 99 | <if test="logo != null" > |
100 | logo = #{logo,jdbcType=VARCHAR}, | 100 | logo = #{logo,jdbcType=VARCHAR}, |
@@ -116,8 +116,8 @@ | @@ -116,8 +116,8 @@ | ||
116 | </update> | 116 | </update> |
117 | <update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.TblSite" > | 117 | <update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.TblSite" > |
118 | update tbl_site | 118 | update tbl_site |
119 | - set siteName = #{sitename,jdbcType=VARCHAR}, | ||
120 | - siteUrl = #{siteurl,jdbcType=VARCHAR}, | 119 | + set siteName = #{siteName,jdbcType=VARCHAR}, |
120 | + siteUrl = #{siteUrl,jdbcType=VARCHAR}, | ||
121 | logo = #{logo,jdbcType=VARCHAR}, | 121 | logo = #{logo,jdbcType=VARCHAR}, |
122 | `desc` = #{desc,jdbcType=VARCHAR}, | 122 | `desc` = #{desc,jdbcType=VARCHAR}, |
123 | status = #{status,jdbcType=CHAR}, | 123 | status = #{status,jdbcType=CHAR}, |
-
Please register or login to post a comment