wenminjie
2026-08-06 02c7bf03fa071325c201d29353330152d35ac71a
talent-card-server/src/main/java/com/talentcard/server/mapper/TransportCarWashCredentialMapper.java
@@ -81,9 +81,9 @@
                   u.name as talentName, u.mobile as talentMobile
            from talent_card c join talent_user u on u.id = c.talent_id and u.deleted = 0
            where c.id = #{cardId} and c.talent_id = #{talentId} and c.deleted = 0 and c.status = 1
              and (c.valid_start is null or c.valid_start <= current_date)
              and (c.valid_end is null or c.valid_end >= current_date)
              and (c.expire_time is null or c.expire_time > now())
              and (c.valid_start is null or c.valid_start <= current_date)
              and (c.valid_end is null or c.valid_end >= current_date)
              and (c.expire_time is null or c.expire_time > now())
            limit 1
            """)
    Map<String, Object> selectActiveCard(@Param("talentId") Long talentId, @Param("cardId") Long cardId);