首页管理接口添加

This commit is contained in:
zhh
2018-11-07 16:52:00 +08:00
parent 8ef1fcc93d
commit 0659f26e62
15 changed files with 1221 additions and 526 deletions

View File

@@ -13,6 +13,7 @@
<result column="order_count" jdbcType="INTEGER" property="orderCount" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="note" jdbcType="VARCHAR" property="note" />
<result column="sort" jdbcType="INTEGER" property="sort" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@@ -74,7 +75,7 @@
</sql>
<sql id="Base_Column_List">
id, name, type, pic, start_time, end_time, status, click_count, order_count, url,
note
note, sort
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultMap="BaseResultMap">
select
@@ -113,11 +114,11 @@
insert into sms_home_advertise (name, type, pic,
start_time, end_time, status,
click_count, order_count, url,
note)
note, sort)
values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
#{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
#{note,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.SmsHomeAdvertise">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
@@ -155,6 +156,9 @@
<if test="note != null">
note,
</if>
<if test="sort != null">
sort,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
@@ -187,6 +191,9 @@
<if test="note != null">
#{note,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.SmsHomeAdvertiseExample" resultType="java.lang.Integer">
@@ -231,6 +238,9 @@
<if test="record.note != null">
note = #{record.note,jdbcType=VARCHAR},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@@ -248,7 +258,8 @@
click_count = #{record.clickCount,jdbcType=INTEGER},
order_count = #{record.orderCount,jdbcType=INTEGER},
url = #{record.url,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
note = #{record.note,jdbcType=VARCHAR},
sort = #{record.sort,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@@ -286,6 +297,9 @@
<if test="note != null">
note = #{note,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
@@ -300,7 +314,8 @@
click_count = #{clickCount,jdbcType=INTEGER},
order_count = #{orderCount,jdbcType=INTEGER},
url = #{url,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
note = #{note,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>