INSERT INTO
  #{dynamic_securityFlow}.tlk_SetSupervise (
    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_domain_id,
    ITEM_registerAddress,
    ITEM_registerAddressID,
    ITEM_registerPoliceAddress,
    ITEM_registerPoliceAddressID,
    ITEM_registerPoliceIDIndex,
    ITEM_officeAddress,
    ITEM_officeAddressID,
    ITEM_officePoliceAddress,
    ITEM_officePoliceAddressID,
    ITEM_officePoliceIDIndex,
    ID,
    AUTHORDEPTID,
    AUTHOR_USER_INDEX,
    SUBFORMIDS,
    INITIATOR
  )
VALUES
  (
    '#{PARENT}',
    '#{LASTMODIFIED}',
    '#{FORMNAME}',
    '#{STATE}',
    '#{AUDITUSER}',
    '#{AUDITDATE}',
    '#{AUTHOR}',
    '#{AUTHOR_DEPT_INDEX}',
    '#{CREATED}',
    '__DRWRVHekZL0pUfzfTwb',
    0,
    1,
    '__wGomeHJBz6CpLFCCl4y',
    '#{STATEINT}',
    '#{STATELABEL}',
    '#{AUDITORNAMES}',
    '#{LASTFLOWOPERATION}',
    '#{LASTMODIFIER}',
    '#{dynamic_domain_id}',
    '#{AUDITORLIST}',
    '#{COAUDITORLIST}',
    '#{STATELABELINFO}',
    '#{PREVAUDITNODE}',
    '#{PREVAUDITUSER}',
    '#{OPTIONITEM}',
    '#{SIGN}',
    '#{KINGGRIDSIGNATURE}',
    '#{ITEM_domain_id}',
    '#{ITEM_registerAddress}',
    '#{ITEM_registerAddressID}',
    '#{ITEM_registerPoliceAddress}',
    '#{ITEM_registerPoliceAddressID}',
    '#{ITEM_registerPoliceIDIndex}',
    '#{ITEM_officeAddress}',
    '#{ITEM_officeAddressID}',
    '#{ITEM_officePoliceAddress}',
    '#{ITEM_officePoliceAddressID}',
    '#{ITEM_officePoliceIDIndex}',
    '#{ID}',
    '#{AUTHORDEPTID}',
    '#{AUTHOR_USER_INDEX}',
    '#{SUBFORMIDS}',
    '#{INITIATOR}'
  ) ON DUPLICATE KEY
UPDATE  APPLICATIONID='__wGomeHJBz6CpLFCCl4y';
UPDATE tlk_SetSupervise set
  LASTMODIFIED = '#{LASTMODIFIED}',
  ITEM_domain_id = '#{ITEM_domain_id}',
  ITEM_registerAddress = '#{ITEM_registerAddress}',
  ITEM_registerAddressID = '#{ITEM_registerAddressID}',
  ITEM_registerPoliceAddress = '#{ITEM_registerPoliceAddress}',
  ITEM_registerPoliceAddressID = '#{ITEM_registerPoliceAddressID}',
  ITEM_registerPoliceIDIndex = '#{ITEM_registerPoliceIDIndex}',
  ITEM_officeAddress = '#{ITEM_officeAddress}',
  ITEM_officeAddressID = '#{ITEM_officeAddressID}',
  ITEM_officePoliceAddress = '#{ITEM_officePoliceAddress}',
  ITEM_officePoliceAddressID = '#{ITEM_officePoliceAddressID}',
  ITEM_officePoliceIDIndex = '#{ITEM_officePoliceIDIndex}'
WHERE ID='#{ID}' and LASTMODIFIED< '#{LASTMODIFIED}'