anderx пре 4 година
родитељ
комит
a99f20a889

+ 1 - 1
GeneratorConfig.xml

@@ -43,7 +43,7 @@
     <property name="enableSubPackages" value="false"/>
      <property name="nullCatalogMeansCurrent" value="true"/>
     </javaClientGenerator>
-    <table schema="aft_ow" tableName="activity"   enableCountByExample="false"
+    <table schema="aft_ow" tableName="banner_details"   enableCountByExample="false"
                enableUpdateByExample="false"
                enableDeleteByExample="false"
                enableSelectByExample="false"

+ 4 - 0
src/main/java/com/kede/banners/bo/InputBannerDetails.java

@@ -3,6 +3,10 @@ package com.kede.banners.bo;
 import com.kede.common.model.BannerDetails;
 
 public class InputBannerDetails extends BannerDetails {
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
 	public InputBannerDetails() {};
 	/**
 	 * 

+ 4 - 0
src/main/java/com/kede/banners/bo/OutBannerDetails.java

@@ -3,6 +3,10 @@ package com.kede.banners.bo;
 import com.kede.common.model.BannerDetails;
 
 public class OutBannerDetails extends BannerDetails {
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
 	private String createTimeConvert;
 
 	public String getCreateTimeConvert() {

+ 7 - 38
src/main/java/com/kede/common/dao/BannerDetailsMapper.java

@@ -10,70 +10,39 @@ public interface BannerDetailsMapper {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
-	 */
-	long countByExample(BannerDetailsExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
-	 */
-	int deleteByExample(BannerDetailsExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	int deleteByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	int insert(BannerDetails record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	int insertSelective(BannerDetails record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
-	 */
-	List<BannerDetails> selectByExample(BannerDetailsExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	BannerDetails selectByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
-	 */
-	int updateByExampleSelective(@Param("record") BannerDetails record, @Param("example") BannerDetailsExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
-	 */
-	int updateByExample(@Param("record") BannerDetails record, @Param("example") BannerDetailsExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	int updateByPrimaryKeySelective(BannerDetails record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	int updateByPrimaryKey(BannerDetails record);
-	
-	
+
 	OutBannerDetails selectByid(Integer id);
 }

+ 32 - 180
src/main/java/com/kede/common/mapper/BannerDetailsMapper.xml

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="banner_url" jdbcType="VARCHAR" property="bannerUrl" />
@@ -14,107 +14,21 @@
     <result column="display" jdbcType="INTEGER" property="display" />
     <result column="position" jdbcType="INTEGER" property="position" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="jump_url" jdbcType="VARCHAR" property="jumpUrl" />
   </resultMap>
-  <sql id="Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    <where>
-      <foreach collection="oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Update_By_Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    <where>
-      <foreach collection="example.oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
   <sql id="Base_Column_List">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
-    id, banner_url, title, sort, display, position, create_time
+    id, banner_url, title, sort, display, `position`, create_time, jump_url
   </sql>
-  <select id="selectByExample" parameterType="com.kede.common.model.BannerDetailsExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from banner_details
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-  </select>
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -125,40 +39,29 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     delete from banner_details
     where id = #{id,jdbcType=INTEGER}
   </delete>
-  <delete id="deleteByExample" parameterType="com.kede.common.model.BannerDetailsExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    delete from banner_details
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
   <insert id="insert" parameterType="com.kede.common.model.BannerDetails">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     insert into banner_details (id, banner_url, title, 
-      sort, display, position, 
-      create_time)
+      sort, display, `position`, 
+      create_time, jump_url)
     values (#{id,jdbcType=INTEGER}, #{bannerUrl,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
       #{sort,jdbcType=INTEGER}, #{display,jdbcType=INTEGER}, #{position,jdbcType=INTEGER}, 
-      #{createTime,jdbcType=TIMESTAMP})
+      #{createTime,jdbcType=TIMESTAMP}, #{jumpUrl,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.kede.common.model.BannerDetails">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     insert into banner_details
     <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -178,11 +81,14 @@
         display,
       </if>
       <if test="position != null">
-        position,
+        `position`,
       </if>
       <if test="createTime != null">
         create_time,
       </if>
+      <if test="jumpUrl != null">
+        jump_url,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -206,76 +112,16 @@
       <if test="createTime != null">
         #{createTime,jdbcType=TIMESTAMP},
       </if>
+      <if test="jumpUrl != null">
+        #{jumpUrl,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
-  <select id="countByExample" parameterType="com.kede.common.model.BannerDetailsExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    select count(*) from banner_details
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </select>
-  <update id="updateByExampleSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    update banner_details
-    <set>
-      <if test="record.id != null">
-        id = #{record.id,jdbcType=INTEGER},
-      </if>
-      <if test="record.bannerUrl != null">
-        banner_url = #{record.bannerUrl,jdbcType=VARCHAR},
-      </if>
-      <if test="record.title != null">
-        title = #{record.title,jdbcType=VARCHAR},
-      </if>
-      <if test="record.sort != null">
-        sort = #{record.sort,jdbcType=INTEGER},
-      </if>
-      <if test="record.display != null">
-        display = #{record.display,jdbcType=INTEGER},
-      </if>
-      <if test="record.position != null">
-        position = #{record.position,jdbcType=INTEGER},
-      </if>
-      <if test="record.createTime != null">
-        create_time = #{record.createTime,jdbcType=TIMESTAMP},
-      </if>
-    </set>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExample" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
-    -->
-    update banner_details
-    set id = #{record.id,jdbcType=INTEGER},
-      banner_url = #{record.bannerUrl,jdbcType=VARCHAR},
-      title = #{record.title,jdbcType=VARCHAR},
-      sort = #{record.sort,jdbcType=INTEGER},
-      display = #{record.display,jdbcType=INTEGER},
-      position = #{record.position,jdbcType=INTEGER},
-      create_time = #{record.createTime,jdbcType=TIMESTAMP}
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.kede.common.model.BannerDetails">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     update banner_details
     <set>
@@ -292,11 +138,14 @@
         display = #{display,jdbcType=INTEGER},
       </if>
       <if test="position != null">
-        position = #{position,jdbcType=INTEGER},
+        `position` = #{position,jdbcType=INTEGER},
       </if>
       <if test="createTime != null">
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
+      <if test="jumpUrl != null">
+        jump_url = #{jumpUrl,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
@@ -304,25 +153,28 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Dec 25 14:10:15 CST 2019.
+      This element was generated on Tue Mar 23 10:03:29 CST 2021.
     -->
     update banner_details
     set banner_url = #{bannerUrl,jdbcType=VARCHAR},
       title = #{title,jdbcType=VARCHAR},
       sort = #{sort,jdbcType=INTEGER},
       display = #{display,jdbcType=INTEGER},
-      position = #{position,jdbcType=INTEGER},
-      create_time = #{createTime,jdbcType=TIMESTAMP}
+      `position` = #{position,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      jump_url = #{jumpUrl,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
   
-  <select id="selectByid" parameterType="java.lang.Integer" resultType="com.kede.banners.bo.OutBannerDetails" >
-  	select id, banner_url bannerUrl, title, sort, display, position, date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert
+  <select id="selectByid" parameterType="java.lang.Integer" resultType="com.kede.banners.bo.OutBannerDetails">
+  	select id, banner_url bannerUrl, title, sort, display, position,jump_url jumpUrl,
+  	date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert
     from banner_details where id = #{id,jdbcType=INTEGER}
     </select>
     
     <select id="findBannersList" resultType="com.kede.banners.bo.OutBannerDetails">
-    select id, banner_url bannerUrl, title, sort, display, position, date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert 
+    select id, banner_url bannerUrl, title, sort, display, position,jump_url jumpUrl,
+    date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert 
     from banner_details where 1=1
     <if test="b.id!=null">
     and id = #{b.id}

+ 2 - 2
src/main/java/com/kede/common/mapper/CustomerCaseMapper.xml

@@ -380,7 +380,7 @@
     and id = #{c.id}
     </if>
     <if test="c.name!=null">
-    and name = #{c.name}
+    and name like  concat ('%',#{c.name},'%')
     </if>
     <if test="c.releaseStatus!=null">
     and release_status = #{c.releaseStatus}
@@ -406,7 +406,7 @@
     and id = #{c.id}
     </if>
     <if test="c.name!=null">
-    and name = #{c.name}
+    and name like  concat ('%',#{c.name},'%')
     </if>
     <if test="c.releaseStatus!=null">
     and release_status = #{c.releaseStatus}

+ 76 - 24
src/main/java/com/kede/common/model/BannerDetails.java

@@ -1,49 +1,60 @@
 package com.kede.common.model;
 
 import java.util.Date;
+import java.io.Serializable;
 
-public class BannerDetails {
+public class BannerDetails implements Serializable {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.id
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private Integer id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.banner_url
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private String bannerUrl;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.title
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private String title;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.sort
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private Integer sort;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.display
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private Integer display;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.position
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private Integer position;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.create_time
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	private Date createTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column banner_details.jump_url
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
+	 */
+	private String jumpUrl;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database table banner_details
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
+	 */
+	private static final long serialVersionUID = 1L;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.id
 	 * @return  the value of banner_details.id
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public Integer getId() {
 		return id;
@@ -52,7 +63,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.id
 	 * @param id  the value for banner_details.id
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setId(Integer id) {
 		this.id = id;
@@ -61,7 +72,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.banner_url
 	 * @return  the value of banner_details.banner_url
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public String getBannerUrl() {
 		return bannerUrl;
@@ -70,16 +81,16 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.banner_url
 	 * @param bannerUrl  the value for banner_details.banner_url
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setBannerUrl(String bannerUrl) {
-		this.bannerUrl = bannerUrl;
+		this.bannerUrl = bannerUrl == null ? null : bannerUrl.trim();
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.title
 	 * @return  the value of banner_details.title
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public String getTitle() {
 		return title;
@@ -88,16 +99,16 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.title
 	 * @param title  the value for banner_details.title
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setTitle(String title) {
-		this.title = title;
+		this.title = title == null ? null : title.trim();
 	}
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.sort
 	 * @return  the value of banner_details.sort
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public Integer getSort() {
 		return sort;
@@ -106,7 +117,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.sort
 	 * @param sort  the value for banner_details.sort
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setSort(Integer sort) {
 		this.sort = sort;
@@ -115,7 +126,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.display
 	 * @return  the value of banner_details.display
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public Integer getDisplay() {
 		return display;
@@ -124,7 +135,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.display
 	 * @param display  the value for banner_details.display
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setDisplay(Integer display) {
 		this.display = display;
@@ -133,7 +144,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.position
 	 * @return  the value of banner_details.position
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public Integer getPosition() {
 		return position;
@@ -142,7 +153,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.position
 	 * @param position  the value for banner_details.position
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setPosition(Integer position) {
 		this.position = position;
@@ -151,7 +162,7 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.create_time
 	 * @return  the value of banner_details.create_time
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public Date getCreateTime() {
 		return createTime;
@@ -160,9 +171,50 @@ public class BannerDetails {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.create_time
 	 * @param createTime  the value for banner_details.create_time
-	 * @mbg.generated  Wed Dec 25 14:10:15 CST 2019
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
 	 */
 	public void setCreateTime(Date createTime) {
 		this.createTime = createTime;
 	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column banner_details.jump_url
+	 * @return  the value of banner_details.jump_url
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
+	 */
+	public String getJumpUrl() {
+		return jumpUrl;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column banner_details.jump_url
+	 * @param jumpUrl  the value for banner_details.jump_url
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
+	 */
+	public void setJumpUrl(String jumpUrl) {
+		this.jumpUrl = jumpUrl == null ? null : jumpUrl.trim();
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table banner_details
+	 * @mbg.generated  Tue Mar 23 10:03:29 CST 2021
+	 */
+	@Override
+	public String toString() {
+		StringBuilder sb = new StringBuilder();
+		sb.append(getClass().getSimpleName());
+		sb.append(" [");
+		sb.append("Hash = ").append(hashCode());
+		sb.append(", id=").append(id);
+		sb.append(", bannerUrl=").append(bannerUrl);
+		sb.append(", title=").append(title);
+		sb.append(", sort=").append(sort);
+		sb.append(", display=").append(display);
+		sb.append(", position=").append(position);
+		sb.append(", createTime=").append(createTime);
+		sb.append(", jumpUrl=").append(jumpUrl);
+		sb.append(", serialVersionUID=").append(serialVersionUID);
+		sb.append("]");
+		return sb.toString();
+	}
 }

+ 3 - 3
src/main/webapp/WEB-INF/views/portal/index.html

@@ -23,9 +23,9 @@
             <!-- 轮播图 -->
             <div class="swiper-container" id="swiper1">
                 <div class="swiper-wrapper" >
-                    <div  th:each="b,bStatus:${banners}" class="swiper-slide">
-                        <img th:src="|${avatarUploadHost}${b.bannerUrl}" />
-                    </div>
+                    <a   th:each="b,bStatus:${banners}"  th:href="${b.jumpUrl}" class="swiper-slide">
+                            <img th:title="${b.title}" th:src="|${avatarUploadHost}${b.bannerUrl}" />
+                    </a>
                    <!--  <div class="swiper-slide">
                         <img th:src="${portalHost+'/images/banner/bg02.png'}" />
                     </div> -->