INSERT INTO #{dynamic_securityFlow}.`tlk_LegalChangeK`(`PARENT`, `LASTMODIFIED`, `FORMNAME`, `STATE`, `AUDITUSER`, `AUDITDATE`, `AUTHOR`, `AUTHORDEPTID`, `AUTHOR_DEPT_INDEX`, `AUTHOR_USER_INDEX`, `CREATED`, `FORMID`, `SUBFORMIDS`, `INITIATOR`, `ISTMP`, `VERSIONS`, `APPLICATIONID`, `STATEINT`, `STATELABEL`, `AUDITORNAMES`, `LASTFLOWOPERATION`, `LASTMODIFIER`, `DOMAINID`, `AUDITORLIST`, `COAUDITORLIST`, `STATELABELINFO`, `PREVAUDITNODE`, `PREVAUDITUSER`, `OPTIONITEM`, `SIGN`, `KINGGRIDSIGNATURE`, `ITEM_region`, `ITEM_auditStatus`, `ITEM_officePoliceAddress`, `ITEM_officePoliceAddressID`, `ITEM_officePoliceIDIndex`, `ITEM_companyName`, `ITEM_address`, `ITEM_securityTrainPermitNo`, `ITEM_legalName`, `ITEM_legalSex`, `ITEM_officeStartTime`, `ITEM_officeEndTime`, `ITEM_legalType`, `ITEM_legalCardnumber`, `ITEM_appointmentLegalName`, `ITEM_appointmentLegalSex`, `ITEM_appointmentLegalBirth`, `ITEM_appointmentLegalNationality`, `ITEM_appointmentLegalCulture`, `ITEM_appointmentLegalPhone`, `ITEM_appointmentLegalType`, `ITEM_appointmentLegalCardnumber`, `ITEM_originalIssuingDate`, `ITEM_remark`, `ITEM_file`, `ITEM_rejectReason`, `ITEM_domain_id`, `ID`) VALUES (NULL, '#{LASTMODIFIED}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '#{CREATED}', '__5pbeYTFpNEdQdpDbtG7', NULL, NULL, NULL, NULL, '__wGomeHJBz6CpLFCCl4y', NULL, '', NULL, NULL, NULL, '#{dynamic_domain_id}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '#{ITEM_region}', '#{ITEM_auditStatus}', '#{ITEM_officePoliceAddress}', '#{ITEM_officePoliceAddressID}', '#{ITEM_officePoliceIDIndex}', '#{ITEM_companyName}', '#{ITEM_address}', '#{ITEM_securityTrainPermitNo}', '#{ITEM_legalName}', '#{ITEM_legalSex}', '#{ITEM_officeStartTime}', '#{ITEM_officeEndTime}', '#{ITEM_legalType}', '#{ITEM_legalCardnumber}', '#{ITEM_appointmentLegalName}', '#{ITEM_appointmentLegalSex}', '#{ITEM_appointmentLegalBirth}', '#{ITEM_appointmentLegalNationality}', '#{ITEM_appointmentLegalCulture}', '#{ITEM_appointmentLegalPhone}', '#{ITEM_appointmentLegalType}', '#{ITEM_appointmentLegalCardnumber}', '#{ITEM_originalIssuingDate}', '#{ITEM_remark}', '#{ITEM_file}', '#{ITEM_rejectReason}', '#{ITEM_domain_id}', REPLACE('#{id}','__PX0OFiN9BKKt6hjbEy9','__5pbeYTFpNEdQdpDbtG7')) ON DUPLICATE KEY UPDATE domainid='#{dynamic_domain_id}';
