INSERT INTO
  #{dynamic_securityFlow}.TLK_GOODPERSON (
    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_DOCUMENTTYPE,
    ITEM_DOCUMENTID,
    ITEM_GOODPERSONDATE,
    ITEM_GOODPERSONCONTENT,
    ITEM_REMARK,
    ID,
    ITEM_GOODPERSONTYPE,
    ITEM_SECURITYNAME,
    ITEM_DOMAIN_ID,
    ITEM_COMPANYNAME,
    AUTHORDEPTID,
    AUTHOR_USER_INDEX,
    SUBFORMIDS,
    INITIATOR
  )
VALUES
  (
    '#{PARENT}',
    '#{LASTMODIFIED}',
    '#{FORMNAME}',
    '#{STATE}',
    '#{AUDITUSER}',
    '#{AUDITDATE}',
    '#{AUTHOR}',
    '#{AUTHOR_DEPT_INDEX}',
    '#{CREATED}',
    '__VLlklVhKJnvLcwFil3n',
    0,
    1,
    '__wGomeHJBz6CpLFCCl4y',
    '#{STATEINT}',
    '#{STATELABEL}',
    '#{AUDITORNAMES}',
    '#{LASTFLOWOPERATION}',
    '#{LASTMODIFIER}',
    '#{dynamic_domain_id}',
    '#{AUDITORLIST}',
    '#{COAUDITORLIST}',
    '#{STATELABELINFO}',
    '#{PREVAUDITNODE}',
    '#{PREVAUDITUSER}',
    '#{OPTIONITEM}',
    '#{SIGN}',
    '#{KINGGRIDSIGNATURE}',
    '#{ITEM_DOCUMENTTYPE}',
    '#{ITEM_DOCUMENTID}',
    '#{ITEM_GOODPERSONDATE}',
    '#{ITEM_GOODPERSONCONTENT}',
    '#{ITEM_REMARK}',
    REPLACE (
      '#{id}',
      '__Jm07nGFySNox8g1bKTu',
      '__VLlklVhKJnvLcwFil3n'
    ),
    '#{ITEM_GOODPERSONTYPE}',
    '#{ITEM_SECURITYNAME}',
    '#{dynamic_domain_id}',
    '#{ITEM_COMPANYNAME}',
    '#{AUTHORDEPTID}',
    '#{AUTHOR_USER_INDEX}',
    '#{SUBFORMIDS}',
    '#{INITIATOR}'
  ) ON DUPLICATE KEY
UPDATE
  LASTMODIFIED = '#{LASTMODIFIED}',
  ITEM_DOCUMENTTYPE = '#{ITEM_DOCUMENTTYPE}',
  ITEM_DOCUMENTID = '#{ITEM_DOCUMENTID}',
  ITEM_GOODPERSONDATE = '#{ITEM_GOODPERSONDATE}',
  ITEM_GOODPERSONCONTENT = '#{ITEM_GOODPERSONCONTENT}',
  ITEM_REMARK = '#{ITEM_REMARK}',
  ITEM_GOODPERSONTYPE = '#{ITEM_GOODPERSONTYPE}',
  ITEM_SECURITYNAME = '#{ITEM_SECURITYNAME}',
  ITEM_DOMAIN_ID = '#{ITEM_DOMAIN_ID}',
  ITEM_COMPANYNAME = '#{ITEM_COMPANYNAME}';