insert into PPW_EMAIL.email_fund_asset(file_id, fund_id, fund_name,register_number,price_date,asset_net,asset_share,is_stored,exception_status,
isvalid, creatorid, createtime, updaterid, updatetime)
values
(#{itemDo.fileId},#{itemDo.fundId},#{itemDo.fundName},#{itemDo.registerNumber},#{itemDo.priceDate},#{itemDo.assetNet},#{itemDo.assetShare},#{itemDo.isStored},#{itemDo.exceptionStatus},
#{itemDo.isvalid}, #{itemDo.creatorId}, #{itemDo.createTime}, #{itemDo.updaterId}, #{itemDo.updateTime})
update PPW_EMAIL.email_fund_asset
fund_id = #{itemDo.fundId},
exception_status = #{itemDo.exceptionStatus},
updatetime=#{itemDo.updateTime},
is_stored=#{itemDo.isStored}
where isvalid = 1
and id = #{itemDo.id}
update PPW_EMAIL.email_fund_asset
set isvalid = 0,
updatetime= now()
where isvalid = 1
and file_id = #{fileId}