INSERT INTO s_dtp_ysfw_archive_management realNameStatus, name, gender, age, dateBirth, phoneNumber, documentNumber, idCardImg, landlineNumber, documentType, createTime, archiveCreator, creator, archiveCompleteStatus, contactRelation, contactPhone, contactName, flipStatus, chronicTumorType, nation, nativePlace, height, weight, BMI, storeId, insurance, socialSecurityCard, timeFirstDiagnosis, diseaseType, healingLineCollection, disease, ownedStore, archiveCompleter, acceptFollowUp, followUpPerson, charityAssistance, manufacturer, joinProject, mdmCode, productName, storeName, followUpStatus, noFlipCause, genericName, updateTime #{realNameStatus}, #{name}, #{gender}, #{age}, #{dateBirth}, #{phoneNumber}, #{documentNumber}, #{idCardImg}, #{landlineNumber}, #{documentType}, #{createTime}, #{archiveCreator}, #{creator}, #{archiveCompleteStatus}, #{contactRelation}, #{contactPhone}, #{contactName}, #{flipStatus}, #{chronicTumorType}, #{nation}, #{nativePlace}, #{height}, #{weight}, #{BMI}, #{storeId}, #{insurance}, #{socialSecurityCard}, #{timeFirstDiagnosis}, #{diseaseType}, #{healingLineCollection}, #{disease}, #{ownedStore}, #{archiveCompleter}, #{acceptFollowUp}, #{followUpPerson}, #{charityAssistance}, #{manufacturer}, #{joinProject}, #{mdmCode}, #{productName}, #{storeName}, #{followUpStatus}, #{noFlipCause}, #{genericName}, #{updateTime} UPDATE s_dtp_ysfw_archive_management SET realNameStatus = #{realNameStatus}, gender = #{gender}, age = #{age}, dateBirth = #{dateBirth}, phoneNumber = #{phoneNumber}, documentNumber=#{documentNumber}, idCardImg=#{idCardImg}, landlineNumber = #{landlineNumber}, archiveCompleteStatus = #{archiveCompleteStatus}, contactRelation = #{contactRelation}, contactPhone = #{contactPhone}, contactName = #{contactName}, flipStatus = #{flipStatus}, chronicTumorType = #{chronicTumorType}, nation = #{nation}, nativePlace = #{nativePlace}, height = #{height}, weight = #{weight}, BMI = #{BMI}, insurance = #{insurance}, socialSecurityCard = #{socialSecurityCard}, timeFirstDiagnosis = #{timeFirstDiagnosis}, diseaseType = #{diseaseType}, healingLineCollection = #{healingLineCollection}, disease = #{disease}, ownedStore = #{ownedStore}, archiveCompleter = #{archiveCompleter}, acceptFollowUp = #{acceptFollowUp}, followUpPerson = #{followUpPerson}, charityAssistance = #{charityAssistance}, manufacturer = #{manufacturer}, joinProject = #{joinProject}, mdmCode = #{mdmCode}, productName = #{productName}, storeName = #{storeName}, storeId = #{storeId}, noFlipCause = #{noFlipCause}, followUpStatus = #{followUpStatus}, genericName = #{genericName}, updateTime = #{updateTime} WHERE id = #{id} update s_dtp_ysfw_archive_management openId = #{openId}, flipStatus = #{flipStatus}, updateTime = #{updateTime}, archiveCreator = #{archiveCreator}, where id = #{id} update s_dtp_ysfw_archive_management openId = #{openId}, flipStatus = #{flipStatus}, noFlipCause = #{noFlipCause}, updateTime = #{updateTime}, archiveCreator = #{archiveCreator}, where id = #{id} update s_dtp_ysfw_archive_management realNameStatus = #{realNameStatus}, name = #{name}, gender = #{gender}, age = #{age}, dateBirth = #{dateBirth}, phoneNumber = #{phoneNumber}, documentNumber = #{documentNumber}, idCardImg = #{idCardImg}, landlineNumber = #{landlineNumber}, documentType = #{documentType}, archiveCreator = #{archiveCreator}, creator = #{creator}, archiveCompleteStatus = #{archiveCompleteStatus}, contactRelation = #{contactRelation}, contactPhone = #{contactPhone}, contactName = #{contactName}, flipStatus = #{flipStatus}, noFlipCause = #{noFlipCause}, chronicTumorType = #{chronicTumorType}, nation = #{nation}, nativePlace = #{nativePlace}, height = #{height}, weight = #{weight}, BMI = #{BMI}, insurance = #{insurance}, socialSecurityCard = #{socialSecurityCard}, timeFirstDiagnosis = #{timeFirstDiagnosis}, diseaseType = #{diseaseType}, healingLineCollection = #{healingLineCollection}, disease = #{disease}, ownedStore = #{ownedStore}, archiveCompleter = #{archiveCompleter}, acceptFollowUp = #{acceptFollowUp}, followUpPerson = #{followUpPerson}, charityAssistance = #{charityAssistance}, manufacturer = #{manufacturer}, joinProject = #{joinProject}, mdmCode = #{mdmCode}, productName = #{productName}, storeName = #{storeName}, storeId = #{storeId}, followUpStatus = #{followUpStatus}, genericName = #{genericName}, where id = #{id} delete from s_dtp_ysfw_archive_management where id in(#{ids}) update s_dtp_ysfw_follow_up_task appointmentDate=#{appointmentDate}, businessBelonging=#{businessBelonging}, taskName=#{taskName}, taskTheme=#{taskTheme}, patientName=#{patientName}, gender=#{gender}, age=#{age}, followUpSummary=#{followUpSummary}, disease=#{disease}, storeName=#{storeName}, genericName=#{genericName}, productName=#{productName}, taskFollower=#{taskFollower}, actualFollowUpTime=#{actualFollowUpTime}, callConnectedCount=#{callConnectedCount}, outboundCallCount=#{outboundCallCount}, nextOutboundCallCount=#{nextOutboundCallCount}, taskStatus=#{taskStatus}, lastOutboundStatus=#{lastOutboundStatus}, createdAt=#{createdAt}, updatedAt=#{updatedAt}, where id=#{id} delete from s_dtp_ysfw_follow_up_task where id in(#{ids}) update s_dtp_ysfw_follow_up_assign patientName=#{patientName}, patientPhone=#{patientPhone}, gender=#{gender}, age=#{age}, disease=#{disease}, clinicalDiagnosis=#{clinicalDiagnosis}, medicineName=#{medicineName}, lastPurchaseDate=#{lastPurchaseDate}, filingDate=#{filingDate}, followUpPersonName=#{followUpPersonName}, followUpPersonPhone=#{followUpPersonPhone}, followUpPersonRole=#{followUpPersonRole}, storeName=#{storeName}, patientAssignmentStatus=#{patientAssignmentStatus}, terminatedEmployeeName=#{terminatedEmployeeName}, terminatedEmployeePhone=#{terminatedEmployeePhone}, terminatedEmployeeStore=#{terminatedEmployeeStore}, createdAt=#{createdAt}, updatedAt=#{updatedAt}, where id=#{id} delete from s_dtp_ysfw_follow_up_assign where id in(#{ids}) INSERT INTO s_dtp_ysfw_patient_consultation createdBy, createdDate, patientName, patientPhone, gender, age, KnowledgeLink, questionType, consultationQuestion, pharmacistAnswer, consultationTime, contactRelation, disease, genericName, productName, storeId, storeName, patientId, #{createdBy}, #{createdDate}, #{patientName}, #{patientPhone}, #{gender}, #{age}, #{KnowledgeLink}, #{questionType}, #{consultationQuestion}, #{pharmacistAnswer}, #{consultationTime}, #{contactRelation}, #{disease}, #{genericName}, #{productName}, #{storeId}, #{storeName}, #{patientId}, update s_dtp_ysfw_patient_consultation regenerator=#{regenerator}, updateDate=#{updateDate}, questionType=#{questionType}, KnowledgeLink=#{KnowledgeLink}, contactRelation=#{contactRelation}, consultationQuestion=#{consultationQuestion}, pharmacistAnswer=#{pharmacistAnswer}, consultationTime=#{consultationTime}, where id=#{id} delete from s_dtp_ysfw_patient_consultation where id in(#{ids}) update s_ysfw_follow_up_evaluation businessName = #{businessName}, createdBy = #{createdBy}, createdDate = #{createdDate}, patientName = #{patientName}, followUpTask = #{followUpTask}, taskFollower = #{taskFollower}, evaluationDate = #{evaluationDate}, chainStoreName = #{chainStoreName}, storeName = #{storeName}, taskId = #{taskId}, where id=#{id} delete from s_ysfw_follow_up_evaluation where id in(#{ids}) INSERT INTO s_dtp_ysfw_patientbasicinfor id, currentEconomicSituation, patientAwareness, followUpFeedbackDoctor, bloodPressureStatus, heartRate, smokingHistory, drinkingHistory, exerciseHabit, dietaryPreference, sleepCondition, pathologicalStage, treatmentStage, accompanyingSymptoms, hasGeneticTesting, hasImmuneTesting, medicalHistory, medicalHistoryDescription, infectiousDiseaseHistory, infectiousDiseaseHistoryDescription, allergyHistory, pastAdverseDrugReactionHistory, hasSurgicalTraumaHistory, multipleTreatmentReasonsDescription, familyHistoryId, previousMedicationId, contactPersonId, archiveId, caregiver, createdBy, createdAt, basicInfoCompleter, recordUpdateTimestamp, status, deleteMarker #{id}, #{currentEconomicSituation}, #{patientAwareness}, #{followUpFeedbackDoctor}, #{bloodPressureStatus}, #{heartRate}, #{smokingHistory}, #{drinkingHistory}, #{exerciseHabit}, #{dietaryPreference}, #{sleepCondition}, #{pathologicalStage}, #{treatmentStage}, #{accompanyingSymptoms}, #{hasGeneticTesting}, #{hasImmuneTesting}, #{medicalHistory}, #{medicalHistoryDescription}, #{infectiousDiseaseHistory}, #{infectiousDiseaseHistoryDescription}, #{allergyHistory}, #{pastAdverseDrugReactionHistory}, #{hasSurgicalTraumaHistory}, #{multipleTreatmentReasonsDescription}, #{familyHistoryId}, #{previousMedicationId}, #{contactPersonId}, #{archiveId}, #{caregiver}, #{createdBy}, #{createdAt}, #{basicInfoCompleter}, #{recordUpdateTimestamp}, #{status}, #{deleteMarker} UPDATE s_dtp_ysfw_patientbasicinfor SET currentEconomicSituation = #{currentEconomicSituation}, patientAwareness = #{patientAwareness}, followUpFeedbackDoctor = #{followUpFeedbackDoctor}, bloodPressureStatus = #{bloodPressureStatus}, heartRate = #{heartRate}, smokingHistory = #{smokingHistory}, drinkingHistory = #{drinkingHistory}, exerciseHabit = #{exerciseHabit}, dietaryPreference = #{dietaryPreference}, sleepCondition = #{sleepCondition}, pathologicalStage = #{pathologicalStage}, treatmentStage = #{treatmentStage}, accompanyingSymptoms = #{accompanyingSymptoms}, hasGeneticTesting = #{hasGeneticTesting}, hasImmuneTesting = #{hasImmuneTesting}, medicalHistory = #{medicalHistory}, medicalHistoryDescription = #{medicalHistoryDescription}, infectiousDiseaseHistory = #{infectiousDiseaseHistory}, infectiousDiseaseHistoryDescription = #{infectiousDiseaseHistoryDescription}, allergyHistory = #{allergyHistory}, pastAdverseDrugReactionHistory = #{pastAdverseDrugReactionHistory}, hasSurgicalTraumaHistory = #{hasSurgicalTraumaHistory}, multipleTreatmentReasonsDescription = #{multipleTreatmentReasonsDescription}, familyHistoryId = #{familyHistoryId}, previousMedicationId = #{previousMedicationId}, contactPersonId = #{contactPersonId}, archiveId = #{archiveId}, caregiver = #{caregiver}, createdBy = #{createdBy}, createdAt = #{createdAt}, basicInfoCompleter = #{basicInfoCompleter}, recordUpdateTimestamp = #{recordUpdateTimestamp}, status = #{status}, deleteMarker = #{deleteMarker} WHERE id = #{id} UPDATE s_dtp_ysfw_patientbasicinfor SET status = 0 ,deleteMarker =1 WHERE id = #{id} DELETE FROM s_dtp_ysfw_patientbasicinfor WHERE id = #{id} INSERT INTO s_dtp_ysfw_contacts archiveId, contactPhone, contactName, contactRelationship, createdBy, createdAt, updatedAt, status #{archiveId}, #{contactPhone}, #{contactName}, #{contactRelationship}, #{createdBy}, #{createdAt}, #{updatedAt}, #{status} UPDATE s_dtp_ysfw_contacts SET archiveId = #{archiveId}, contactPhone = #{contactPhone}, contactName = #{contactName}, contactRelationship = #{contactRelationship}, createdBy = #{createdBy}, status = #{status} WHERE id = #{id} INSERT INTO s_dtp_ysfw_family_history archiveId, disease, member, createdBy, createdAt, updatedAt, status #{archiveId}, #{disease}, #{member}, #{createdBy}, #{createdAt}, #{updatedAt}, #{status} UPDATE s_dtp_ysfw_family_history SET archiveId = #{archiveId}, disease = #{disease}, member = #{member}, createdBy = #{createdBy}, status = #{status} WHERE id = #{id} INSERT INTO s_dtp_ysfw_medication_records archiveId, medicationDescription, medicationType, createdBy, createdAt, updatedAt, status #{archiveId}, #{medicationDescription}, #{medicationType}, #{createdBy}, #{createdAt}, #{updatedAt}, #{status} UPDATE s_dtp_ysfw_medication_records SET archiveId = #{archiveId}, medicationDescription = #{medicationDescription}, medicationType = #{medicationType}, createdBy = #{createdBy}, status = #{status} WHERE id = #{id} DELETE FROM s_dtp_ysfw_contacts WHERE id = #{id} DELETE FROM s_dtp_ysfw_family_history WHERE id = #{id} DELETE FROM s_dtp_ysfw_medication_records WHERE id = #{id} DELETE FROM s_dtp_ysfw_contacts WHERE archiveId = #{archiveId} DELETE FROM s_dtp_ysfw_family_history WHERE archiveId = #{archiveId} DELETE FROM s_dtp_ysfw_medication_records WHERE archiveId = #{archiveId}