//拼接字符數(shù)組
NSMutableString *ids = [NSMutableString stringWithString:@"["];
for(ConsultationAppointmentDoctorDto *consulDoctor in self.consulAppointDto.doctors){
[ids appendFormat:@"'%@',",consulDoctor.doctor.id_a];
}
NSString *idStr = [NSString stringWithFormat:@"%@]",[ids ? substringWithRange:NSMakeRange(0,[ids length]-1)]];
//核心代碼
NSMutableDictionary *paramsDict=[[NSMutableDictionary alloc] init];
[paramsDict setObject:idStr forKey:@"doctorIds"];//將字符數(shù)組裝入?yún)?shù)字典中