INSERT INTO
  #{dynamic_securityFlow}.TLK_PUNISH (
    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_PUNISHDATE,
    ITEM_PUNISHTYPE,
    ITEM_PUNISHORG,
    ITEM_ISPUNISH,
    ITEM_PUNISHREASON,
    ITEM_PUNISHCONTENT,
    ITEM_REMARK,
    ID,
    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}',
    '__fr8SsBUPRncJ7t2hlJu',
    0,
    1,
    '__wGomeHJBz6CpLFCCl4y',
    '#{STATEINT}',
    '#{STATELABEL}',
    '#{AUDITORNAMES}',
    '#{LASTFLOWOPERATION}',
    '#{LASTMODIFIER}',
    '#{dynamic_domain_id}',
    '#{AUDITORLIST}',
    '#{COAUDITORLIST}',
    '#{STATELABELINFO}',
    '#{PREVAUDITNODE}',
    '#{PREVAUDITUSER}',
    '#{OPTIONITEM}',
    '#{SIGN}',
    '#{KINGGRIDSIGNATURE}',
    '#{ITEM_DOCUMENTTYPE}',
    '#{ITEM_DOCUMENTID}',
    '#{ITEM_PUNISHDATE}',
    '#{ITEM_PUNISHTYPE}',
    '#{ITEM_PUNISHORG}',
    '#{ITEM_ISPUNISH}',
    '#{ITEM_PUNISHREASON}',
    '#{ITEM_PUNISHCONTENT}',
    '#{ITEM_REMARK}',
    REPLACE (
      '#{id}',
      '__5RbmC3rOq62sBJwhOI2',
      '__fr8SsBUPRncJ7t2hlJu'
    ),
    '#{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_PUNISHDATE = '#{ITEM_PUNISHDATE}',
  ITEM_PUNISHTYPE = '#{ITEM_PUNISHTYPE}',
  ITEM_PUNISHORG = '#{ITEM_PUNISHORG}',
  ITEM_ISPUNISH = '#{ITEM_ISPUNISH}',
  ITEM_PUNISHREASON = '#{ITEM_PUNISHREASON}',
  ITEM_PUNISHCONTENT = '#{ITEM_PUNISHCONTENT}',
  ITEM_REMARK = '#{ITEM_REMARK}',
  ITEM_SECURITYNAME = '#{ITEM_SECURITYNAME}',
  ITEM_DOMAIN_ID = '#{ITEM_DOMAIN_ID}',
  ITEM_COMPANYNAME = '#{ITEM_COMPANYNAME}';