select record_id, doc_id,user_id, record_type, title, content,images, json_info, remark, create_time, update_time, company_id, company_user_id from doc_record
and doc_id = #{docId}
and record_type = #{recordType}
and title = #{title}
and content = #{content}
and json_info = #{jsonInfo}
and company_id = #{companyId}
and company_user_id = #{companyUserId}
where record_id = #{recordId}
insert into doc_record doc_id, user_id, record_type, title, content, images, json_info, remark, create_time, update_time, company_id, company_user_id, #{docId}, #{userId}, #{recordType}, #{title}, #{content}, #{images}, #{jsonInfo}, #{remark}, #{createTime}, #{updateTime}, #{companyId}, #{companyUserId},
update doc_record doc_id = #{docId}, user_id = #{userId}, record_type = #{recordType}, title = #{title}, content = #{content}, images = #{images}, json_info = #{jsonInfo}, remark = #{remark}, create_time = #{createTime}, update_time = #{updateTime}, company_id = #{companyId}, company_user_id = #{companyUserId}, where record_id = #{recordId}
delete from doc_record where record_id = #{recordId}
delete from doc_record where record_id in #{recordId}