Commit 8847eaaa authored by 张亚辉's avatar 张亚辉

基金搜索

parents b1991a48 a7d9e2c1
......@@ -266,6 +266,11 @@ public class FundInfo {
private String redeemDay;
/**
* 1 有净值 0 没有净值
*/
private Integer hasNav;
/**
* 券商资管产品特点
*/
......
......@@ -3389,6 +3389,66 @@ public class FundInfoExample {
addCriterion("redeem_day not between", value1, value2, "redeemDay");
return (Criteria) this;
}
public Criteria andHasNavIsNull() {
addCriterion("has_nav is null");
return (Criteria) this;
}
public Criteria andHasNavIsNotNull() {
addCriterion("has_nav is not null");
return (Criteria) this;
}
public Criteria andHasNavEqualTo(Integer value) {
addCriterion("has_nav =", value, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavNotEqualTo(Integer value) {
addCriterion("has_nav <>", value, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavGreaterThan(Integer value) {
addCriterion("has_nav >", value, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavGreaterThanOrEqualTo(Integer value) {
addCriterion("has_nav >=", value, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavLessThan(Integer value) {
addCriterion("has_nav <", value, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavLessThanOrEqualTo(Integer value) {
addCriterion("has_nav <=", value, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavIn(List<Integer> values) {
addCriterion("has_nav in", values, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavNotIn(List<Integer> values) {
addCriterion("has_nav not in", values, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavBetween(Integer value1, Integer value2) {
addCriterion("has_nav between", value1, value2, "hasNav");
return (Criteria) this;
}
public Criteria andHasNavNotBetween(Integer value1, Integer value2) {
addCriterion("has_nav not between", value1, value2, "hasNav");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
......
......@@ -3,7 +3,7 @@
<mapper namespace="com.tanpu.fund.mapper.generator.FundInfoMapper">
<resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
<!--@Table fund_info-->
<!--@Table tamp_fund.fund_info-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="p_fund_id" jdbcType="VARCHAR" property="pFundId" />
<result column="fund_name" jdbcType="VARCHAR" property="fundName" />
......@@ -54,10 +54,11 @@
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="apply_day" jdbcType="VARCHAR" property="applyDay" />
<result column="redeem_day" jdbcType="VARCHAR" property="redeemDay" />
<result column="has_nav" jdbcType="INTEGER" property="hasNav" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
<!--@Table fund_info-->
<!--@Table tamp_fund.fund_info-->
<result column="fund_characteristic" jdbcType="LONGVARCHAR" property="fundCharacteristic" />
<result column="investment_scope" jdbcType="LONGVARCHAR" property="investmentScope" />
<result column="investment_restriction" jdbcType="LONGVARCHAR" property="investmentRestriction" />
......@@ -130,18 +131,18 @@
</sql>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day
id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav
</sql>
<sql id="Blob_Column_List">
<!--@mbg.generated-->
fund_characteristic, investment_scope, investment_restriction, fund_investment_philosophy,
fund_characteristic, investment_scope, investment_restriction, fund_investment_philosophy,
fund_strategy_description, combine_target, fit_group, combine_comment, transfer_comment
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfoExample" resultMap="ResultMapWithBLOBs">
......@@ -153,7 +154,7 @@
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from fund_info
from tamp_fund.fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
......@@ -168,7 +169,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from fund_info
from tamp_fund.fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
......@@ -178,75 +179,75 @@
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
<!--@mbg.generated-->
select
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from fund_info
from tamp_fund.fund_info
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--@mbg.generated-->
delete from fund_info
delete from tamp_fund.fund_info
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample">
<!--@mbg.generated-->
delete from fund_info
delete from tamp_fund.fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into fund_info (id, p_fund_id, fund_name,
fund_short_name, fund_structure, fund_type,
`type`, raise_type, base_currency,
inception_date, domicile, primary_benchmark_id,
lockup_period, open_day, duration,
advisor_id, custodian_id, broker_id,
broker_future_id, liquidation_agency_id, trust_id,
investment_consultant_id, administrator_id,
legal_counsel_id, auditor_id, nav_frequency,
performance_disclosure_mark, register_number,
register_date, isvisible, istiered,
is_ranking, is_rating, special_tips,
amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level,
create_by, create_time, update_by,
update_time, data_sources, `status`,
delete_tag, sort, apply_day,
redeem_day, fund_characteristic, investment_scope,
investment_restriction, fund_investment_philosophy,
fund_strategy_description, combine_target,
fit_group, combine_comment, transfer_comment
)
values (#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
#{inceptionDate,jdbcType=DATE}, #{domicile,jdbcType=INTEGER}, #{primaryBenchmarkId,jdbcType=VARCHAR},
#{lockupPeriod,jdbcType=INTEGER}, #{openDay,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER},
#{advisorId,jdbcType=VARCHAR}, #{custodianId,jdbcType=VARCHAR}, #{brokerId,jdbcType=VARCHAR},
#{brokerFutureId,jdbcType=VARCHAR}, #{liquidationAgencyId,jdbcType=VARCHAR}, #{trustId,jdbcType=VARCHAR},
#{investmentConsultantId,jdbcType=VARCHAR}, #{administratorId,jdbcType=VARCHAR},
#{legalCounselId,jdbcType=VARCHAR}, #{auditorId,jdbcType=VARCHAR}, #{navFrequency,jdbcType=INTEGER},
#{performanceDisclosureMark,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR},
#{registerDate,jdbcType=DATE}, #{isvisible,jdbcType=INTEGER}, #{istiered,jdbcType=INTEGER},
#{isRanking,jdbcType=INTEGER}, #{isRating,jdbcType=INTEGER}, #{specialTips,jdbcType=VARCHAR},
#{amacUrl,jdbcType=VARCHAR}, #{navSourceType,jdbcType=INTEGER}, #{descInfo,jdbcType=VARCHAR},
#{strategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER}, #{riskLevel,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{fundCharacteristic,jdbcType=LONGVARCHAR}, #{investmentScope,jdbcType=LONGVARCHAR},
#{investmentRestriction,jdbcType=LONGVARCHAR}, #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
#{fundStrategyDescription,jdbcType=LONGVARCHAR}, #{combineTarget,jdbcType=LONGVARCHAR},
#{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR}, #{transferComment,jdbcType=LONGVARCHAR}
)
insert into tamp_fund.fund_info (id, p_fund_id, fund_name,
fund_short_name, fund_structure, fund_type,
`type`, raise_type, base_currency,
inception_date, domicile, primary_benchmark_id,
lockup_period, open_day, duration,
advisor_id, custodian_id, broker_id,
broker_future_id, liquidation_agency_id, trust_id,
investment_consultant_id, administrator_id,
legal_counsel_id, auditor_id, nav_frequency,
performance_disclosure_mark, register_number,
register_date, isvisible, istiered,
is_ranking, is_rating, special_tips,
amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level,
create_by, create_time, update_by,
update_time, data_sources, `status`,
delete_tag, sort, apply_day,
redeem_day, has_nav, fund_characteristic,
investment_scope, investment_restriction,
fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment,
transfer_comment)
values (#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
#{inceptionDate,jdbcType=DATE}, #{domicile,jdbcType=INTEGER}, #{primaryBenchmarkId,jdbcType=VARCHAR},
#{lockupPeriod,jdbcType=INTEGER}, #{openDay,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER},
#{advisorId,jdbcType=VARCHAR}, #{custodianId,jdbcType=VARCHAR}, #{brokerId,jdbcType=VARCHAR},
#{brokerFutureId,jdbcType=VARCHAR}, #{liquidationAgencyId,jdbcType=VARCHAR}, #{trustId,jdbcType=VARCHAR},
#{investmentConsultantId,jdbcType=VARCHAR}, #{administratorId,jdbcType=VARCHAR},
#{legalCounselId,jdbcType=VARCHAR}, #{auditorId,jdbcType=VARCHAR}, #{navFrequency,jdbcType=INTEGER},
#{performanceDisclosureMark,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR},
#{registerDate,jdbcType=DATE}, #{isvisible,jdbcType=INTEGER}, #{istiered,jdbcType=INTEGER},
#{isRanking,jdbcType=INTEGER}, #{isRating,jdbcType=INTEGER}, #{specialTips,jdbcType=VARCHAR},
#{amacUrl,jdbcType=VARCHAR}, #{navSourceType,jdbcType=INTEGER}, #{descInfo,jdbcType=VARCHAR},
#{strategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER}, #{riskLevel,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{hasNav,jdbcType=INTEGER}, #{fundCharacteristic,jdbcType=LONGVARCHAR},
#{investmentScope,jdbcType=LONGVARCHAR}, #{investmentRestriction,jdbcType=LONGVARCHAR},
#{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{fundStrategyDescription,jdbcType=LONGVARCHAR},
#{combineTarget,jdbcType=LONGVARCHAR}, #{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR},
#{transferComment,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into fund_info
insert into tamp_fund.fund_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......@@ -398,6 +399,9 @@
<if test="redeemDay != null">
redeem_day,
</if>
<if test="hasNav != null">
has_nav,
</if>
<if test="fundCharacteristic != null">
fund_characteristic,
</if>
......@@ -577,6 +581,9 @@
<if test="redeemDay != null">
#{redeemDay,jdbcType=VARCHAR},
</if>
<if test="hasNav != null">
#{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null">
#{fundCharacteristic,jdbcType=LONGVARCHAR},
</if>
......@@ -608,14 +615,14 @@
</insert>
<select id="countByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample" resultType="java.lang.Long">
<!--@mbg.generated-->
select count(*) from fund_info
select count(*) from tamp_fund.fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
......@@ -767,6 +774,9 @@
<if test="record.redeemDay != null">
redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
</if>
<if test="record.hasNav != null">
has_nav = #{record.hasNav,jdbcType=INTEGER},
</if>
<if test="record.fundCharacteristic != null">
fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR},
</if>
......@@ -801,130 +811,132 @@
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
set id = #{record.id,jdbcType=VARCHAR},
p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR},
fund_short_name = #{record.fundShortName,jdbcType=VARCHAR},
fund_structure = #{record.fundStructure,jdbcType=INTEGER},
fund_type = #{record.fundType,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER},
raise_type = #{record.raiseType,jdbcType=INTEGER},
base_currency = #{record.baseCurrency,jdbcType=INTEGER},
inception_date = #{record.inceptionDate,jdbcType=DATE},
domicile = #{record.domicile,jdbcType=INTEGER},
primary_benchmark_id = #{record.primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{record.lockupPeriod,jdbcType=INTEGER},
open_day = #{record.openDay,jdbcType=VARCHAR},
duration = #{record.duration,jdbcType=INTEGER},
advisor_id = #{record.advisorId,jdbcType=VARCHAR},
custodian_id = #{record.custodianId,jdbcType=VARCHAR},
broker_id = #{record.brokerId,jdbcType=VARCHAR},
broker_future_id = #{record.brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{record.liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{record.trustId,jdbcType=VARCHAR},
investment_consultant_id = #{record.investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{record.administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{record.legalCounselId,jdbcType=VARCHAR},
auditor_id = #{record.auditorId,jdbcType=VARCHAR},
nav_frequency = #{record.navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{record.performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{record.registerNumber,jdbcType=VARCHAR},
register_date = #{record.registerDate,jdbcType=DATE},
isvisible = #{record.isvisible,jdbcType=INTEGER},
istiered = #{record.istiered,jdbcType=INTEGER},
is_ranking = #{record.isRanking,jdbcType=INTEGER},
is_rating = #{record.isRating,jdbcType=INTEGER},
special_tips = #{record.specialTips,jdbcType=VARCHAR},
amac_url = #{record.amacUrl,jdbcType=VARCHAR},
nav_source_type = #{record.navSourceType,jdbcType=INTEGER},
desc_info = #{record.descInfo,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
substrategy = #{record.substrategy,jdbcType=INTEGER},
risk_level = #{record.riskLevel,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
data_sources = #{record.dataSources,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=INTEGER},
delete_tag = #{record.deleteTag,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
apply_day = #{record.applyDay,jdbcType=VARCHAR},
redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{record.investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{record.investmentRestriction,jdbcType=LONGVARCHAR},
fund_investment_philosophy = #{record.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
fund_strategy_description = #{record.fundStrategyDescription,jdbcType=LONGVARCHAR},
combine_target = #{record.combineTarget,jdbcType=LONGVARCHAR},
fit_group = #{record.fitGroup,jdbcType=LONGVARCHAR},
combine_comment = #{record.combineComment,jdbcType=LONGVARCHAR},
transfer_comment = #{record.transferComment,jdbcType=LONGVARCHAR}
p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR},
fund_short_name = #{record.fundShortName,jdbcType=VARCHAR},
fund_structure = #{record.fundStructure,jdbcType=INTEGER},
fund_type = #{record.fundType,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER},
raise_type = #{record.raiseType,jdbcType=INTEGER},
base_currency = #{record.baseCurrency,jdbcType=INTEGER},
inception_date = #{record.inceptionDate,jdbcType=DATE},
domicile = #{record.domicile,jdbcType=INTEGER},
primary_benchmark_id = #{record.primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{record.lockupPeriod,jdbcType=INTEGER},
open_day = #{record.openDay,jdbcType=VARCHAR},
duration = #{record.duration,jdbcType=INTEGER},
advisor_id = #{record.advisorId,jdbcType=VARCHAR},
custodian_id = #{record.custodianId,jdbcType=VARCHAR},
broker_id = #{record.brokerId,jdbcType=VARCHAR},
broker_future_id = #{record.brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{record.liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{record.trustId,jdbcType=VARCHAR},
investment_consultant_id = #{record.investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{record.administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{record.legalCounselId,jdbcType=VARCHAR},
auditor_id = #{record.auditorId,jdbcType=VARCHAR},
nav_frequency = #{record.navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{record.performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{record.registerNumber,jdbcType=VARCHAR},
register_date = #{record.registerDate,jdbcType=DATE},
isvisible = #{record.isvisible,jdbcType=INTEGER},
istiered = #{record.istiered,jdbcType=INTEGER},
is_ranking = #{record.isRanking,jdbcType=INTEGER},
is_rating = #{record.isRating,jdbcType=INTEGER},
special_tips = #{record.specialTips,jdbcType=VARCHAR},
amac_url = #{record.amacUrl,jdbcType=VARCHAR},
nav_source_type = #{record.navSourceType,jdbcType=INTEGER},
desc_info = #{record.descInfo,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
substrategy = #{record.substrategy,jdbcType=INTEGER},
risk_level = #{record.riskLevel,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
data_sources = #{record.dataSources,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=INTEGER},
delete_tag = #{record.deleteTag,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
apply_day = #{record.applyDay,jdbcType=VARCHAR},
redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
has_nav = #{record.hasNav,jdbcType=INTEGER},
fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{record.investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{record.investmentRestriction,jdbcType=LONGVARCHAR},
fund_investment_philosophy = #{record.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
fund_strategy_description = #{record.fundStrategyDescription,jdbcType=LONGVARCHAR},
combine_target = #{record.combineTarget,jdbcType=LONGVARCHAR},
fit_group = #{record.fitGroup,jdbcType=LONGVARCHAR},
combine_comment = #{record.combineComment,jdbcType=LONGVARCHAR},
transfer_comment = #{record.transferComment,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
set id = #{record.id,jdbcType=VARCHAR},
p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR},
fund_short_name = #{record.fundShortName,jdbcType=VARCHAR},
fund_structure = #{record.fundStructure,jdbcType=INTEGER},
fund_type = #{record.fundType,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER},
raise_type = #{record.raiseType,jdbcType=INTEGER},
base_currency = #{record.baseCurrency,jdbcType=INTEGER},
inception_date = #{record.inceptionDate,jdbcType=DATE},
domicile = #{record.domicile,jdbcType=INTEGER},
primary_benchmark_id = #{record.primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{record.lockupPeriod,jdbcType=INTEGER},
open_day = #{record.openDay,jdbcType=VARCHAR},
duration = #{record.duration,jdbcType=INTEGER},
advisor_id = #{record.advisorId,jdbcType=VARCHAR},
custodian_id = #{record.custodianId,jdbcType=VARCHAR},
broker_id = #{record.brokerId,jdbcType=VARCHAR},
broker_future_id = #{record.brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{record.liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{record.trustId,jdbcType=VARCHAR},
investment_consultant_id = #{record.investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{record.administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{record.legalCounselId,jdbcType=VARCHAR},
auditor_id = #{record.auditorId,jdbcType=VARCHAR},
nav_frequency = #{record.navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{record.performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{record.registerNumber,jdbcType=VARCHAR},
register_date = #{record.registerDate,jdbcType=DATE},
isvisible = #{record.isvisible,jdbcType=INTEGER},
istiered = #{record.istiered,jdbcType=INTEGER},
is_ranking = #{record.isRanking,jdbcType=INTEGER},
is_rating = #{record.isRating,jdbcType=INTEGER},
special_tips = #{record.specialTips,jdbcType=VARCHAR},
amac_url = #{record.amacUrl,jdbcType=VARCHAR},
nav_source_type = #{record.navSourceType,jdbcType=INTEGER},
desc_info = #{record.descInfo,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
substrategy = #{record.substrategy,jdbcType=INTEGER},
risk_level = #{record.riskLevel,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
data_sources = #{record.dataSources,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=INTEGER},
delete_tag = #{record.deleteTag,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
apply_day = #{record.applyDay,jdbcType=VARCHAR},
redeem_day = #{record.redeemDay,jdbcType=VARCHAR}
p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR},
fund_short_name = #{record.fundShortName,jdbcType=VARCHAR},
fund_structure = #{record.fundStructure,jdbcType=INTEGER},
fund_type = #{record.fundType,jdbcType=INTEGER},
`type` = #{record.type,jdbcType=INTEGER},
raise_type = #{record.raiseType,jdbcType=INTEGER},
base_currency = #{record.baseCurrency,jdbcType=INTEGER},
inception_date = #{record.inceptionDate,jdbcType=DATE},
domicile = #{record.domicile,jdbcType=INTEGER},
primary_benchmark_id = #{record.primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{record.lockupPeriod,jdbcType=INTEGER},
open_day = #{record.openDay,jdbcType=VARCHAR},
duration = #{record.duration,jdbcType=INTEGER},
advisor_id = #{record.advisorId,jdbcType=VARCHAR},
custodian_id = #{record.custodianId,jdbcType=VARCHAR},
broker_id = #{record.brokerId,jdbcType=VARCHAR},
broker_future_id = #{record.brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{record.liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{record.trustId,jdbcType=VARCHAR},
investment_consultant_id = #{record.investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{record.administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{record.legalCounselId,jdbcType=VARCHAR},
auditor_id = #{record.auditorId,jdbcType=VARCHAR},
nav_frequency = #{record.navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{record.performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{record.registerNumber,jdbcType=VARCHAR},
register_date = #{record.registerDate,jdbcType=DATE},
isvisible = #{record.isvisible,jdbcType=INTEGER},
istiered = #{record.istiered,jdbcType=INTEGER},
is_ranking = #{record.isRanking,jdbcType=INTEGER},
is_rating = #{record.isRating,jdbcType=INTEGER},
special_tips = #{record.specialTips,jdbcType=VARCHAR},
amac_url = #{record.amacUrl,jdbcType=VARCHAR},
nav_source_type = #{record.navSourceType,jdbcType=INTEGER},
desc_info = #{record.descInfo,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
substrategy = #{record.substrategy,jdbcType=INTEGER},
risk_level = #{record.riskLevel,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
data_sources = #{record.dataSources,jdbcType=INTEGER},
`status` = #{record.status,jdbcType=INTEGER},
delete_tag = #{record.deleteTag,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
apply_day = #{record.applyDay,jdbcType=VARCHAR},
redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
has_nav = #{record.hasNav,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
<set>
<if test="pFundId != null">
p_fund_id = #{pFundId,jdbcType=VARCHAR},
......@@ -1073,6 +1085,9 @@
<if test="redeemDay != null">
redeem_day = #{redeemDay,jdbcType=VARCHAR},
</if>
<if test="hasNav != null">
has_nav = #{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null">
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
</if>
......@@ -1105,124 +1120,126 @@
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
set p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR},
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR},
fund_investment_philosophy = #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
fund_strategy_description = #{fundStrategyDescription,jdbcType=LONGVARCHAR},
combine_target = #{combineTarget,jdbcType=LONGVARCHAR},
fit_group = #{fitGroup,jdbcType=LONGVARCHAR},
combine_comment = #{combineComment,jdbcType=LONGVARCHAR},
transfer_comment = #{transferComment,jdbcType=LONGVARCHAR}
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER},
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR},
fund_investment_philosophy = #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
fund_strategy_description = #{fundStrategyDescription,jdbcType=LONGVARCHAR},
combine_target = #{combineTarget,jdbcType=LONGVARCHAR},
fit_group = #{fitGroup,jdbcType=LONGVARCHAR},
combine_comment = #{combineComment,jdbcType=LONGVARCHAR},
transfer_comment = #{transferComment,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
set p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR}
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
<trim prefix="set" suffixOverrides=",">
<trim prefix="p_fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
......@@ -1469,6 +1486,11 @@
when id = #{item.id,jdbcType=VARCHAR} then #{item.redeemDay,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="has_nav = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.hasNav,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="fund_characteristic = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundCharacteristic,jdbcType=LONGVARCHAR}
......@@ -1522,7 +1544,7 @@
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update fund_info
update tamp_fund.fund_info
<trim prefix="set" suffixOverrides=",">
<trim prefix="p_fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
......@@ -1867,6 +1889,13 @@
</if>
</foreach>
</trim>
<trim prefix="has_nav = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.hasNav != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.hasNav,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="fund_characteristic = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.fundCharacteristic != null">
......@@ -1938,227 +1967,229 @@
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, fund_characteristic,
investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment, transfer_comment)
insert into tamp_fund.fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav, fund_characteristic,
investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment, transfer_comment)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.pFundId,jdbcType=VARCHAR}, #{item.fundName,jdbcType=VARCHAR},
#{item.fundShortName,jdbcType=VARCHAR}, #{item.fundStructure,jdbcType=INTEGER},
#{item.fundType,jdbcType=INTEGER}, #{item.type,jdbcType=INTEGER}, #{item.raiseType,jdbcType=INTEGER},
#{item.baseCurrency,jdbcType=INTEGER}, #{item.inceptionDate,jdbcType=DATE}, #{item.domicile,jdbcType=INTEGER},
#{item.primaryBenchmarkId,jdbcType=VARCHAR}, #{item.lockupPeriod,jdbcType=INTEGER},
#{item.openDay,jdbcType=VARCHAR}, #{item.duration,jdbcType=INTEGER}, #{item.advisorId,jdbcType=VARCHAR},
#{item.custodianId,jdbcType=VARCHAR}, #{item.brokerId,jdbcType=VARCHAR}, #{item.brokerFutureId,jdbcType=VARCHAR},
#{item.liquidationAgencyId,jdbcType=VARCHAR}, #{item.trustId,jdbcType=VARCHAR},
#{item.investmentConsultantId,jdbcType=VARCHAR}, #{item.administratorId,jdbcType=VARCHAR},
#{item.legalCounselId,jdbcType=VARCHAR}, #{item.auditorId,jdbcType=VARCHAR}, #{item.navFrequency,jdbcType=INTEGER},
#{item.performanceDisclosureMark,jdbcType=INTEGER}, #{item.registerNumber,jdbcType=VARCHAR},
#{item.registerDate,jdbcType=DATE}, #{item.isvisible,jdbcType=INTEGER}, #{item.istiered,jdbcType=INTEGER},
#{item.isRanking,jdbcType=INTEGER}, #{item.isRating,jdbcType=INTEGER}, #{item.specialTips,jdbcType=VARCHAR},
#{item.amacUrl,jdbcType=VARCHAR}, #{item.navSourceType,jdbcType=INTEGER}, #{item.descInfo,jdbcType=VARCHAR},
#{item.strategy,jdbcType=INTEGER}, #{item.substrategy,jdbcType=INTEGER}, #{item.riskLevel,jdbcType=INTEGER},
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.dataSources,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER},
#{item.deleteTag,jdbcType=INTEGER}, #{item.sort,jdbcType=INTEGER}, #{item.applyDay,jdbcType=VARCHAR},
#{item.redeemDay,jdbcType=VARCHAR}, #{item.fundCharacteristic,jdbcType=LONGVARCHAR},
#{item.investmentScope,jdbcType=LONGVARCHAR}, #{item.investmentRestriction,jdbcType=LONGVARCHAR},
#{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{item.fundStrategyDescription,jdbcType=LONGVARCHAR},
#{item.combineTarget,jdbcType=LONGVARCHAR}, #{item.fitGroup,jdbcType=LONGVARCHAR},
#{item.combineComment,jdbcType=LONGVARCHAR}, #{item.transferComment,jdbcType=LONGVARCHAR}
)
(#{item.id,jdbcType=VARCHAR}, #{item.pFundId,jdbcType=VARCHAR}, #{item.fundName,jdbcType=VARCHAR},
#{item.fundShortName,jdbcType=VARCHAR}, #{item.fundStructure,jdbcType=INTEGER},
#{item.fundType,jdbcType=INTEGER}, #{item.type,jdbcType=INTEGER}, #{item.raiseType,jdbcType=INTEGER},
#{item.baseCurrency,jdbcType=INTEGER}, #{item.inceptionDate,jdbcType=DATE}, #{item.domicile,jdbcType=INTEGER},
#{item.primaryBenchmarkId,jdbcType=VARCHAR}, #{item.lockupPeriod,jdbcType=INTEGER},
#{item.openDay,jdbcType=VARCHAR}, #{item.duration,jdbcType=INTEGER}, #{item.advisorId,jdbcType=VARCHAR},
#{item.custodianId,jdbcType=VARCHAR}, #{item.brokerId,jdbcType=VARCHAR}, #{item.brokerFutureId,jdbcType=VARCHAR},
#{item.liquidationAgencyId,jdbcType=VARCHAR}, #{item.trustId,jdbcType=VARCHAR},
#{item.investmentConsultantId,jdbcType=VARCHAR}, #{item.administratorId,jdbcType=VARCHAR},
#{item.legalCounselId,jdbcType=VARCHAR}, #{item.auditorId,jdbcType=VARCHAR}, #{item.navFrequency,jdbcType=INTEGER},
#{item.performanceDisclosureMark,jdbcType=INTEGER}, #{item.registerNumber,jdbcType=VARCHAR},
#{item.registerDate,jdbcType=DATE}, #{item.isvisible,jdbcType=INTEGER}, #{item.istiered,jdbcType=INTEGER},
#{item.isRanking,jdbcType=INTEGER}, #{item.isRating,jdbcType=INTEGER}, #{item.specialTips,jdbcType=VARCHAR},
#{item.amacUrl,jdbcType=VARCHAR}, #{item.navSourceType,jdbcType=INTEGER}, #{item.descInfo,jdbcType=VARCHAR},
#{item.strategy,jdbcType=INTEGER}, #{item.substrategy,jdbcType=INTEGER}, #{item.riskLevel,jdbcType=INTEGER},
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.dataSources,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER},
#{item.deleteTag,jdbcType=INTEGER}, #{item.sort,jdbcType=INTEGER}, #{item.applyDay,jdbcType=VARCHAR},
#{item.redeemDay,jdbcType=VARCHAR}, #{item.hasNav,jdbcType=INTEGER}, #{item.fundCharacteristic,jdbcType=LONGVARCHAR},
#{item.investmentScope,jdbcType=LONGVARCHAR}, #{item.investmentRestriction,jdbcType=LONGVARCHAR},
#{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{item.fundStrategyDescription,jdbcType=LONGVARCHAR},
#{item.combineTarget,jdbcType=LONGVARCHAR}, #{item.fitGroup,jdbcType=LONGVARCHAR},
#{item.combineComment,jdbcType=LONGVARCHAR}, #{item.transferComment,jdbcType=LONGVARCHAR}
)
</foreach>
</insert>
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day)
insert into tamp_fund.fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav)
values
(#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
#{inceptionDate,jdbcType=DATE}, #{domicile,jdbcType=INTEGER}, #{primaryBenchmarkId,jdbcType=VARCHAR},
#{lockupPeriod,jdbcType=INTEGER}, #{openDay,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER},
#{advisorId,jdbcType=VARCHAR}, #{custodianId,jdbcType=VARCHAR}, #{brokerId,jdbcType=VARCHAR},
#{brokerFutureId,jdbcType=VARCHAR}, #{liquidationAgencyId,jdbcType=VARCHAR}, #{trustId,jdbcType=VARCHAR},
#{investmentConsultantId,jdbcType=VARCHAR}, #{administratorId,jdbcType=VARCHAR},
#{legalCounselId,jdbcType=VARCHAR}, #{auditorId,jdbcType=VARCHAR}, #{navFrequency,jdbcType=INTEGER},
#{performanceDisclosureMark,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR},
#{registerDate,jdbcType=DATE}, #{isvisible,jdbcType=INTEGER}, #{istiered,jdbcType=INTEGER},
#{isRanking,jdbcType=INTEGER}, #{isRating,jdbcType=INTEGER}, #{specialTips,jdbcType=VARCHAR},
#{amacUrl,jdbcType=VARCHAR}, #{navSourceType,jdbcType=INTEGER}, #{descInfo,jdbcType=VARCHAR},
#{strategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER}, #{riskLevel,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR})
on duplicate key update
id = #{id,jdbcType=VARCHAR},
p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR}
(#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
#{inceptionDate,jdbcType=DATE}, #{domicile,jdbcType=INTEGER}, #{primaryBenchmarkId,jdbcType=VARCHAR},
#{lockupPeriod,jdbcType=INTEGER}, #{openDay,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER},
#{advisorId,jdbcType=VARCHAR}, #{custodianId,jdbcType=VARCHAR}, #{brokerId,jdbcType=VARCHAR},
#{brokerFutureId,jdbcType=VARCHAR}, #{liquidationAgencyId,jdbcType=VARCHAR}, #{trustId,jdbcType=VARCHAR},
#{investmentConsultantId,jdbcType=VARCHAR}, #{administratorId,jdbcType=VARCHAR},
#{legalCounselId,jdbcType=VARCHAR}, #{auditorId,jdbcType=VARCHAR}, #{navFrequency,jdbcType=INTEGER},
#{performanceDisclosureMark,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR},
#{registerDate,jdbcType=DATE}, #{isvisible,jdbcType=INTEGER}, #{istiered,jdbcType=INTEGER},
#{isRanking,jdbcType=INTEGER}, #{isRating,jdbcType=INTEGER}, #{specialTips,jdbcType=VARCHAR},
#{amacUrl,jdbcType=VARCHAR}, #{navSourceType,jdbcType=INTEGER}, #{descInfo,jdbcType=VARCHAR},
#{strategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER}, #{riskLevel,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{hasNav,jdbcType=INTEGER})
on duplicate key update
id = #{id,jdbcType=VARCHAR},
p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER}
</insert>
<insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, fund_characteristic,
investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment, transfer_comment)
insert into tamp_fund.fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type,
base_currency, inception_date, domicile, primary_benchmark_id, lockup_period, open_day,
duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
trust_id, investment_consultant_id, administrator_id, legal_counsel_id, auditor_id,
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info,
strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav, fund_characteristic,
investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment, transfer_comment)
values
(#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
#{inceptionDate,jdbcType=DATE}, #{domicile,jdbcType=INTEGER}, #{primaryBenchmarkId,jdbcType=VARCHAR},
#{lockupPeriod,jdbcType=INTEGER}, #{openDay,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER},
#{advisorId,jdbcType=VARCHAR}, #{custodianId,jdbcType=VARCHAR}, #{brokerId,jdbcType=VARCHAR},
#{brokerFutureId,jdbcType=VARCHAR}, #{liquidationAgencyId,jdbcType=VARCHAR}, #{trustId,jdbcType=VARCHAR},
#{investmentConsultantId,jdbcType=VARCHAR}, #{administratorId,jdbcType=VARCHAR},
#{legalCounselId,jdbcType=VARCHAR}, #{auditorId,jdbcType=VARCHAR}, #{navFrequency,jdbcType=INTEGER},
#{performanceDisclosureMark,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR},
#{registerDate,jdbcType=DATE}, #{isvisible,jdbcType=INTEGER}, #{istiered,jdbcType=INTEGER},
#{isRanking,jdbcType=INTEGER}, #{isRating,jdbcType=INTEGER}, #{specialTips,jdbcType=VARCHAR},
#{amacUrl,jdbcType=VARCHAR}, #{navSourceType,jdbcType=INTEGER}, #{descInfo,jdbcType=VARCHAR},
#{strategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER}, #{riskLevel,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{fundCharacteristic,jdbcType=LONGVARCHAR}, #{investmentScope,jdbcType=LONGVARCHAR},
#{investmentRestriction,jdbcType=LONGVARCHAR}, #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
#{fundStrategyDescription,jdbcType=LONGVARCHAR}, #{combineTarget,jdbcType=LONGVARCHAR},
#{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR}, #{transferComment,jdbcType=LONGVARCHAR}
)
on duplicate key update
id = #{id,jdbcType=VARCHAR},
p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR},
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR},
fund_investment_philosophy = #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
fund_strategy_description = #{fundStrategyDescription,jdbcType=LONGVARCHAR},
combine_target = #{combineTarget,jdbcType=LONGVARCHAR},
fit_group = #{fitGroup,jdbcType=LONGVARCHAR},
combine_comment = #{combineComment,jdbcType=LONGVARCHAR},
(#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
#{inceptionDate,jdbcType=DATE}, #{domicile,jdbcType=INTEGER}, #{primaryBenchmarkId,jdbcType=VARCHAR},
#{lockupPeriod,jdbcType=INTEGER}, #{openDay,jdbcType=VARCHAR}, #{duration,jdbcType=INTEGER},
#{advisorId,jdbcType=VARCHAR}, #{custodianId,jdbcType=VARCHAR}, #{brokerId,jdbcType=VARCHAR},
#{brokerFutureId,jdbcType=VARCHAR}, #{liquidationAgencyId,jdbcType=VARCHAR}, #{trustId,jdbcType=VARCHAR},
#{investmentConsultantId,jdbcType=VARCHAR}, #{administratorId,jdbcType=VARCHAR},
#{legalCounselId,jdbcType=VARCHAR}, #{auditorId,jdbcType=VARCHAR}, #{navFrequency,jdbcType=INTEGER},
#{performanceDisclosureMark,jdbcType=INTEGER}, #{registerNumber,jdbcType=VARCHAR},
#{registerDate,jdbcType=DATE}, #{isvisible,jdbcType=INTEGER}, #{istiered,jdbcType=INTEGER},
#{isRanking,jdbcType=INTEGER}, #{isRating,jdbcType=INTEGER}, #{specialTips,jdbcType=VARCHAR},
#{amacUrl,jdbcType=VARCHAR}, #{navSourceType,jdbcType=INTEGER}, #{descInfo,jdbcType=VARCHAR},
#{strategy,jdbcType=INTEGER}, #{substrategy,jdbcType=INTEGER}, #{riskLevel,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{hasNav,jdbcType=INTEGER}, #{fundCharacteristic,jdbcType=LONGVARCHAR},
#{investmentScope,jdbcType=LONGVARCHAR}, #{investmentRestriction,jdbcType=LONGVARCHAR},
#{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{fundStrategyDescription,jdbcType=LONGVARCHAR},
#{combineTarget,jdbcType=LONGVARCHAR}, #{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR},
#{transferComment,jdbcType=LONGVARCHAR})
on duplicate key update
id = #{id,jdbcType=VARCHAR},
p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
fund_structure = #{fundStructure,jdbcType=INTEGER},
fund_type = #{fundType,jdbcType=INTEGER},
`type` = #{type,jdbcType=INTEGER},
raise_type = #{raiseType,jdbcType=INTEGER},
base_currency = #{baseCurrency,jdbcType=INTEGER},
inception_date = #{inceptionDate,jdbcType=DATE},
domicile = #{domicile,jdbcType=INTEGER},
primary_benchmark_id = #{primaryBenchmarkId,jdbcType=VARCHAR},
lockup_period = #{lockupPeriod,jdbcType=INTEGER},
open_day = #{openDay,jdbcType=VARCHAR},
duration = #{duration,jdbcType=INTEGER},
advisor_id = #{advisorId,jdbcType=VARCHAR},
custodian_id = #{custodianId,jdbcType=VARCHAR},
broker_id = #{brokerId,jdbcType=VARCHAR},
broker_future_id = #{brokerFutureId,jdbcType=VARCHAR},
liquidation_agency_id = #{liquidationAgencyId,jdbcType=VARCHAR},
trust_id = #{trustId,jdbcType=VARCHAR},
investment_consultant_id = #{investmentConsultantId,jdbcType=VARCHAR},
administrator_id = #{administratorId,jdbcType=VARCHAR},
legal_counsel_id = #{legalCounselId,jdbcType=VARCHAR},
auditor_id = #{auditorId,jdbcType=VARCHAR},
nav_frequency = #{navFrequency,jdbcType=INTEGER},
performance_disclosure_mark = #{performanceDisclosureMark,jdbcType=INTEGER},
register_number = #{registerNumber,jdbcType=VARCHAR},
register_date = #{registerDate,jdbcType=DATE},
isvisible = #{isvisible,jdbcType=INTEGER},
istiered = #{istiered,jdbcType=INTEGER},
is_ranking = #{isRanking,jdbcType=INTEGER},
is_rating = #{isRating,jdbcType=INTEGER},
special_tips = #{specialTips,jdbcType=VARCHAR},
amac_url = #{amacUrl,jdbcType=VARCHAR},
nav_source_type = #{navSourceType,jdbcType=INTEGER},
desc_info = #{descInfo,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
risk_level = #{riskLevel,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
data_sources = #{dataSources,jdbcType=INTEGER},
`status` = #{status,jdbcType=INTEGER},
delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER},
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR},
fund_investment_philosophy = #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR},
fund_strategy_description = #{fundStrategyDescription,jdbcType=LONGVARCHAR},
combine_target = #{combineTarget,jdbcType=LONGVARCHAR},
fit_group = #{fitGroup,jdbcType=LONGVARCHAR},
combine_comment = #{combineComment,jdbcType=LONGVARCHAR},
transfer_comment = #{transferComment,jdbcType=LONGVARCHAR}
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into fund_info
insert into tamp_fund.fund_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......@@ -2310,6 +2341,9 @@
<if test="redeemDay != null">
redeem_day,
</if>
<if test="hasNav != null">
has_nav,
</if>
<if test="fundCharacteristic != null">
fund_characteristic,
</if>
......@@ -2490,6 +2524,9 @@
<if test="redeemDay != null">
#{redeemDay,jdbcType=VARCHAR},
</if>
<if test="hasNav != null">
#{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null">
#{fundCharacteristic,jdbcType=LONGVARCHAR},
</if>
......@@ -2518,7 +2555,7 @@
#{transferComment,jdbcType=LONGVARCHAR},
</if>
</trim>
on duplicate key update
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=VARCHAR},
......@@ -2670,6 +2707,9 @@
<if test="redeemDay != null">
redeem_day = #{redeemDay,jdbcType=VARCHAR},
</if>
<if test="hasNav != null">
has_nav = #{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null">
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
</if>
......@@ -2699,4 +2739,4 @@
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment