浏览代码

项目详情页面

liliang4869 7 年之前
父节点
当前提交
45f8b768ab

+ 20 - 0
src/main/java/com/goafanti/business/bo/JtBusinessCategoryTree.java

@@ -0,0 +1,20 @@
+package com.goafanti.business.bo;
+
+public class JtBusinessCategoryTree {
+	String topLevel;
+	String secondLevel;
+	public String getTopLevel() {
+		return topLevel;
+	}
+	public void setTopLevel(String topLevel) {
+		this.topLevel = topLevel;
+	}
+	public String getSecondLevel() {
+		return secondLevel;
+	}
+	public void setSecondLevel(String secondLevel) {
+		this.secondLevel = secondLevel;
+	}
+	
+
+}

+ 3 - 0
src/main/java/com/goafanti/business/service/JtBusinessService.java

@@ -2,6 +2,7 @@ package com.goafanti.business.service;
 
 import java.util.List;
 
+import com.goafanti.business.bo.JtBusinessCategoryTree;
 import com.goafanti.common.model.JtBusinessCategory;
 import com.goafanti.common.model.JtBusinessProject;
 
@@ -9,4 +10,6 @@ public interface JtBusinessService {
 JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer,String name);
 List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size);
 List<JtBusinessProject>getBusinessProjectByCategoryId(String id,Integer size);
+JtBusinessProject getBusinessProjectDetail(String id);
+JtBusinessCategoryTree getCategoryTree(String id);
 }

+ 14 - 0
src/main/java/com/goafanti/business/service/impl/JtBusinessServiceImpl.java

@@ -5,6 +5,7 @@ import java.util.List;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import com.goafanti.business.bo.JtBusinessCategoryTree;
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.common.dao.JtBusinessCategoryMapper;
 import com.goafanti.common.dao.JtBusinessProjectMapper;
@@ -35,4 +36,17 @@ public class JtBusinessServiceImpl implements JtBusinessService{
 		return jtBusinessProjectMapper.getBusinessProjectByCategoryId(id,size);
 	}
 
+	@Override
+	public JtBusinessProject getBusinessProjectDetail(String id) {
+		// TODO Auto-generated method stub
+		return jtBusinessProjectMapper.selectByPrimaryKey(id);
+	}
+
+	@Override
+	public JtBusinessCategoryTree getCategoryTree(String id) {
+		// TODO Auto-generated method stub
+		return jtBusinessCategoryMapper.getCategoryTree(id);
+	}
+	
+
 }

+ 20 - 1
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -14,6 +14,7 @@ import com.goafanti.achievement.service.AchievementService;
 import com.goafanti.app.bo.consultantListBo;
 import com.goafanti.banners.enums.BannersType;
 import com.goafanti.banners.service.BannersService;
+import com.goafanti.business.bo.JtBusinessCategoryTree;
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.common.bo.PolicyEntity;
 import com.goafanti.common.bo.fieldGlossoryBo;
@@ -275,7 +276,7 @@ public class WebpageController extends BaseController {
 		List<JtBusinessProject>gaoqiList=jtBusinessService.getBusinessProjectByCategoryId(gaoqi2.getId(),6);
 		modelview.addObject("gaoqiList",gaoqiList); 
 		//知识产权贯标
-		JtBusinessCategory zscqgb=jtBusinessService.getBusinessCategoryByLayerAndName(1, "知识产权贯标");
+		JtBusinessCategory zscqgb=jtBusinessService.getBusinessCategoryByLayerAndName(1, "知识产权");
 		List<JtBusinessCategory> zscqgbCategories=jtBusinessService.getBusinessCategoryBySuperId(zscqgb.getId(), 4);
 		int[]zscqsizes= {1,2,4,10};
 		businessHelper(modelview, "zscqgb", zscqgbCategories, zscqsizes);
@@ -303,6 +304,24 @@ public class WebpageController extends BaseController {
 			modelview.addObject("consultants",userIdentityBos);
 		return modelview;  
 	}
+	
+	/*
+	 * 服务详情
+	 * 
+	 * @param id String
+	 * */
+	@RequestMapping(value = "/portal/service/serviceDetail", method = RequestMethod.GET)
+	public ModelAndView portalServiceServiceDetail(HttpServletRequest request, ModelAndView modelview,String id) {
+	modelview.setViewName("/portal/service/serviceDetails");
+	JtBusinessProject jtBusinessProject=jtBusinessService.getBusinessProjectDetail(id);
+	modelview.addObject("project",jtBusinessProject);
+	if(jtBusinessProject!=null) {
+	JtBusinessCategoryTree tree=jtBusinessService.getCategoryTree(jtBusinessProject.getCategoryId());
+	modelview.addObject("tree",tree);}
+	return modelview;
+	}
+	
+	
 
 	/**
 	 * 知识产权

+ 3 - 0
src/main/java/com/goafanti/common/dao/JtBusinessCategoryMapper.java

@@ -1,5 +1,6 @@
 package com.goafanti.common.dao;
 
+import com.goafanti.business.bo.JtBusinessCategoryTree;
 import com.goafanti.common.model.JtBusinessCategory;
 import com.goafanti.common.model.JtBusinessCategoryExample;
 import com.goafanti.common.model.JtBusinessProject;
@@ -100,4 +101,6 @@ public interface JtBusinessCategoryMapper {
     
     List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size);
     
+    JtBusinessCategoryTree getCategoryTree(String id);
+    
 }

+ 13 - 1
src/main/java/com/goafanti/common/mapper/JtBusinessCategoryMapper.xml

@@ -373,5 +373,17 @@ where
 	limit #{1}
   </select>
   
- 
+ <select id="getCategoryTree" resultType="com.goafanti.business.bo.JtBusinessCategoryTree">
+  select
+	jt1.name as topLevel,
+	jt2.name as secondLevel
+from
+	jt_business_category jt2
+left join jt_business_category jt1 on
+	jt2.super_id = jt1.id
+where
+	jt2.layer = 2
+	and jt1.layer = 1
+	and jt2.id = #{0}
+ </select>
 </mapper>

文件差异内容过多而无法显示
+ 1 - 0
src/main/webapp/WEB-INF/views/portal/service/serviceDetails.html


文件差异内容过多而无法显示
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/serviceIndex.html


+ 490 - 0
src/main/webapp/WEB-INF/views/portal/service/serviceList.html

@@ -0,0 +1,490 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>技术服务列表</title>
+   
+<link href="http://192.168.1.166/portal/2.0.6/vendors.css" rel="stylesheet"><link href="http://192.168.1.166/portal/2.0.6/newMenu/serviceList.css" rel="stylesheet"></head>
+
+<body>
+    <div class="header">
+        <div class="container">
+            <div>
+                <a href="#">网站导航</a>
+            </div>
+            <div>
+                <ul>
+                    <li>
+                        <a href="javascript:void(0)" class="head_login">登录</a>
+                    </li>
+                    <li>
+                        <a href="#">注册</a>
+                    </li>
+                    <li>
+                        <a href="#">我的订单</a>
+                    </li>
+                    <li>
+                        <a href="#">我的关注</a>
+                    </li>
+                    <li>
+                        <a href="#">我的消息</a>
+                    </li>
+                </ul>
+            </div>
+            <div class="colorRed">
+                全国统一服务热线:400-8800-962
+            </div>
+        </div>
+    </div>
+    <!-- search -->
+    <div class="container">
+        <div class="navHeader">
+            <div class="logo">
+                <a href="#">
+                    <img src="http://192.168.1.166/portal/2.0.6/img/Logo111.png" alt="" title="技淘">
+                </a>
+            </div>
+            <div class="logo_right"></div>
+            <div class="nav">
+                <ul>
+                    <li>
+                        <a href="#">科技服务</a>
+                        <img src="http://192.168.1.166/portal/2.0.6/img/hot.png">
+                        <ol class="subnavigation">
+                            <li>
+                                <a href="#">高企认定</a>
+                            </li>
+                            <li>
+                                <a href="#">知识产权</a>
+                            </li>
+                        </ol>
+                    </li>
+                    <li>
+                        <a href="#">技术交易</a>
+                        <ol class="subnavigation">
+                            <li>
+                                <a href="#">专利产品</a>
+                            </li>
+                            <li>
+                                <a href="#">技术成果</a>
+                            </li>
+                            <li>
+                                <a href="#">技术需求</a>
+                            </li>
+                            <li>
+                                <a href="#">技术评估</a>
+                            </li>
+                        </ol>
+                    </li>
+                    <li>
+                        <a href="#">智库咨询</a>
+                        <ol class="subnavigation">
+                            <li>
+                                <a href="#">智政</a>
+                            </li>
+                            <li>
+                                <a href="/portal/thinkTank/index.html#zizone">智者</a>
+                            </li>
+                        </ol>
+                    </li>
+
+                    <li>
+                        <a href="/portal/aboutUs.html">关于公司</a>
+                        <ol class="subnavigation" style="display: none;">
+                            <li>
+                                <a href="#">联系我们</a>
+                            </li>
+                        </ol>
+                    </li>
+                </ul>
+            </div>
+            <div class="nav_right">
+                <img src="http://192.168.1.166/portal/2.0.6/img/newMenu/navImg.jpg" alt="">
+                <span>国家技术转移示范机构</span>
+            </div>
+        </div>
+    </div>
+    <div class="container">
+        <div class="industry">
+            <p>业务分类</p>
+            <div class="industryList">
+                <ul>
+                    <li value="464" class="active">
+                        <span>教育休闲</span>
+                    </li>
+                    <li value="463" class="">
+                        <span>包装印刷</span>
+                    </li>
+                    <li value="462">
+                        <span>电气自动化</span>
+                    </li>
+                    <li value="461">
+                        <span>采矿冶金</span>
+                    </li>
+                    <li value="460">
+                        <span>航空航天</span>
+                    </li>
+                    <li value="459">
+                        <span>海洋开发</span>
+                    </li>
+                    <li value="458">
+                        <span>农林牧业</span>
+                    </li>
+                    <li value="457">
+                        <span>医药与医疗</span>
+                    </li>
+                    <li value="456">
+                        <span>电子信息</span>
+                    </li>
+                    <li value="375">
+                        <span>新型材料</span>
+                    </li>
+                    <li value="31">
+                        <span>仪器仪表</span>
+                    </li>
+                    <li value="26">
+                        <span>橡胶塑料</span>
+                    </li>
+                    <li value="25">
+                        <span>交通运输</span>
+                    </li>
+                    <li value="20">
+                        <span>安全防护</span>
+                    </li>
+                    <li value="19">
+                        <span>环保和资源</span>
+                    </li>
+                    <li value="18">
+                        <span>机械</span>
+                    </li>
+                    <li value="17">
+                        <span>新能源</span>
+                    </li>
+                    <li value="15">
+                        <span>化学化工</span>
+                    </li>
+                    <li value="7">
+                        <span>轻工纺织</span>
+                    </li>
+                    <li value="5">
+                        <span>家居用品</span>
+                    </li>
+                    <li value="4">
+                        <span>建筑建材</span>
+                    </li>
+                    <li value="2">
+                        <span>食品饮料</span>
+                    </li>
+                </ul>
+            </div>
+        </div>
+        <div class="productionType">
+            <p>业务项目</p>
+            <ol>
+                <li value="1">技术专利1</li>
+                <li value="2">技术专利2</li>
+                <li value="3">技术专利3</li>
+            </ol>
+        </div>
+        <div class="onSelect">
+            <p>已选类型 </p>
+            <ol>
+                <li class="preFirst">
+                   
+                </li>
+                <li class="next">
+                   
+                </li>
+            </ol>
+        </div>
+        <div class="search searchService">
+            <div class="hot">
+                <p>热搜</p>
+                <ul>
+                    <li class="active">人工智能</li>
+                    <li>区块链</li>
+                    <li class="active">环保</li>
+                    <li>金属</li>
+                    <li>软件开发</li>
+                </ul>
+            </div>
+            <div class="search-inp">
+                <div class="input-group">
+                    <input type="text" class="form-control demandSearch" placeholder="输入你感兴趣的内容">
+                    <span class="input-group-btn">
+                        <button class="btn btn-default searchBtn" type="button">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/newMenu/search-icon.jpg" alt=""> 搜索
+                        </button>
+                    </span>
+                </div>
+            </div>
+        </div>
+        <div class="achievementList">
+            <div class="achievementHot">
+                <ul class="hotList">
+                    <!-- <li>
+                        <div class="img">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/newMenu/achievmentDetail_3.jpg" alt="">
+                            <span></span>
+                        </div>
+                        <div class="txtIntroduce">
+                            <div class="txts">
+                                <h5>高压电极加热技术哈...</h5>
+                            </div>
+                            <div class="hr"></div>
+                            <div class="btnTxt">
+                                <p></p>
+                            </div>
+                        </div>
+                    </li> -->
+                </ul>
+                <div class="pagination_box">
+                    <nav aria-label="Page navigation" class="clearfix">
+                        <ul class="pagination">
+                            <li class="pagePre">
+                                <a href="#" aria-label="Previous">
+                                    <span aria-hidden="true">&laquo;</span>
+                                </a>
+                            </li>
+                            <li class="pageNumber"><a href="#" value="1">1</a></li>
+                            <li class="pageNext">
+                                <a href="#" aria-label="Next">
+                                    <span aria-hidden="true">&raquo;</span>
+                                </a>
+                            </li>
+                        </ul>
+                        <div class="inp">
+                            <input type="text" class=""><button class="btn btn-default">跳转</button>
+                        </div>
+                        <span class="totalCount">共0条数据</span>
+                    </nav>
+                </div>
+            </div>
+        </div>
+    </div>
+    <footer>
+        <div id="bottom">
+            <div class="bottom">
+                <div class="bottom_text">
+                    <div class="text_top">
+                        <a href="/portal/aboutUs.html">关于公司</a>
+                        <a href="/portal/contactUs.html">联系我们</a>
+                        <p>Copyright © 2016-2017 科德 版权所有 湘ICP备15019731号 -2 技术支持:湖南阿凡提科技有限公司
+                        </p>
+                    </div>
+                    <div class="text_center" id="qrCode">
+                        <div class="cont_left">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/dizhi.jpg" alt="">
+                            <p>湖南省长沙市营盘东路19号金山大厦八楼</p>
+                        </div>
+                        <div class="cont_center">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/dianhua.jpg" alt="">
+                            <p>合作电话:400-8800-962</p>
+                        </div>
+                        <div class="cont_guanli">
+                            <a href="/admin/login">
+                                <img src="http://192.168.1.166/portal/2.0.6/img/guanli.png" alt="">
+                                <p>管理员入口</p>
+                            </a>
+                        </div>
+                        <div class="cont_rightapp">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/erweima_iphone.png" alt="">
+                            <p>iPhone版</p>
+                        </div>
+                        <div class="cont_right android">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/erweima_android.jpg" alt="">
+                            <p>Android版</p>
+                        </div>
+                        <div class="cont_right">
+                            <img src="http://192.168.1.166/portal/2.0.6/img/erweima.jpg" alt="">
+                            <p>微信公众号</p>
+                        </div>
+                    </div>
+                    <div class="text_bottom">
+                        <p>友情链接</p>
+                        <a href="http://www.hnst.gov.cn/" target="_blank">湖南省科技厅/</a>
+                        <a href="http://www.cssti.cn/" target="_blank">长沙市科技局/</a>
+                        <a href="http://www.cast.org.cn/" target="_blank">中国科学技术协会/</a>
+                        <a href="http://www.chinatorch.gov.cn/" target="_blank">科技部火炬中心/</a>
+                        <a href="http://www.nosta.gov.cn/web/index.aspx" target="_blank">国家科技成果奖励办/</a>
+                        <a href="http://www.nast.org.cn/" target="_blank">国家科技成果网/</a>
+                        <a href="http://www.hnast.org.cn/portal/comm/index.action" target="_blank">湖南省科学技术协会/</a>
+                        <a href="http://www.hncgw.gov.cn/" target="_blank">湖南省科技成果转化公共服务平台/</a>
+                        <a href="http://www.hnjxw.gov.cn/" target="_blank">湖南省经济信息化委员会/</a>
+                        <a href="http://kyy.hnu.cn/" target="_blank">湖南大学科学技术研究院/</a>
+                        <a href="http://www.gxst.gov.cn/gxkjt/" target="_blank">广西省科技厅/</a>
+                        <a href="http://www.nmkjt.gov.cn/" target="_blank">内蒙古自治区科技厅/</a>
+                        <a href="http://www.cshtz.gov.cn/" target="_blank">长沙市高新区管委会/</a>
+                        <a href="http://www.jxas.ac.cn/" target="_blank">江西省科学院/</a>
+                        <a href="http://www.cnic.cn/front/index.html#/cnicSite/home" target="_blank">中科院计算机网络信息中心/</a>
+                        <a href="http://kxyjb.csu.edu.cn/" target="_blank">中南大学科学研究部/</a>
+                        <a href="http://www.cast.org.cn/" target="_blank">中国科协创新创业服务中心/</a>
+                        <a href="http://www.hbstd.gov.cn/" target="_blank">湖北省科技厅/</a>
+                        <a href="http://www.gdstc.gov.cn/" target="_blank">广东省科技厅/</a>
+                        <a href="http://www.hnkjt.gov.cn/" target="_blank">河南省科技厅/</a>
+                        <a href="http://www.cbtm.gov.cn/" target="_blank">技术合同登记官网</a>
+                    </div>
+                </div>
+            </div>
+        </div>
+        <div onclick="_MEIQIA('showPanel')" id="lxkf" style="display:none"></div>
+        <div class="pub_fix">
+            <span class="index_blur"></span>
+            <ul class="ret_top">
+                <li class="head_login">
+                    <a href="javascript:;">
+                        <img src="http://192.168.1.166/portal/2.0.6/img/index_fix0.png" alt="">
+                        <p>申请会员</p>
+                    </a>
+                </li>
+                <li>
+                    <a onclick="_MEIQIA('showPanel')">
+                        <img src="http://192.168.1.166/portal/2.0.6/img/index_fix3.png" alt="">
+                        <p>联系客服</p>
+                    </a>
+                </li>
+                <li>
+                    <a href="" class="pendent_box">
+                        <img src="http://192.168.1.166/portal/2.0.6/img/index_fix4.png" alt="">
+                        <p>返回顶部</p>
+                    </a>
+                </li>
+            </ul>
+            <span class="index_orange"></span>
+        </div>
+        <div class="message">
+            <span></span>
+        </div>
+        <div class="login">
+            <div class="login_mian">
+                <div class="login_left">
+                    <div class="login_ewm">
+                        <img src="http://192.168.1.166/portal/2.0.6/img/Android.jpg" alt="二维码" />
+                        <p>Android版</p>
+                        <p>客户端</p>
+                    </div>
+                    <div class="login_ewm">
+                        <img src="http://192.168.1.166/portal/2.0.6/img/iPhone.jpg" alt="二维码" />
+                        <p>iPhone版</p>
+                        <p>客户端</p>
+                    </div>
+                </div>
+                <div class="login_right">
+                    <h5>用户登陆
+                        <a href="">免费注册有好礼呦!!</a>
+                    </h5>
+                    <form id="form_login">
+                        <div class="login_uesr">
+                            <label for="uesname">
+                                <img src="http://192.168.1.166/portal/2.0.6/img/login_use.png" />
+                            </label>
+                            <input type="text" name="uesname" id="Lo_user" placeholder="用户名" />
+                            <img src="http://192.168.1.166/portal/2.0.6/img/login_del.png" class="log_del" />
+                        </div>
+                        <div class="login_pass">
+                            <label for="pass">
+                                <img src="http://192.168.1.166/portal/2.0.6/img/login_password.png" />
+                            </label>
+                            <input type="password" name="pass" id="Lo_pass" placeholder="请输入密码" />
+                        </div>
+                        <div class="login_check">
+                            <a href="">忘记密码?</a>
+                        </div>
+                        <input type="submit" value="登 陆" class="login_submit" />
+                    </form>
+                    <img src="http://192.168.1.166/portal/2.0.6/img/login_hua.png" alt="" class="login_hua" />
+                    <img src="http://192.168.1.166/portal/2.0.6/img/login_shadow.png" alt="阴影效果" class="login_shadow" />
+                    <img src="http://192.168.1.166/portal/2.0.6/img/login_close.png" alt="" class="login_close" />
+                </div>
+            </div>
+        </div>
+        <div id="forget">
+            <div class="forget">
+                <form id="forget_form">
+                    <div class="forget_top">
+                        <a href="">忘记密码?</a>
+                        <div class="login_check">
+                            <label for="forget_checks" class="lab_check">
+                                <input type="checkbox" name="type" id="forget_checks" />专家登录
+                            </label>
+                            <label for="forget_checkst" class="lab_checkno">
+                                <input type="checkbox" name="type" id="forget_checkst" />企业登录
+                            </label>
+                        </div>
+                    </div>
+                    <div class="forget_center">
+                        <div class="phone">
+                            <label for="forget_phone">
+                                手机号码:
+                                <input type="text" name="type" id="forget_phone" placeholder="请输入您的手机号码..." />
+                            </label>
+                        </div>
+                        <div class="yanzheng">
+                            <label for="forget_yanzheng">
+                                图形验证码:
+                                <input type="text" name="type" id="forget_yanzheng" />
+                            </label>
+                            <div class="yanzhengma_cont_">
+                                <img th:src="${basePath+'/open/getVCode'}" />
+                            </div>
+                        </div>
+                        <div class="cellcode_">
+                            <div>
+                                验证码:
+                                <input type="text" name="cellCode" placeholder="手机验证码" id="photo_n" />
+                            </div>
+                            <input type="button" id="photo_m" value="获取验证码" disabled/>
+                        </div>
+                        <div class="fastener">
+                            <input type="submit" class="forget_sub" value="确认" />
+                            <div class="fastener_right">
+                                取消
+                            </div>
+                        </div>
+                    </div>
+                </form>
+                <img src="http://192.168.1.166/portal/2.0.6/img/login_close.png" alt="" class="login_close" />
+            </div>
+        </div>
+        <div id="new_password">
+            <div class="new_password">
+                <form id="new_password_form">
+                    <div class="password_top">
+                        <h4>设置新密码</h4>
+                        <span>密码长度为6-20个字符,区分大小写</span>
+                    </div>
+                    <div class="password_center">
+                        <div>
+                            <label for="new_pass">
+                                新密码:
+                                <input type="text" name="type" id="new_pass" placeholder="请输入您的新密码..." />
+                            </label>
+                        </div>
+                        <div>
+                            <label for="new_pass_again">
+                                确认密码:
+                                <input type="text" name="type" id="new_pass_again" placeholder="请确认您的密码..." />
+                            </label>
+                        </div>
+                        <div class="fastener">
+                            <input type="submit" class="new_password_sub" value="确认" />
+                            <div class="fastener_right">
+                                取消
+                            </div>
+                        </div>
+                    </div>
+                </form>
+                <img src="http://192.168.1.166/portal/2.0.6/img/login_close.png" alt="" class="login_close" />
+            </div>
+        </div>
+        <div class="smg">
+            <input type="text" name="msg" value="111" id="msg" />
+        </div>
+    </footer>
+<script type="text/javascript" src="http://192.168.1.166/portal/2.0.6/vendors.js"></script><script type="text/javascript" src="http://192.168.1.166/portal/2.0.6/newMenu/serviceList.js"></script></body>
+
+
+</html>