人员信息添加考勤组

This commit is contained in:
fl 2024-12-04 17:42:41 +08:00
parent 8754856448
commit 518a39a5f5
1 changed files with 13 additions and 0 deletions

View File

@ -272,4 +272,17 @@
where user_name = #{userName}
and is_active = '1' limit 1
</select>
<select id="getAttGroupByUserId" resultType="com.bonus.system.api.domain.MapVo">
SELECT
ag.id,
ag.group_name AS `name`
FROM
att_group_person_relation agpr
LEFT JOIN att_group ag ON agpr.group_id = ag.id
AND ag.is_active = '1'
WHERE
agpr.user_id = #{userId} and agpr.is_active = '1' and ag.id is not null
LIMIT 1
</select>
</mapper>