`id`,`tenant_id`,`parent_tenant_id`,`user_id`,`type`,`signin_date`,`create_date`,`update_date`, `continue_month_sign`,`count_month_sign`,`continue_year_sign`,`count_year_sign`, `continue_sign`,`count_sign`,`mark` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `user_id` = #{userId} and `type` = #{type} and `signin_date` >= #{startDate} and `signin_date` <= #{endDate} and id in #{idItem} order by `signin_date` desc