insert into cm_brand_doctor (authUserId, authId, doctorType, name, certificateNo, clubName, image, status, createTime, createBy,
auditStatus)
values (#{authUserId}, #{authId}, #{doctorType}, #{name}, #{certificateNo}, #{clubName}, #{image}, #{status}, NOW(), #{createBy}, #{auditStatus})
insert into cm_brand_doctor_banner (doctorId, banner)
VALUES (#{doctorId}, #{banner})
insert into cm_brand_doctor_equipment(doctorId, name, brand, image)
values (#{doctorId}, #{equipmentName}, #{brand}, #{image})
insert into cm_brand_doctor_tag (doctorId, tag)
VALUES (#{doctorId}, #{tag})
insert into cm_brand_doctor_param(doctorId, name, content)
values (#{doctorId}, #{name}, #{content})
update cm_brand_doctor
set status = #{status}
where id = #{doctorId}
update cm_brand_doctor
set authId = #{authId},
doctorType = #{doctorType},
name = #{name},
certificateNo = #{certificateNo},
clubName = #{clubName},
image = #{image},
status = #{status},
auditStatus = #{auditStatus}
where id = #{id}
update cm_brand_doctor
set status = #{status},
auditStatus = #{auditStatus},
invalidReason = #{invalidReason},
auditBy = #{auditBy},
auditTime = #{auditTime}
where id = #{doctorId}
delete from cm_brand_doctor where id = #{doctorId}
delete from cm_brand_doctor_banner where doctorId = #{doctorId}
delete from cm_brand_doctor_equipment where doctorId = #{doctorId}
delete from cm_brand_doctor_tag where doctorId = #{doctorId}
delete from cm_brand_doctor_param where doctorId = #{doctorId}