`id`,`tenant_id`,`parent_tenant_id`,`phone`,`expiretime`,`createtime`,`type`,`msg`,`signature`,`code` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `phone` = #{phone} and `expiretime` = #{expiretime} and `createtime` = #{createtime} and `type` = #{type} and `msg` = #{msg} and `signature` = #{signature} and `code` = #{code} and date_format(`createtime`,'%Y-%m-%d') = #{createtimeStr} and id in #{idItem} order by ${sortColumns}