insert into email_fund_nav_collection(email_id,file_id, fund_name,register_number,price_date,
nav,cumulative_nav_withdrawal,exception_status,template_id,
isvalid, creatorid, createtime, updaterid, updatetime,asset_net,asset_share,parse_date,email,sender_email,email_date)
values
(#{itemDo.emailId},#{itemDo.fileId},#{itemDo.fundName},#{itemDo.registerNumber},#{itemDo.priceDate},
#{itemDo.nav},#{itemDo.cumulativeNavWithdrawal},#{itemDo.exceptionStatus},#{itemDo.templateId},
#{itemDo.isvalid}, #{itemDo.creatorId}, #{itemDo.createTime}, #{itemDo.updaterId}, #{itemDo.updateTime},
#{itemDo.assetNet}, #{itemDo.assetShare}, #{itemDo.parseDate}, #{itemDo.email}, #{itemDo.senderEmail}, #{itemDo.emailDate})
update email_fund_nav_collection set isvalid=0,updatetime=now() where file_id=#{fileId} and isvalid=1 and email_id=#{emailId}