浏览代码

用户中心进入接口修改

anderx 7 年之前
父节点
当前提交
0039551bdd

+ 17 - 14
src/main/java/com/goafanti/common/mapper/UserMapper.xml

@@ -663,6 +663,7 @@
     <result column="authentication" jdbcType="INTEGER" property="authentication"/>
     <result column="head_portrait_url" jdbcType="VARCHAR" property="headPortraitUrl" />
     <result column="logo_url" jdbcType="VARCHAR" property="logoUrl" />
+    <result column="expert" jdbcType="VARCHAR" property="expert" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
   </resultMap>
   
@@ -697,21 +698,23 @@
   </select>
   
   <select id="selectUserBaseByUserId" parameterType="java.lang.String" resultMap="UserPageHomeBo">
-  	select 
-  		id,
-  		number,
-  		type,
-  		authentication,
-  		username,
-  		identify_name,
-  		nickname,
-  		create_time,
-  		authentication,
-  		status,email,
-  		head_portrait_url,
-  		mobile from user
+  	    select 
+  		a.id,
+  		a.number,
+  		a.type,
+  		a.authentication,
+  		a.username,
+  		a.identify_name,
+  		a.nickname,
+  		a.create_time,
+  		a.authentication,
+  		a.status,a.email,
+  		a.head_portrait_url,
+  		b.expert,
+  		a.mobile from user a
+  	left join user_identity b on a.id=b.uid 
    	where 
-   		id = #{uid,jdbcType = VARCHAR}
+   		a.id = #{uid,jdbcType = VARCHAR}
   </select>
   
   <select id="selectUserDownLoadBoByUserId" parameterType="java.lang.String" resultMap="UserDownLoadBo">

+ 8 - 0
src/main/java/com/goafanti/user/bo/UserPageHomeBo.java

@@ -25,6 +25,8 @@ public class UserPageHomeBo extends UserBaseBo{
      * 知识产权数量
      */
     private Integer	intellectualPropertyNum;
+    
+    private String expert;
 	public Integer getPatentNum() {
 		return patentNum;
 	}
@@ -61,4 +63,10 @@ public class UserPageHomeBo extends UserBaseBo{
 	public void setIntellectualPropertyNum(Integer intellectualPropertyNum) {
 		this.intellectualPropertyNum = intellectualPropertyNum;
 	}
+	public String getExpert() {
+		return expert;
+	}
+	public void setExpert(String expert) {
+		this.expert = expert;
+	}
 }

+ 1 - 1
src/main/webapp/WEB-INF/views/common.html

@@ -528,7 +528,7 @@
 				s.parentNode.insertBefore(hm, s);
 			})();
 		</script>
-		<script language="javascript" src="https://put.zoosnet.net/JS/LsJS.aspx?siteid=PUT70876498&float=1&lng=cn"></script>
+		 <script language="javascript" src="https://put.zoosnet.net/JS/LsJS.aspx?siteid=PUT70876498&float=1&lng=cn"></script> 
 		<script th:inline="javascript">
 			/*<![CDATA[*/
 			window.globalConfig = {};

+ 1 - 0
src/main/webapp/WEB-INF/views/portal/adviser.html

@@ -60,4 +60,5 @@
 	<script type="text/javascript" th:src="${portalHost+'/newMenu/adviser.js'}"></script>
 	</div>
 	</body>
+	
 </html>

+ 1 - 0
src/main/webapp/WEB-INF/views/portal/search.html

@@ -50,3 +50,4 @@
 	</div>
 	</body>
 </html>
+