puzhibing
2026-03-10 2647da6798d06fe7da2e143c92377c8a74f02dbb
修改bug
1个文件已修改
8 ■■■■■ 已修改文件
xp-robotaxi-maintenance-boot/src/main/resources/mapper/maintenance/XpClockInMapper.xml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
xp-robotaxi-maintenance-boot/src/main/resources/mapper/maintenance/XpClockInMapper.xml
@@ -50,8 +50,8 @@
        ifnull(sum(aa.num2), 0) as lateEarly,
        ifnull(dd.num1, 0) as shouldClockInDays
        from (
            select app_user_id, count(clock_in_result) as num1, 0 as num2 from xp_clock_in where is_deleted = 0 and
            clock_in_result = 1
            select app_user_id, count(id) as num1, 0 as num2 from xp_clock_in where is_deleted = 0 and
            clock_in_result = 1 and clock_out_result = 1
            <if test="null != appUserIds and appUserIds.size() > 0">
                and app_user_id in
                <foreach item="item" collection="appUserIds" separator="," open="(" close=")" index="index">
@@ -63,8 +63,8 @@
            </if>
            group by app_user_id
            union all
            select app_user_id, 0 as num1, count(clock_in_result) as num2 from xp_clock_in where is_deleted = 0 and
            clock_in_result != 1
            select app_user_id, 0 as num1, count(id) as num2 from xp_clock_in where is_deleted = 0 and
            (clock_in_result != 1 or clock_out_result != 1)
            <if test="null != appUserIds and appUserIds.size() > 0">
                and app_user_id in
                <foreach item="item" collection="appUserIds" separator="," open="(" close=")" index="index">