|
@@ -0,0 +1,43 @@
|
|
|
+/**
|
|
|
+* @版权信息 (@copyright Copyright 2017-XXXX JDJR.COM All Right Reserved);
|
|
|
+* @see
|
|
|
+* @author 于海涛 京东金融【技术研发部-证券及营销平台研发部-营销平台研发部】
|
|
|
+* @version 1.0
|
|
|
+* @date 2018年7月4日
|
|
|
+*/
|
|
|
+
|
|
|
+package com.zskk.shop.controller.h5;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.ui.Model;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+
|
|
|
+import com.zskk.shop.controller.AbstractController;
|
|
|
+import com.zskk.shop.controller.bean.UserInfoBean;
|
|
|
+import com.zskk.shop.service.BuyOrderService;
|
|
|
+import com.zskk.shop.service.FamilyPeopleService;
|
|
|
+
|
|
|
+@Controller
|
|
|
+@RequestMapping("/h5/my")
|
|
|
+public class MyController extends AbstractController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private BuyOrderService buyOrderService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FamilyPeopleService familyPeopleService;
|
|
|
+
|
|
|
+ @RequestMapping("/index")
|
|
|
+ public String index(Model model){
|
|
|
+ UserInfoBean user = this.getH5User();
|
|
|
+ String uid = user.getAccount().getUserid();
|
|
|
+ model.addAttribute("noPayOrderCount", buyOrderService.queryMyNoPayOrderCount(uid));
|
|
|
+ model.addAttribute("appointmentCount", familyPeopleService.queryAppointmentedCount(uid));
|
|
|
+ model.addAttribute("queryExportCount", familyPeopleService.queryExportCount(uid));
|
|
|
+ model.addAttribute("user", user);
|
|
|
+ return "/h5/my";
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|