insert into nav(fund_id,price_date,nav,cumulative_nav,cumulative_nav_withdrawal, isvalid, creatorid, createtime, updaterid, updatetime,channel_id) values (#{itemDo.fundId},#{itemDo.priceDate},#{itemDo.nav},#{itemDo.cumulativeNav},#{itemDo.cumulativeNavWithdrawal}, #{itemDo.isvalid}, #{itemDo.creatorId}, #{itemDo.createTime}, #{itemDo.updaterId}, #{itemDo.updateTime}, #{itemDo.channelId}) update 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} and channel_id = #{itemDo.channelId} insert into nav(fund_id,price_date,nav,cumulative_nav,cumulative_nav_withdrawal, isvalid, creatorid, createtime, updaterid, updatetime,channel_id) values (#{fundId},#{priceDate},#{nav},#{cumulativeNav},#{cumulativeNavWithdrawal}, #{isvalid}, #{creatorId}, #{createTime}, #{updaterId}, #{updateTime},#{channelId}) update nav nav = #{nav}, cumulative_nav_withdrawal = #{cumulativeNavWithdrawal}, updatetime=#{updateTime}, updaterid=#{updaterId} where isvalid = 1 and id=#{id} update nav set isvalid=0,updatetime=now() where fund_id=#{fundId} and price_date in #{priceDate} update nav set isvalid=0,updatetime=now(),updaterid=#{updaterId} where fund_id=#{fundId} and price_date=#{priceDate}