瀏覽代碼

管理中心查询修改

ender 8 年之前
父節點
當前提交
6be13094c1
共有 1 個文件被更改,包括 10 次插入0 次删除
  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 = '')