Просмотр исходного кода

首页

Signed-off-by: anderx <312518615@qq.com>
anderx лет назад: 6
Родитель
Сommit
45fdab2239

+ 12 - 7
src/main/java/com/kede/common/controller/WebpageController.java

@@ -12,22 +12,27 @@ import org.springframework.web.servlet.ModelAndView;
 @Controller
 public class WebpageController extends BaseController {
 
-	
-	
-
-
 	@RequestMapping(value = "/admin/login", method = RequestMethod.GET)
 	public ModelAndView adminLogin(HttpServletRequest request, ModelAndView modelview) {
-		modelview.setViewName("admin/login");
+		modelview.setViewName("/admin/login");
 		return modelview;
 	}
-
 	
 	@RequestMapping(value = "/admin/index", method = RequestMethod.GET)
 	public ModelAndView adminHome(HttpServletRequest request, ModelAndView modelview) {
 		modelview.setViewName("/admin/index");
 		return modelview;
 	}
-
+	
+	@RequestMapping(value = "/", method = RequestMethod.GET)
+	public ModelAndView index(HttpServletRequest request, ModelAndView modelview) {
+		modelview.setViewName("/protal/index");
+		return modelview;
+	}
+	@RequestMapping(value = "/protal/index", method = RequestMethod.GET)
+	public ModelAndView protalIndex(HttpServletRequest request, ModelAndView modelview) {
+		modelview.setViewName("/protal/index");
+		return modelview;
+	}
 	
 }

+ 1 - 1
src/main/java/com/kede/common/mapper/NewsMapper.xml

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

+ 1 - 1
src/main/resources/props/config_local.properties

@@ -60,7 +60,7 @@ template.cacheable=false
 
 avatar.upload.host=//sb.jishutao.com/upload
 #连接开å
-portal.host=//sb.jishutao.com/portal/2.0.6�‘
+portal.host=//sportal.jishutao.com/portal/2.0.6�‘
 static.host=//sb.jishutao.com/client/1.0.4
 avatar.host=//sb.jishutao.com
 

Разница между файлами не показана из-за своего большого размера
+ 195 - 0
src/main/webapp/WEB-INF/views/portal/index.html