INSERT INTO
  baibaodunflow.tlk_importantinfoerror (
    PARENT,
    LASTMODIFIED,
    FORMNAME,
    STATE,
    AUDITUSER,
    AUDITDATE,
    AUTHOR,
    AUTHOR_DEPT_INDEX,
    CREATED,
    FORMID,
    ISTMP,
    VERSIONS,
    APPLICATIONID,
    STATEINT,
    STATELABEL,
    AUDITORNAMES,
    LASTFLOWOPERATION,
    LASTMODIFIER,
    DOMAINID,
    AUDITORLIST,
    COAUDITORLIST,
    STATELABELINFO,
    PREVAUDITNODE,
    PREVAUDITUSER,
    OPTIONITEM,
    SIGN,
    KINGGRIDSIGNATURE,
    ITEM_phone,
    ITEM_questionType,
    ITEM_securityName,
    ITEM_realtimeName,
    ITEM_documentID,
    ITEM_realtimeDocumentID,
    ITEM_companyName,
    ITEM_domain_id,
    ITEM_workStatus,
    ITEM_compareTime,
    ITEM_registerPoliceAddressID,
    ITEM_registerPoliceAddress,
    ITEM_policeStatus,
    ITEM_policeInternalAdvice,
    ITEM_policeExternalAdvice,
    ITEM_policeSuggestedTreatment,
    ITEM_policeMan,
    ITEM_policeOrganization,
    ITEM_policeTime,
    ITEM_companyMan,
    ITEM_companyTime,
    ITEM_companyStatus,
    ITEM_companyTreatment,
    ID,
    AUTHORDEPTID,
    AUTHOR_USER_INDEX,
    SUBFORMIDS,
    INITIATOR
  )
VALUES
  (
    '#{PARENT}',
    '#{LASTMODIFIED}',
    '#{FORMNAME}',
    '#{STATE}',
    '#{AUDITUSER}',
    '#{AUDITDATE}',
    '#{AUTHOR}',
    '#{AUTHOR_DEPT_INDEX}',
    '#{CREATED}',
    '__ZOM9gsTgGeHfxRDdeRh',
    '#{ISTMP}',
    '#{VERSIONS}',
    '__DXZvc8mnEmDqMARhK7G',
    '#{STATEINT}',
    '#{STATELABEL}',
    '#{AUDITORNAMES}',
    '#{LASTFLOWOPERATION}',
    '#{LASTMODIFIER}',
    '#{ITEM_domain_id}',
    '#{AUDITORLIST}',
    '#{COAUDITORLIST}',
    '#{STATELABELINFO}',
    '#{PREVAUDITNODE}',
    '#{PREVAUDITUSER}',
    '#{OPTIONITEM}',
    '#{SIGN}',
    '#{KINGGRIDSIGNATURE}',
    '#{ITEM_phone}',
    '#{ITEM_questionType}',
    '#{ITEM_securityName}',
    '#{ITEM_realtimeName}',
    '#{ITEM_documentID}',
    '#{ITEM_realtimeDocumentID}',
    '#{ITEM_companyName}',
    '#{ITEM_domain_id}',
    '#{ITEM_workStatus}',
    '#{ITEM_compareTime}',
    '#{ITEM_registerPoliceAddressID}',
    '#{ITEM_registerPoliceAddress}',
    '#{ITEM_policeStatus}',
    '#{ITEM_policeInternalAdvice}',
    '#{ITEM_policeExternalAdvice}',
    '#{ITEM_policeSuggestedTreatment}',
    '#{ITEM_policeMan}',
    '#{ITEM_policeOrganization}',
    '#{ITEM_policeTime}',
    '#{ITEM_companyMan}',
    '#{ITEM_companyTime}',
    '#{ITEM_companyStatus}',
    '#{ITEM_companyTreatment}',
    REPLACE (
      '#{ID}',
      '__bbQkMSNNzjUEZj5stQg',
      '__ZOM9gsTgGeHfxRDdeRh'
    ),
    '#{AUTHORDEPTID}',
    '#{AUTHOR_USER_INDEX}',
    '#{SUBFORMIDS}',
    '#{INITIATOR}'
  ) ON DUPLICATE KEY
UPDATE APPLICATIONID='__DXZvc8mnEmDqMARhK7G';
UPDATE baibaodunflow.tlk_importantinfoerror set 
  LASTMODIFIED = '#{LASTMODIFIED}',
  ITEM_policeStatus = '#{ITEM_policeStatus}',
  ITEM_policeInternalAdvice = '#{ITEM_policeInternalAdvice}',
  ITEM_policeExternalAdvice = '#{ITEM_policeExternalAdvice}',
  ITEM_policeSuggestedTreatment = '#{ITEM_policeSuggestedTreatment}',
  ITEM_policeMan = '#{ITEM_policeMan}',
  ITEM_policeOrganization = '#{ITEM_policeOrganization}',
  ITEM_policeTime = '#{ITEM_policeTime}'
WHERE ID=REPLACE (
      '#{ID}',
      '__bbQkMSNNzjUEZj5stQg',
      '__ZOM9gsTgGeHfxRDdeRh'
    )