select prescribe_id, prescribe_type, inquiry_order_id,order_code, store_order_id, user_id, patient_id,
prescribe_code, patient_descs, now_illness, history_illness, patient_age, patient_name,
weight, is_history_allergic, history_allergic, liver_unusual, renal_unusual, is_lactation,
patient_tel, patient_gender, record_pic, prescribe_img_url, prescribe_img_store_url,
audit_reason, diagnose, doctor_id, drug_doctor_id, create_time, status, audit_time,
usage_json, remark, store_id, prescribe_doctor_id, doctor_sign_url,
prescribe_doctor_sign_url, drug_doctor_sign_url, patient_birthday, recipe_type,
prescribe_code_url, cycle, icd_code, source, doctor_confirm, start_operate_time,
end_operate_time, operate_second, third_party_user_id, is_send_to_third_party,
handwrite_collection_id, company_customer_id
from fs_prescribe_data_scrm
insert into fs_prescribe_data_scrm
prescribe_type,
inquiry_order_id,
order_code,
store_order_id,
user_id,
patient_id,
prescribe_code,
patient_descs,
now_illness,
history_illness,
patient_age,
patient_name,
weight,
is_history_allergic,
history_allergic,
liver_unusual,
renal_unusual,
is_lactation,
patient_tel,
patient_gender,
record_pic,
prescribe_img_url,
prescribe_img_store_url,
audit_reason,
diagnose,
doctor_id,
drug_doctor_id,
create_time,
status,
audit_time,
usage_json,
remark,
store_id,
prescribe_doctor_id,
doctor_sign_url,
prescribe_doctor_sign_url,
drug_doctor_sign_url,
patient_birthday,
recipe_type,
prescribe_code_url,
cycle,
icd_code,
source,
doctor_confirm,
start_operate_time,
end_operate_time,
operate_second,
third_party_user_id,
is_send_to_third_party,
handwrite_collection_id,
company_customer_id,
#{prescribeType},
#{inquiryOrderId},
#{orderCode},
#{storeOrderId},
#{userId},
#{patientId},
#{prescribeCode},
#{patientDescs},
#{nowIllness},
#{historyIllness},
#{patientAge},
#{patientName},
#{weight},
#{isHistoryAllergic},
#{historyAllergic},
#{liverUnusual},
#{renalUnusual},
#{isLactation},
#{patientTel},
#{patientGender},
#{recordPic},
#{prescribeImgUrl},
#{prescribeImgStoreUrl},
#{auditReason},
#{diagnose},
#{doctorId},
#{drugDoctorId},
#{createTime},
#{status},
#{auditTime},
#{usageJson},
#{remark},
#{storeId},
#{prescribeDoctorId},
#{doctorSignUrl},
#{prescribeDoctorSignUrl},
#{drugDoctorSignUrl},
#{patientBirthday},
#{recipeType},
#{prescribeCodeUrl},
#{cycle},
#{icdCode},
#{source},
#{doctorConfirm},
#{startOperateTime},
#{endOperateTime},
#{operateSecond},
#{thirdPartyUserId},
#{isSendToThirdParty},
#{handwriteCollectionId},
#{companyCustomerId},
update fs_prescribe_data_scrm
prescribe_type = #{prescribeType},
inquiry_order_id = #{inquiryOrderId},
order_code = #{orderCode},
store_order_id = #{storeOrderId},
user_id = #{userId},
patient_id = #{patientId},
prescribe_code = #{prescribeCode},
patient_descs = #{patientDescs},
now_illness = #{nowIllness},
history_illness = #{historyIllness},
patient_age = #{patientAge},
patient_name = #{patientName},
weight = #{weight},
is_history_allergic = #{isHistoryAllergic},
history_allergic = #{historyAllergic},
liver_unusual = #{liverUnusual},
renal_unusual = #{renalUnusual},
is_lactation = #{isLactation},
patient_tel = #{patientTel},
patient_gender = #{patientGender},
record_pic = #{recordPic},
prescribe_img_url = #{prescribeImgUrl},
prescribe_img_store_url = #{prescribeImgStoreUrl},
audit_reason = #{auditReason},
diagnose = #{diagnose},
doctor_id = #{doctorId},
drug_doctor_id = #{drugDoctorId},
create_time = #{createTime},
status = #{status},
audit_time = #{auditTime},
usage_json = #{usageJson},
remark = #{remark},
store_id = #{storeId},
prescribe_doctor_id = #{prescribeDoctorId},
doctor_sign_url = #{doctorSignUrl},
prescribe_doctor_sign_url = #{prescribeDoctorSignUrl},
drug_doctor_sign_url = #{drugDoctorSignUrl},
patient_birthday = #{patientBirthday},
recipe_type = #{recipeType},
prescribe_code_url = #{prescribeCodeUrl},
cycle = #{cycle},
icd_code = #{icdCode},
source = #{source},
doctor_confirm = #{doctorConfirm},
start_operate_time = #{startOperateTime},
end_operate_time = #{endOperateTime},
operate_second = #{operateSecond},
third_party_user_id = #{thirdPartyUserId},
is_send_to_third_party = #{isSendToThirdParty},
handwrite_collection_id = #{handwriteCollectionId},
company_customer_id = #{companyCustomerId},
where prescribe_id = #{prescribeId}
delete from fs_prescribe_data_scrm where prescribe_id = #{prescribeId}
delete from fs_prescribe_data_scrm where prescribe_id in
#{prescribeId}
UPDATE fs_prescribe_data_scrm
SET prescribe_img_url = NULL, prescribe_img_store_url = NULL
WHERE prescribe_id = 1;