select doc_id, user_id, user_name, descs, id_card, id_card_front, id_card_back, sex, birthday, head_img, remark,tags, create_time, update_time,company_user_ids from doc
and user_id = #{userId}
and user_name like concat('%', #{userName}, '%')
and descs = #{descs}
and id_card = #{idCard}
and id_card_front = #{idCardFront}
and id_card_back = #{idCardBack}
and sex = #{sex}
and birthday = #{birthday}
and head_img = #{headImg}
where doc_id = #{docId}
insert into doc user_id, user_name, descs, id_card, id_card_front, id_card_back, sex, birthday, head_img, remark, tags, create_time, update_time, company_user_ids, #{userId}, #{userName}, #{descs}, #{idCard}, #{idCardFront}, #{idCardBack}, #{sex}, #{birthday}, #{headImg}, #{remark}, #{tags}, #{createTime}, #{updateTime}, #{companyUserIds},
update doc user_id = #{userId}, user_name = #{userName}, descs = #{descs}, id_card = #{idCard}, id_card_front = #{idCardFront}, id_card_back = #{idCardBack}, sex = #{sex}, birthday = #{birthday}, head_img = #{headImg}, remark = #{remark}, tags = #{tags}, create_time = #{createTime}, update_time = #{updateTime}, company_user_ids = #{companyUserIds}, where doc_id = #{docId}
delete from doc where doc_id = #{docId}
delete from doc where doc_id in #{docId}