insert into PPW_EMAIL.email_fund_nav(file_id, fund_id, fund_name,register_number,price_date,
nav,cumulative_nav_withdrawal,is_stored,exception_status,
isvalid, creatorid, createtime, updaterid, updatetime)
values
(#{itemDo.fileId},#{itemDo.fundId},#{itemDo.fundName},#{itemDo.registerNumber},#{itemDo.priceDate},
#{itemDo.nav},#{itemDo.cumulativeNavWithdrawal},#{itemDo.isStored},#{itemDo.exceptionStatus},
#{itemDo.isvalid}, #{itemDo.creatorId}, #{itemDo.createTime}, #{itemDo.updaterId}, #{itemDo.updateTime})
update PPW_EMAIL.email_fund_nav
fund_id = #{itemDo.fundId},
exception_status = #{itemDo.exceptionStatus},
updatetime=#{itemDo.updateTime}
where isvalid = 1
and id = #{itemDo.id}
update PPW_EMAIL.email_fund_nav nav set isvalid = 0,updatetime=sysdate() where file_id=#{fileId}