|
|
@@ -400,6 +400,48 @@ public class WebpageController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
+ * 服务详情2
|
|
|
+ *
|
|
|
+ * @param id String
|
|
|
+ * */
|
|
|
+ @RequestMapping(value = "/portal/service/patentDetail", method = RequestMethod.GET)
|
|
|
+ public ModelAndView portalServicePatentDetail(HttpServletRequest request, ModelAndView modelview,String id) {
|
|
|
+ modelview.setViewName("/portal/service/serviceDetails");
|
|
|
+ JtBusinessProject jtBusinessProject=jtBusinessService.getBusinessProjectDetail(id);
|
|
|
+ if(jtBusinessProject!=null) {
|
|
|
+ if(jtBusinessProject.getMaxImgUrl()!=null && jtBusinessProject.getMaxImgUrl().length()<=0)jtBusinessProject.setMaxImgUrl(null);
|
|
|
+ }
|
|
|
+ if(jtBusinessProject.getCreateTime()!=null && 7>=differentDaysByMillisecond(jtBusinessProject.getCreateTime(),new Date())) {
|
|
|
+ modelview.addObject("newly",true);
|
|
|
+ }
|
|
|
+ else modelview.addObject("newly",false);
|
|
|
+ String owner="平台管理员";
|
|
|
+ if(jtBusinessProject.getOwnerId()!=null) {
|
|
|
+ User user=userService.selectByPrimaryKey(jtBusinessProject.getOwnerId());
|
|
|
+ if(user!=null && user.getIdentifyName()!=null) {
|
|
|
+ owner=user.getIdentifyName();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ modelview.addObject("owner",owner);
|
|
|
+ modelview.addObject("pj",jtBusinessProject);
|
|
|
+ System.out.println(jtBusinessProject.toString());
|
|
|
+ if(jtBusinessProject!=null) {
|
|
|
+ JtBusinessCategoryTree tree=jtBusinessService.getCategoryTree(jtBusinessProject.getCategoryId());
|
|
|
+ modelview.addObject("tree",tree);}
|
|
|
+ JtBusinessCategory jtBusinessCategory=jtBusinessService.getCategoryById(jtBusinessProject.getCategoryId());
|
|
|
+ if(jtBusinessCategory!=null && jtBusinessCategory.getModule()!=null)modelview.addObject("module",jtBusinessCategory.getModule());
|
|
|
+ else modelview.addObject("module",0);
|
|
|
+
|
|
|
+ //是否关注
|
|
|
+ if(StringUtils.isNotBlank(TokenManager.getUserId())) {
|
|
|
+ int projectInterest=projectInterestMapper.checkUidAndDid(id, TokenManager.getUserId());
|
|
|
+ if(projectInterest>0)modelview.addObject("interested",true);
|
|
|
+ }
|
|
|
+ return modelview;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@RequestMapping(value="/portal/service/serviceList",method=RequestMethod.GET)
|
|
|
public ModelAndView serviceList(HttpServletRequest request, ModelAndView modelview) {
|
|
|
modelview.setViewName("/portal/service/serviceList");
|