INSERT INTO #{dynamic_securityFlow}.TLK_VEHICLE_INVENTORY_LOG (
	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_VEHICLENUM,
	ITEM_VEHICLETYPE,
	ITEM_VEHICLEBRAND,
	ITEM_INVENTORYTYPE,
	ITEM_SECURITYNAME,
	ITEM_SECURITYCERTIFICATENUM,
	ITEM_SECURITYCERTIFICATETYPE,
	ITEM_INVENTORYDATE,
	ITEM_REGISTRANT,
	ITEM_REGISTRANTDATE,
	ITEM_ANNOTATION,
	ITEM_SCRAPREASON,
	ITEM_LOSTSECURITYCERTIFICATENAME,
	ITEM_LOSTSECURITYCERTIFICATETYPE,
	ITEM_LOSTSECURITYCERTIFICATENUM,
	ITEM_LOSTREASON,
	ITEM_VEHICLEID,
	ID,
	AUTHORDEPTID,
	AUTHOR_USER_INDEX,
	SUBFORMIDS,
	INITIATOR 
)
VALUES
	(
		'#{PARENT}',
		'#{LASTMODIFIED}',
		'#{FORMNAME}',
		'#{STATE}',
		'#{AUDITUSER}',
		'#{AUDITDATE}',
		'#{AUTHOR}',
		'#{AUTHOR_DEPT_INDEX}',
		'#{CREATED}',
		'__hCLeVuJLyCOWWZkZjbo',
		0,
		1,
		'__wGomeHJBz6CpLFCCl4y',
		'#{STATEINT}',
		'#{STATELABEL}',
		'#{AUDITORNAMES}',
		'#{LASTFLOWOPERATION}',
		'#{LASTMODIFIER}',
		'#{dynamic_domain_id}',
		'#{AUDITORLIST}',
		'#{COAUDITORLIST}',
		'#{STATELABELINFO}',
		'#{PREVAUDITNODE}',
		'#{PREVAUDITUSER}',
		'#{OPTIONITEM}',
		'#{SIGN}',
		'#{KINGGRIDSIGNATURE}',
		'#{ITEM_VEHICLENUM}',
		'#{ITEM_VEHICLETYPE}',
		'#{ITEM_VEHICLEBRAND}',
		'#{ITEM_INVENTORYTYPE}',
		'#{ITEM_SECURITYNAME}',
		'#{ITEM_SECURITYCERTIFICATENUM}',
		'#{ITEM_SECURITYCERTIFICATETYPE}',
		'#{ITEM_INVENTORYDATE}',
		'#{ITEM_REGISTRANT}',
		'#{ITEM_REGISTRANTDATE}',
		'#{ITEM_ANNOTATION}',
		'#{ITEM_SCRAPREASON}',
		'#{ITEM_LOSTSECURITYCERTIFICATENAME}',
		'#{ITEM_LOSTSECURITYCERTIFICATETYPE}',
		'#{ITEM_LOSTSECURITYCERTIFICATENUM}',
		'#{ITEM_LOSTREASON}',
		REPLACE ( '#{ITEM_vehicleID}', '__haqXMMUxji8yzj6UpJM', '__M5n24oDGotjyg7mu2Z0' ),
		REPLACE ( '#{id}', '__YwSSnzLuaFEq7UcYujY', '__hCLeVuJLyCOWWZkZjbo' ),
		'#{AUTHORDEPTID}',
		'#{AUTHOR_USER_INDEX}',
		'#{SUBFORMIDS}',
		'#{INITIATOR}'
	) 
	ON DUPLICATE KEY UPDATE LASTMODIFIED = '#{LASTMODIFIED}',
	ITEM_VEHICLENUM = '#{ITEM_VEHICLENUM}',
	ITEM_VEHICLETYPE = '#{ITEM_VEHICLETYPE}',
	ITEM_VEHICLEBRAND = '#{ITEM_VEHICLEBRAND}',
	ITEM_INVENTORYTYPE = '#{ITEM_INVENTORYTYPE}',
	ITEM_SECURITYNAME = '#{ITEM_SECURITYNAME}',
	ITEM_SECURITYCERTIFICATENUM = '#{ITEM_SECURITYCERTIFICATENUM}',
	ITEM_SECURITYCERTIFICATETYPE = '#{ITEM_SECURITYCERTIFICATETYPE}',
	ITEM_INVENTORYDATE = '#{ITEM_INVENTORYDATE}',
	ITEM_REGISTRANT = '#{ITEM_REGISTRANT}',
	ITEM_REGISTRANTDATE = '#{ITEM_REGISTRANTDATE}',
	ITEM_ANNOTATION = '#{ITEM_ANNOTATION}',
	ITEM_SCRAPREASON = '#{ITEM_SCRAPREASON}',
	ITEM_LOSTSECURITYCERTIFICATENAME = '#{ITEM_LOSTSECURITYCERTIFICATENAME}',
	ITEM_LOSTSECURITYCERTIFICATETYPE = '#{ITEM_LOSTSECURITYCERTIFICATETYPE}',
	ITEM_LOSTSECURITYCERTIFICATENUM = '#{ITEM_LOSTSECURITYCERTIFICATENUM}',
	ITEM_LOSTREASON = '#{ITEM_LOSTREASON}',
	ITEM_VEHICLEID = REPLACE ( '#{ITEM_vehicleID}', '__haqXMMUxji8yzj6UpJM', '__M5n24oDGotjyg7mu2Z0' );