and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
fund_code, start_date, end_date, industry_code, industry_name, market_value, proportion
delete from tx_industry_distribution
where fund_code = #{fundCode,jdbcType=INTEGER}
and start_date = #{startDate,jdbcType=DATE}
and end_date = #{endDate,jdbcType=DATE}
and industry_code = #{industryCode,jdbcType=VARCHAR}
delete from tx_industry_distribution
insert into tx_industry_distribution (fund_code, start_date, end_date,
industry_code, industry_name, market_value,
proportion)
values (#{fundCode,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE},
#{industryCode,jdbcType=VARCHAR}, #{industryName,jdbcType=VARCHAR}, #{marketValue,jdbcType=DECIMAL},
#{proportion,jdbcType=DECIMAL})
insert into tx_industry_distribution
fund_code,
start_date,
end_date,
industry_code,
industry_name,
market_value,
proportion,
#{fundCode,jdbcType=INTEGER},
#{startDate,jdbcType=DATE},
#{endDate,jdbcType=DATE},
#{industryCode,jdbcType=VARCHAR},
#{industryName,jdbcType=VARCHAR},
#{marketValue,jdbcType=DECIMAL},
#{proportion,jdbcType=DECIMAL},
update tx_industry_distribution
fund_code = #{record.fundCode,jdbcType=INTEGER},
start_date = #{record.startDate,jdbcType=DATE},
end_date = #{record.endDate,jdbcType=DATE},
industry_code = #{record.industryCode,jdbcType=VARCHAR},
industry_name = #{record.industryName,jdbcType=VARCHAR},
market_value = #{record.marketValue,jdbcType=DECIMAL},
proportion = #{record.proportion,jdbcType=DECIMAL},
update tx_industry_distribution
set fund_code = #{record.fundCode,jdbcType=INTEGER},
start_date = #{record.startDate,jdbcType=DATE},
end_date = #{record.endDate,jdbcType=DATE},
industry_code = #{record.industryCode,jdbcType=VARCHAR},
industry_name = #{record.industryName,jdbcType=VARCHAR},
market_value = #{record.marketValue,jdbcType=DECIMAL},
proportion = #{record.proportion,jdbcType=DECIMAL}
update tx_industry_distribution
industry_name = #{industryName,jdbcType=VARCHAR},
market_value = #{marketValue,jdbcType=DECIMAL},
proportion = #{proportion,jdbcType=DECIMAL},
where fund_code = #{fundCode,jdbcType=INTEGER}
and start_date = #{startDate,jdbcType=DATE}
and end_date = #{endDate,jdbcType=DATE}
and industry_code = #{industryCode,jdbcType=VARCHAR}
update tx_industry_distribution
set industry_name = #{industryName,jdbcType=VARCHAR},
market_value = #{marketValue,jdbcType=DECIMAL},
proportion = #{proportion,jdbcType=DECIMAL}
where fund_code = #{fundCode,jdbcType=INTEGER}
and start_date = #{startDate,jdbcType=DATE}
and end_date = #{endDate,jdbcType=DATE}
and industry_code = #{industryCode,jdbcType=VARCHAR}
update tx_industry_distribution
when fund_code = #{item.fundCode,jdbcType=INTEGER} then #{item.industryName,jdbcType=VARCHAR}
when fund_code = #{item.fundCode,jdbcType=INTEGER} then #{item.marketValue,jdbcType=DECIMAL}
when fund_code = #{item.fundCode,jdbcType=INTEGER} then #{item.proportion,jdbcType=DECIMAL}
where fund_code in
#{item.fundCode,jdbcType=INTEGER}
insert into tx_industry_distribution
(fund_code, start_date, end_date, industry_code, industry_name, market_value, proportion
)
values
(#{item.fundCode,jdbcType=INTEGER}, #{item.startDate,jdbcType=DATE}, #{item.endDate,jdbcType=DATE},
#{item.industryCode,jdbcType=VARCHAR}, #{item.industryName,jdbcType=VARCHAR}, #{item.marketValue,jdbcType=DECIMAL},
#{item.proportion,jdbcType=DECIMAL})
insert into tx_industry_distribution
(fund_code, start_date, end_date, industry_code, industry_name, market_value, proportion
)
values
(#{fundCode,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE},
#{industryCode,jdbcType=VARCHAR}, #{industryName,jdbcType=VARCHAR}, #{marketValue,jdbcType=DECIMAL},
#{proportion,jdbcType=DECIMAL})
on duplicate key update
fund_code = #{fundCode,jdbcType=INTEGER},
start_date = #{startDate,jdbcType=DATE},
end_date = #{endDate,jdbcType=DATE},
industry_code = #{industryCode,jdbcType=VARCHAR},
industry_name = #{industryName,jdbcType=VARCHAR},
market_value = #{marketValue,jdbcType=DECIMAL},
proportion = #{proportion,jdbcType=DECIMAL}
insert into tx_industry_distribution
fund_code,
start_date,
end_date,
industry_code,
industry_name,
market_value,
proportion,
values
#{fundCode,jdbcType=INTEGER},
#{startDate,jdbcType=DATE},
#{endDate,jdbcType=DATE},
#{industryCode,jdbcType=VARCHAR},
#{industryName,jdbcType=VARCHAR},
#{marketValue,jdbcType=DECIMAL},
#{proportion,jdbcType=DECIMAL},
on duplicate key update
fund_code = #{fundCode,jdbcType=INTEGER},
start_date = #{startDate,jdbcType=DATE},
end_date = #{endDate,jdbcType=DATE},
industry_code = #{industryCode,jdbcType=VARCHAR},
industry_name = #{industryName,jdbcType=VARCHAR},
market_value = #{marketValue,jdbcType=DECIMAL},
proportion = #{proportion,jdbcType=DECIMAL},