insert into PPW_EMAIL.nav(fund_id,price_date,nav,cumulative_nav,cumulative_nav_withdrawal, isvalid, creatorid, createtime, updaterid, updatetime) values (#{itemDo.fundId},#{itemDo.priceDate},#{itemDo.nav},#{itemDo.cumulativeNav},#{itemDo.cumulativeNavWithdrawal}, #{itemDo.isvalid}, #{itemDo.creatorId}, #{itemDo.createTime}, #{itemDo.updaterId}, #{itemDo.updateTime}) update PPW_EMAIL.nav nav = #{itemDo.nav}, cumulative_nav_withdrawal = #{itemDo.cumulativeNavWithdrawal}, updatetime=#{itemDo.updateTime} where isvalid = 1 and fund_id = #{itemDo.fundId} and price_date = #{itemDo.priceDate} insert into PPW_EMAIL.nav(fund_id,price_date,nav,cumulative_nav,cumulative_nav_withdrawal, isvalid, creatorid, createtime, updaterid, updatetime) values (#{fundId},#{priceDate},#{nav},#{cumulativeNav},#{cumulativeNavWithdrawal}, #{isvalid}, #{creatorId}, #{createTime}, #{updaterId}, #{updateTime}) update PPW_EMAIL.nav nav = #{nav}, cumulative_nav_withdrawal = #{cumulativeNavWithdrawal}, updatetime=#{updateTime} where isvalid = 1 and id=#{id} update PPW_EMAIL.nav set isvalid =0,updatetime=sysdate(),updaterid=#{updaterId} where fund_id=#{fundId} and price_date=#{priceDate} and isvalid =1