Browse Source

首页修改

anderx 3 years ago
parent
commit
70dcfb6330

+ 7 - 7
src/main/java/com/kede/common/mapper/LinksMapper.xml

@@ -15,7 +15,7 @@
     id, sort, `status`, mutual_chain, `name`, url, remarks, create_time
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
-    select 
+    select
     <include refid="Base_Column_List" />
     from links
     where id = #{id,jdbcType=INTEGER}
@@ -25,11 +25,11 @@
     where id = #{id,jdbcType=INTEGER}
   </delete>
   <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.kede.common.model.Links" useGeneratedKeys="true">
-    insert into links (sort, `status`, mutual_chain, 
-      `name`, url, remarks, 
+    insert into links (sort, `status`, mutual_chain,
+      `name`, url, remarks,
       create_time)
-    values (#{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{mutualChain,jdbcType=INTEGER}, 
-      #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, 
+    values (#{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{mutualChain,jdbcType=INTEGER},
+      #{name,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR},
       #{createTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.kede.common.model.Links" useGeneratedKeys="true">
@@ -155,6 +155,6 @@
     </if>
   </select>
   <select id="getAll" resultType="com.kede.linksAndHot.bo.publicLinks">
-    select id,name,url from links where status =0
+    select id,name,url from links where status =0 order by sort desc
   </select>
-</mapper>
+</mapper>

+ 1 - 0
src/main/java/com/kede/linksAndHot/service/impl/PopularCitiesServiceImpl.java

@@ -61,6 +61,7 @@ public class PopularCitiesServiceImpl extends BaseMybatisDao<PopularCitiesMapper
         LoggerUtils.debug(logger, "热门城市缓存");
         Map<String,Object> param=new HashMap<>();
         param.put("status",0);
+        param.put("sortType",0);
         List<outPopularCitiesList> list=(List<outPopularCitiesList>) findList("popularCitiesList",param,1,9999);
         return list;
     }

+ 5 - 2
src/main/resources/props/config_local.properties

@@ -69,8 +69,11 @@ static.host=//kedejs.jishutao.com/client/1.0.6
 #static.host=//172.16.0.52/client/1.0.5
 #static.host=//172.16.0.255:3000/1.0.5
 
-avatar.host=//172.16.0.255:3000
-avatar.upload.host=//172.16.0.255:3000/upload
+#avatar.host=//172.16.0.255:3000
+#avatar.upload.host=//172.16.0.255:3000/upload
+
+avatar.host=//kedejs.jishutao.com
+avatar.upload.host=//kedejs.jishutao.com/upload