Antiloveg 8 jaren geleden
bovenliggende
commit
3242af0218

+ 12 - 5
src/main/java/com/goafanti/common/mapper/TechWebsiteMapper.xml

@@ -134,11 +134,18 @@
   </select>
   
    <select id="findTechWebsiteListByPage" resultType="com.goafanti.techproject.bo.TechWebsiteListBo" parameterType="java.lang.String" >
-   select w.id, w.uid, i.unit_name as unitName, i.licence_province as province, 
-		w.department, w.website, w.account_number as accountNumber,
+   select 
+   		w.id, 
+   		w.uid, 
+   		i.unit_name as unitName, 
+   		i.licence_province as province, 
+		w.department, 
+		w.website, 
+		w.account_number as accountNumber,
 		w.password
 		from tech_website w 
-	LEFT JOIN organization_identity i on w.uid = i.uid where w.deleted_sign = 0 
+	LEFT JOIN organization_identity i on w.uid = i.uid 
+	where w.deleted_sign = 0 
     <if test="province != null">
     	and i.licence_province = #{province,jdbcType=INTEGER}
     </if>
@@ -159,8 +166,8 @@
     <if test="province != null">
     	and i.licence_province = #{province,jdbcType=INTEGER}
     </if>
-    <if test="uid != null" >
-    	and w.uid = #{uid,jdbcType=VARCHAR}
+   <if test="unitName != null" >
+    	and i.unit_name like CONCAT('%', #{unitName,jdbcType=VARCHAR}, '%')  
     </if>
   </select>
   

+ 11 - 0
src/main/java/com/goafanti/portal/controller/PortalStarController.java

@@ -0,0 +1,11 @@
+package com.goafanti.portal.controller;
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.goafanti.common.controller.BaseApiController;
+@RestController
+@RequestMapping(value = "/portal/star")
+public class PortalStarController extends BaseApiController{
+	
+}