提交 73b49f78 authored 作者: 吴德鹏's avatar 吴德鹏

海报临时更改

上级 191d8281
...@@ -49,6 +49,8 @@ public class TbCfPostersEntity implements Serializable { ...@@ -49,6 +49,8 @@ public class TbCfPostersEntity implements Serializable {
* 创建时间 * 创建时间
*/ */
private Date createTime; private Date createTime;
private String link;
/** /**
* 更新时间 * 更新时间
*/ */
...@@ -67,6 +69,7 @@ public class TbCfPostersEntity implements Serializable { ...@@ -67,6 +69,7 @@ public class TbCfPostersEntity implements Serializable {
public String getId() { public String getId() {
return id; return id;
} }
/** /**
* 设置:标题 * 设置:标题
*/ */
...@@ -184,4 +187,12 @@ public class TbCfPostersEntity implements Serializable { ...@@ -184,4 +187,12 @@ public class TbCfPostersEntity implements Serializable {
public Date getUpdateTime() { public Date getUpdateTime() {
return updateTime; return updateTime;
} }
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
} }
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
<result property="remark" column="remark"/> <result property="remark" column="remark"/>
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="link" column="link"/>
</resultMap> </resultMap>
<select id="queryObject" resultType="com.platform.entity.TbCfPostersEntity"> <select id="queryObject" resultType="com.platform.entity.TbCfPostersEntity">
select select
`id`, `id`,
`posters_title`, `posters_title`,
...@@ -32,45 +33,46 @@ ...@@ -32,45 +33,46 @@
where id = #{id} where id = #{id}
</select> </select>
<select id="queryList" resultType="com.platform.entity.TbCfPostersEntity"> <select id="queryList" resultType="com.platform.entity.TbCfPostersEntity">
select select
`id`, `id`,
`posters_title`, `posters_title`,
`posters_type`, `posters_type`,
`posters_picture`, `posters_picture`,
`sort`, `sort`,
`is_show`, `is_show`,
`redirect_url`, `redirect_url`,
`remark`, `remark`,
`create_time`, `create_time`,
`update_time` `update_time`,
from tb_cf_posters link
WHERE 1=1 from tb_cf_posters
<if test="name != null and name.trim() != ''"> WHERE 1=1
AND name LIKE concat('%',#{name},'%') <if test="name != null and name.trim() != ''">
</if> AND name LIKE concat('%',#{name},'%')
</if>
<choose> <choose>
<when test="sidx != null and sidx.trim() != ''"> <when test="sidx != null and sidx.trim() != ''">
order by ${sidx} ${order} order by ${sidx} ${order}
</when> </when>
<otherwise> <otherwise>
order by sort order by sort
</otherwise> </otherwise>
</choose> </choose>
<if test="offset != null and limit != null"> <if test="offset != null and limit != null">
limit #{offset}, #{limit} limit #{offset}, #{limit}
</if> </if>
</select> </select>
<select id="queryTotal" resultType="int"> <select id="queryTotal" resultType="int">
select count(*) from tb_cf_posters select count(*) from tb_cf_posters
WHERE 1=1 WHERE 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
AND name LIKE concat('%',#{name},'%') AND name LIKE concat('%',#{name},'%')
</if> </if>
</select> </select>
<insert id="save" parameterType="com.platform.entity.TbCfPostersEntity"> <insert id="save" parameterType="com.platform.entity.TbCfPostersEntity">
insert into tb_cf_posters( insert into tb_cf_posters(
`id`, `id`,
`posters_title`, `posters_title`,
...@@ -79,6 +81,7 @@ ...@@ -79,6 +81,7 @@
`sort`, `sort`,
`is_show`, `is_show`,
`redirect_url`, `redirect_url`,
link
`remark`, `remark`,
`create_time`, `create_time`,
`update_time`) `update_time`)
...@@ -90,36 +93,38 @@ ...@@ -90,36 +93,38 @@
#{sort}, #{sort},
#{isShow}, #{isShow},
#{redirectUrl}, #{redirectUrl},
#{link},
#{remark}, #{remark},
#{createTime}, #{createTime},
#{updateTime}) #{updateTime})
</insert> </insert>
<update id="update" parameterType="com.platform.entity.TbCfPostersEntity"> <update id="update" parameterType="com.platform.entity.TbCfPostersEntity">
update tb_cf_posters update tb_cf_posters
<set> <set>
<if test="postersTitle != null">`posters_title` = #{postersTitle}, </if> <if test="postersTitle != null">`posters_title` = #{postersTitle},</if>
<if test="postersType != null">`posters_type` = #{postersType}, </if> <if test="postersType != null">`posters_type` = #{postersType},</if>
<if test="postersPicture != null">`posters_picture` = #{postersPicture}, </if> <if test="postersPicture != null">`posters_picture` = #{postersPicture},</if>
<if test="sort != null">`sort` = #{sort}, </if> <if test="sort != null">`sort` = #{sort},</if>
<if test="isShow != null">`is_show` = #{isShow}, </if> <if test="isShow != null">`is_show` = #{isShow},</if>
<if test="redirectUrl != null">`redirect_url` = #{redirectUrl}, </if> <if test="redirectUrl != null">`redirect_url` = #{redirectUrl},</if>
<if test="remark != null">`remark` = #{remark}, </if> <if test="link != null">`link` = #{link}</if>
<if test="createTime != null">`create_time` = #{createTime}, </if> <if test="remark != null">`remark` = #{remark},</if>
<if test="updateTime != null">`update_time` = #{updateTime}</if> <if test="createTime != null">`create_time` = #{createTime},</if>
</set> <if test="updateTime != null">`update_time` = #{updateTime}</if>
where id = #{id} </set>
</update> where id = #{id}
</update>
<delete id="delete">
<delete id="delete">
delete from tb_cf_posters where id = #{value} delete from tb_cf_posters where id = #{value}
</delete> </delete>
<delete id="deleteBatch">
delete from tb_cf_posters where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper> <delete id="deleteBatch">
\ No newline at end of file delete from tb_cf_posters where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论