This commit is contained in:
van
2026-04-01 02:30:53 +08:00
parent a515ec33fb
commit 6a88a68320
7 changed files with 75 additions and 16 deletions

View File

@@ -43,10 +43,14 @@
where union_id = #{unionId}
</select>
<!-- 企微 UserID可写在 wxid或出现在 touser逗号分隔的接收人 UserID-->
<select id="selectSuperAdminByWecomUserId" parameterType="String" resultMap="SuperAdminResult">
<include refid="selectSuperAdminVo"/>
where wxid = #{wxid}
and (is_active is null or is_active = 1)
where (is_active is null or is_active = 1)
and (
wxid = #{wxid}
or CONCAT(',', REPLACE(REPLACE(IFNULL(touser,''),' ',''),'',','), ',') like CONCAT('%,', #{wxid}, ',%')
)
order by id asc
limit 1
</select>