INSERT INTO #{dynamic_securityFlow}.TLK_AWARD (
	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_DOMAIN_ID,
	ITEM_COMPANYNAME,
	ITEM_SECURITYNAME,
	ITEM_DOCUMENTID,
	ITEM_AWARDDATE,
	ITEM_AWARDTYPE,
	ITEM_AWARDORG,
	ITEM_ISAWARD,
	ITEM_AWARDREASON,
	ITEM_AWARDCONTENT,
	ITEM_REMARK,
	ID,
	ITEM_DOCUMENTTYPE 
)
VALUES
	(
		'#{PARENT}',
		if('#{LASTMODIFIED}'='0000-00-00 00:00:00','#{CREATED}','#{LASTMODIFIED}'),
		'#{FORMNAME}',
		'#{STATE}',
		'#{AUDITUSER}',
		'#{AUDITDATE}',
		'#{AUTHOR}',
		'#{AUTHORDEPTID}',
		'#{AUTHOR_DEPT_INDEX}',
		'#{AUTHOR_USER_INDEX}',
		'#{CREATED}',
		'__E1AAiBjUGpGFfTaf9P8',
		'#{SUBFORMIDS}',
		'#{INITIATOR}',
		0,
		1,
		'__wGomeHJBz6CpLFCCl4y',
		'#{STATEINT}',
		'#{STATELABEL}',
		'#{AUDITORNAMES}',
		'#{LASTFLOWOPERATION}',
		'#{LASTMODIFIER}',
		'#{dynamic_domain_id}',
		'#{AUDITORLIST}',
		'#{COAUDITORLIST}',
		'#{STATELABELINFO}',
		'#{PREVAUDITNODE}',
		'#{PREVAUDITUSER}',
		'#{OPTIONITEM}',
		'#{SIGN}',
		'#{KINGGRIDSIGNATURE}',
		'#{dynamic_domain_id}',
		'#{ITEM_COMPANYNAME}',
		'#{ITEM_SECURITYNAME}',
		'#{ITEM_DOCUMENTID}',
		'#{ITEM_AWARDDATE}',
		'#{ITEM_AWARDTYPE}',
		'#{ITEM_AWARDORG}',
		'#{ITEM_ISAWARD}',
		'#{ITEM_AWARDREASON}',
		'#{ITEM_AWARDCONTENT}',
		'#{ITEM_REMARK}',
		REPLACE ( '#{id}', '__haqXMMUxji8yzj6UpJM', '__M5n24oDGotjyg7mu2Z0'),
		'#{ITEM_DOCUMENTTYPE}' 
	) 
	ON DUPLICATE KEY UPDATE LASTMODIFIED = '#{LASTMODIFIED}',
	ITEM_DOMAIN_ID = '#{ITEM_DOMAIN_ID}',
	ITEM_COMPANYNAME = '#{ITEM_COMPANYNAME}',
	ITEM_SECURITYNAME = '#{ITEM_SECURITYNAME}',
	ITEM_DOCUMENTID = '#{ITEM_DOCUMENTID}',
	ITEM_AWARDDATE = '#{ITEM_AWARDDATE}',
	ITEM_AWARDTYPE = '#{ITEM_AWARDTYPE}',
	ITEM_AWARDORG = '#{ITEM_AWARDORG}',
	ITEM_ISAWARD = '#{ITEM_ISAWARD}',
	ITEM_AWARDREASON = '#{ITEM_AWARDREASON}',
	ITEM_AWARDCONTENT = '#{ITEM_AWARDCONTENT}',
	ITEM_REMARK = '#{ITEM_REMARK}',
	ITEM_DOCUMENTTYPE = '#{ITEM_DOCUMENTTYPE}';
	
	