|
@@ -8,6 +8,8 @@
|
|
|
|
|
|
package com.zskk.shop.controller.h5;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
@@ -15,7 +17,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import com.zskk.shop.controller.AbstractController;
|
|
|
import com.zskk.shop.controller.bean.UserInfoBean;
|
|
|
+import com.zskk.shop.dao.entry.FAQ;
|
|
|
import com.zskk.shop.service.BuyOrderService;
|
|
|
+import com.zskk.shop.service.FAQService;
|
|
|
import com.zskk.shop.service.FamilyPeopleService;
|
|
|
|
|
|
@Controller
|
|
@@ -27,6 +31,9 @@ public class MyController extends AbstractController {
|
|
|
|
|
|
@Autowired
|
|
|
private FamilyPeopleService familyPeopleService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FAQService faqService;
|
|
|
|
|
|
@RequestMapping("/index")
|
|
|
public String index(Model model){
|
|
@@ -39,5 +46,14 @@ public class MyController extends AbstractController {
|
|
|
return "/h5/my";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ @RequestMapping("/questions")
|
|
|
+ public String questions(Model model){
|
|
|
+ List<FAQ> faqs = faqService.queryAll(FAQService.STATUS_ONLINE, 1, 1000);
|
|
|
+ for (int i = 0; i < faqs.size(); ++i){
|
|
|
+ faqs.get(i).setId(i + 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ model.addAttribute("faqs", faqs);
|
|
|
+ return "/h5/question";
|
|
|
+ }
|
|
|
}
|