Browse Source

管理中心查询修改

ender 8 years ago
parent
commit
5b5c38e7cc
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

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

@@ -861,14 +861,12 @@
 		left join marketing_management mm on a.id = mm.product_id 
 	</if>
   	where a.deleted_sign = 0 and a.owner_type = 1
-  	<if test="adminId != null">
-		and (u.mid = #{adminId,jdbcType=VARCHAR}
-	</if>
+  	
 	<if test="adminId != null">
-		or  d.principal_id = #{adminId,jdbcType=VARCHAR}
+		and (  a.principal_id = #{adminId,jdbcType=VARCHAR}
 	</if>
 	<if test="adminId != null">
-		or  d.tech_broker_id = #{adminId,jdbcType=VARCHAR}
+		or  a.tech_broker_id = #{adminId,jdbcType=VARCHAR}
 		)
 	</if>
   	<if test="ownerName != null">