Browse Source

项目列表修改

anderx 7 years ago
parent
commit
11d26e9ff8

+ 3 - 3
src/main/java/com/goafanti/common/mapper/JtBusinessProjectMapper.xml

@@ -623,7 +623,7 @@
 	  jtbp.advertisement,
 	  ifnull(dct.dealCount,0) as dealCount,
 	  ifnull(x.count,0) as interestCount,
-	  u.identify_name as companyName,u.id as companyId
+	  u.nickname as companyName,u.id as companyId
   from jt_business_project jtbp
   left join user u on u.id=jtbp.owner_id
   left join (select project_id as id,count(*) as count from project_interest group by project_id)x on jtbp.id=x.id
@@ -638,7 +638,7 @@
   left join jt_business_project_tag x on x.project_id=jtbp.id
   left join jt_tag y on x.tag_id=y.id
   </if>
-  where 1=1
+  where 1=1 and jtbp.audit_status=2
   <if test="tag != null">
   and y.id= #{tag,jdbcType=VARCHAR}
   </if>
@@ -696,7 +696,7 @@
   left join jt_business_project_tag x on x.project_id=jtbp.id
   left join jt_tag y on x.tag_id=y.id
   </if>
-  where 1=1
+  where 1=1 and jtbp.audit_status=2
   <if test="tag != null">
   and y.id= #{tag,jdbcType=VARCHAR}
   </if>