Parcourir la source

管理中心查询修改

ender il y a 8 ans
Parent
commit
6be13094c1
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

+ 10 - 0
src/main/java/com/goafanti/common/mapper/AchievementMapper.xml

@@ -861,6 +861,16 @@
 		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}
+	</if>
+	<if test="adminId != null">
+		or  d.tech_broker_id = #{adminId,jdbcType=VARCHAR}
+		)
+	</if>
   	<if test="ownerName != null">
   		and  a.owner_name like CONCAT('%',#{ownerName,jdbcType=VARCHAR},'%')
   		and  (a.owner_id is null or a.owner_id = '')