  INSERT INTO
   #{dynamic_securityFlow}.TLK_JFDEVICE  (
	  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_EQUIPTYPE,
	  ITEM_EQUIPNO,
	  ITEM_EQUIPNAME,
	  ITEM_EQUIPTOTAL,
	  ITEM_REMAINQUALITY,
	  ITEM_FIRSTSTORAGETIME,
	  ID,
	  ITEM_DOMAIN_ID
	)
  VALUES
	(
	  '#{PARENT}',
	  '#{LASTMODIFIED}',
	  '#{FORMNAME}',
	  '#{STATE}',
	  '#{AUDITUSER}',
	  '#{AUDITDATE}',
	  '#{AUTHOR}',
	  '#{AUTHORDEPTID}',
	  '#{AUTHOR_DEPT_INDEX}',
	  '#{AUTHOR_USER_INDEX}',
	  '#{CREATED}',
	  '__Ey49DY2zkSwWaRs29Kf',
	  '#{SUBFORMIDS}',
	  '#{INITIATOR}',
	  0,
	  1,
	  '__wGomeHJBz6CpLFCCl4y',
	  '#{STATEINT}',
	  '#{STATELABEL}',
	  '#{AUDITORNAMES}',
	  '#{LASTFLOWOPERATION}',
	  '#{LASTMODIFIER}',
	  '#{dynamic_domain_id}',
	  '#{AUDITORLIST}',
	  '#{COAUDITORLIST}',
	  '#{STATELABELINFO}',
	  '#{PREVAUDITNODE}',
	  '#{PREVAUDITUSER}',
	  '#{OPTIONITEM}',
	  '#{SIGN}',
	  '#{KINGGRIDSIGNATURE}',
	  '#{ITEM_EQUIPTYPE}',
	  '#{ITEM_EQUIPNO}',
	  '#{ITEM_EQUIPNAME}',
	  '#{ITEM_EQUIPTOTAL}',
	  '#{ITEM_REMAINQUALITY}',
	  '#{ITEM_FIRSTSTORAGETIME}',
	  REPLACE ( '#{id}', '__l7BrzXMoqKcYK2XaavK', '__Ey49DY2zkSwWaRs29Kf' ),
	  '#{domainid}'
	) ON DUPLICATE KEY
  UPDATE
	LASTMODIFIED = '#{LASTMODIFIED}',
	ITEM_EQUIPTYPE = '#{ITEM_EQUIPTYPE}',
	ITEM_EQUIPNO = '#{ITEM_EQUIPNO}',
	ITEM_EQUIPNAME = '#{ITEM_EQUIPNAME}',
	ITEM_EQUIPTOTAL = '#{ITEM_EQUIPTOTAL}',
	ITEM_REMAINQUALITY = '#{ITEM_REMAINQUALITY}',
	ITEM_FIRSTSTORAGETIME = '#{ITEM_FIRSTSTORAGETIME}',
	ITEM_DOMAIN_ID = '#{ITEM_DOMAIN_ID}';