|
|
@@ -13,15 +13,20 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
import org.springframework.web.servlet.view.RedirectView;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.goafanti.achievement.bo.AchievementPartnerListBo;
|
|
|
import com.goafanti.achievement.service.AchievementService;
|
|
|
+import com.goafanti.business.bo.JtBusinessProjectResult;
|
|
|
import com.goafanti.business.service.JtBusinessService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.enums.AchievementMaturity;
|
|
|
+import com.goafanti.common.model.JtBusinessProject;
|
|
|
+import com.goafanti.common.model.JtVoucher;
|
|
|
import com.goafanti.common.model.UserInterest;
|
|
|
import com.goafanti.common.service.DistrictGlossoryService;
|
|
|
import com.goafanti.common.service.FieldGlossoryService;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
+import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.demand.service.DemandInterestService;
|
|
|
import com.goafanti.demand.service.DemandService;
|
|
|
@@ -30,6 +35,8 @@ import com.goafanti.user.bo.UserPartnerDetailBo;
|
|
|
import com.goafanti.user.service.UserIdentityService;
|
|
|
import com.goafanti.user.service.UserInterestService;
|
|
|
import com.goafanti.user.service.UserService;
|
|
|
+import com.goafanti.voucher.bo.JtVoucherListBo;
|
|
|
+import com.goafanti.voucher.service.VoucherService;
|
|
|
|
|
|
@Controller
|
|
|
public class PortalController extends BaseController {
|
|
|
@@ -50,11 +57,13 @@ public class PortalController extends BaseController {
|
|
|
@Resource
|
|
|
private DistrictGlossoryService districtglossoryservice;
|
|
|
@Resource
|
|
|
- OrderService orderService;
|
|
|
+ private OrderService orderService;
|
|
|
@Resource
|
|
|
- UserInterestService userInterestService;
|
|
|
+ private UserInterestService userInterestService;
|
|
|
@Resource
|
|
|
- JtBusinessService jtBusinessService;
|
|
|
+ private JtBusinessService jtBusinessService;
|
|
|
+ @Resource
|
|
|
+ private VoucherService voucherService;
|
|
|
|
|
|
@RequestMapping(value = "/index", method = RequestMethod.GET)
|
|
|
public ModelAndView index(HttpServletRequest request, ModelAndView modelview) {
|
|
|
@@ -152,5 +161,29 @@ public class PortalController extends BaseController {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ @RequestMapping(value="/portal/invRegister",method = RequestMethod.GET)
|
|
|
+ public ModelAndView portalActivityDetails(ModelAndView modelAndView){
|
|
|
+ modelAndView.setViewName("/portal/invRegister");
|
|
|
+ //随机项目抵用券
|
|
|
+ List<JtVoucherListBo> list=voucherService.selectVoucherByClassify( null,null, 4);
|
|
|
+ for (JtVoucherListBo j : list) {
|
|
|
+ System.out.println(j.getMoney());
|
|
|
+ }
|
|
|
+ modelAndView.addObject("vouchers",list);
|
|
|
+ //高企服务
|
|
|
+ modelAndView.addObject( "gqfw",jtBusinessService.getKJListByIds(2, 0, 2));
|
|
|
+ //随机热门项目
|
|
|
+ Pagination<JtBusinessProjectResult> p=jtBusinessService.getProjects(null,null,null,null, 3,1,null,2,null,1,null,null,null);
|
|
|
+ modelAndView.addObject("hotProject", (List<JtBusinessProjectResult>) p.getList());
|
|
|
+ //军民融合
|
|
|
+ modelAndView.addObject( "jmrh",jtBusinessService.getKJListByIds(3, 0, 3));
|
|
|
+ //知识产权
|
|
|
+ modelAndView.addObject( "zscq",jtBusinessService.getKJListByIds(1, 0, 3));
|
|
|
+ //政府扶持
|
|
|
+ modelAndView.addObject( "zffc",jtBusinessService.getProjectByTag("政府扶持", 4));
|
|
|
+
|
|
|
+
|
|
|
+ return modelAndView;
|
|
|
}
|
|
|
+}
|