| | |
| | | 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); |