Commit a7d9e2c1 authored by 张亚辉's avatar 张亚辉

基金搜索

parent a625e72e
...@@ -247,6 +247,11 @@ public class FundInfo { ...@@ -247,6 +247,11 @@ public class FundInfo {
private String redeemDay; private String redeemDay;
/**
* 1 有净值 0 没有净值
*/
private Integer hasNav;
/** /**
* 券商资管产品特点 * 券商资管产品特点
*/ */
......
...@@ -3371,6 +3371,66 @@ public class FundInfoExample { ...@@ -3371,6 +3371,66 @@ public class FundInfoExample {
addCriterion("redeem_day not between", value1, value2, "redeemDay"); addCriterion("redeem_day not between", value1, value2, "redeemDay");
return (Criteria) this; 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 { public static class Criteria extends GeneratedCriteria {
......
...@@ -12,20 +12,8 @@ public interface FundInfoMapper { ...@@ -12,20 +12,8 @@ public interface FundInfoMapper {
int deleteByExample(FundInfoExample example); int deleteByExample(FundInfoExample example);
/**
* delete by primary key
*
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(String id); int deleteByPrimaryKey(String id);
/**
* insert record to table
*
* @param record the record
* @return insert count
*/
int insert(FundInfo record); int insert(FundInfo record);
int insertOrUpdate(FundInfo record); int insertOrUpdate(FundInfo record);
...@@ -34,24 +22,12 @@ public interface FundInfoMapper { ...@@ -34,24 +22,12 @@ public interface FundInfoMapper {
int insertOrUpdateWithBLOBs(FundInfo record); int insertOrUpdateWithBLOBs(FundInfo record);
/**
* insert record to table selective
*
* @param record the record
* @return insert count
*/
int insertSelective(FundInfo record); int insertSelective(FundInfo record);
List<FundInfo> selectByExampleWithBLOBs(FundInfoExample example); List<FundInfo> selectByExampleWithBLOBs(FundInfoExample example);
List<FundInfo> selectByExample(FundInfoExample example); List<FundInfo> selectByExample(FundInfoExample example);
/**
* select by primary key
*
* @param id primary key
* @return object by primary key
*/
FundInfo selectByPrimaryKey(String id); FundInfo selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") FundInfo record, @Param("example") FundInfoExample example); int updateByExampleSelective(@Param("record") FundInfo record, @Param("example") FundInfoExample example);
...@@ -60,25 +36,15 @@ public interface FundInfoMapper { ...@@ -60,25 +36,15 @@ public interface FundInfoMapper {
int updateByExample(@Param("record") FundInfo record, @Param("example") FundInfoExample example); int updateByExample(@Param("record") FundInfo record, @Param("example") FundInfoExample example);
/**
* update record selective
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(FundInfo record); int updateByPrimaryKeySelective(FundInfo record);
int updateByPrimaryKeyWithBLOBs(FundInfo record); int updateByPrimaryKeyWithBLOBs(FundInfo record);
/**
* update record
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(FundInfo record); int updateByPrimaryKey(FundInfo record);
int updateBatch(List<FundInfo> list); int updateBatch(List<FundInfo> list);
int updateBatchSelective(List<FundInfo> list);
int batchInsert(@Param("list") List<FundInfo> list); int batchInsert(@Param("list") List<FundInfo> list);
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="com.tanpu.fund.mapper.generator.FundInfoMapper"> <mapper namespace="com.tanpu.fund.mapper.generator.FundInfoMapper">
<resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.FundInfo"> <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
<!--@Table fund_info--> <!--@Table tamp_fund.fund_info-->
<id column="id" jdbcType="VARCHAR" property="id" /> <id column="id" jdbcType="VARCHAR" property="id" />
<result column="p_fund_id" jdbcType="VARCHAR" property="pFundId" /> <result column="p_fund_id" jdbcType="VARCHAR" property="pFundId" />
<result column="fund_name" jdbcType="VARCHAR" property="fundName" /> <result column="fund_name" jdbcType="VARCHAR" property="fundName" />
...@@ -54,10 +54,11 @@ ...@@ -54,10 +54,11 @@
<result column="sort" jdbcType="INTEGER" property="sort" /> <result column="sort" jdbcType="INTEGER" property="sort" />
<result column="apply_day" jdbcType="VARCHAR" property="applyDay" /> <result column="apply_day" jdbcType="VARCHAR" property="applyDay" />
<result column="redeem_day" jdbcType="VARCHAR" property="redeemDay" /> <result column="redeem_day" jdbcType="VARCHAR" property="redeemDay" />
<result column="has_nav" jdbcType="INTEGER" property="hasNav" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.FundInfo"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
<!--@Table fund_info--> <!--@Table tamp_fund.fund_info-->
<result column="fund_characteristic" jdbcType="LONGVARCHAR" property="fundCharacteristic" /> <result column="fund_characteristic" jdbcType="LONGVARCHAR" property="fundCharacteristic" />
<result column="investment_scope" jdbcType="LONGVARCHAR" property="investmentScope" /> <result column="investment_scope" jdbcType="LONGVARCHAR" property="investmentScope" />
<result column="investment_restriction" jdbcType="LONGVARCHAR" property="investmentRestriction" /> <result column="investment_restriction" jdbcType="LONGVARCHAR" property="investmentRestriction" />
...@@ -137,7 +138,7 @@ ...@@ -137,7 +138,7 @@
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible, nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info, 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, strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
<!--@mbg.generated--> <!--@mbg.generated-->
...@@ -153,7 +154,7 @@ ...@@ -153,7 +154,7 @@
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
, ,
<include refid="Blob_Column_List" /> <include refid="Blob_Column_List" />
from fund_info from tamp_fund.fund_info
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
...@@ -168,7 +169,7 @@ ...@@ -168,7 +169,7 @@
distinct distinct
</if> </if>
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from fund_info from tamp_fund.fund_info
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
...@@ -182,24 +183,24 @@ ...@@ -182,24 +183,24 @@
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
, ,
<include refid="Blob_Column_List" /> <include refid="Blob_Column_List" />
from fund_info from tamp_fund.fund_info
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--@mbg.generated--> <!--@mbg.generated-->
delete from fund_info delete from tamp_fund.fund_info
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</delete> </delete>
<delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample"> <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample">
<!--@mbg.generated--> <!--@mbg.generated-->
delete from fund_info delete from tamp_fund.fund_info
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_info (id, p_fund_id, fund_name, insert into tamp_fund.fund_info (id, p_fund_id, fund_name,
fund_short_name, fund_structure, fund_type, fund_short_name, fund_structure, fund_type,
`type`, raise_type, base_currency, `type`, raise_type, base_currency,
inception_date, domicile, primary_benchmark_id, inception_date, domicile, primary_benchmark_id,
...@@ -216,11 +217,11 @@ ...@@ -216,11 +217,11 @@
create_by, create_time, update_by, create_by, create_time, update_by,
update_time, data_sources, `status`, update_time, data_sources, `status`,
delete_tag, sort, apply_day, delete_tag, sort, apply_day,
redeem_day, fund_characteristic, investment_scope, redeem_day, has_nav, fund_characteristic,
investment_restriction, fund_investment_philosophy, investment_scope, investment_restriction,
fund_strategy_description, combine_target, fund_investment_philosophy, fund_strategy_description,
fit_group, combine_comment, transfer_comment combine_target, fit_group, combine_comment,
) transfer_comment)
values (#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR}, values (#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER}, #{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
#{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{raiseType,jdbcType=INTEGER}, #{baseCurrency,jdbcType=INTEGER},
...@@ -238,15 +239,15 @@ ...@@ -238,15 +239,15 @@
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR}, #{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{fundCharacteristic,jdbcType=LONGVARCHAR}, #{investmentScope,jdbcType=LONGVARCHAR}, #{redeemDay,jdbcType=VARCHAR}, #{hasNav,jdbcType=INTEGER}, #{fundCharacteristic,jdbcType=LONGVARCHAR},
#{investmentRestriction,jdbcType=LONGVARCHAR}, #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{investmentScope,jdbcType=LONGVARCHAR}, #{investmentRestriction,jdbcType=LONGVARCHAR},
#{fundStrategyDescription,jdbcType=LONGVARCHAR}, #{combineTarget,jdbcType=LONGVARCHAR}, #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{fundStrategyDescription,jdbcType=LONGVARCHAR},
#{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR}, #{transferComment,jdbcType=LONGVARCHAR} #{combineTarget,jdbcType=LONGVARCHAR}, #{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR},
) #{transferComment,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_info insert into tamp_fund.fund_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
id, id,
...@@ -398,6 +399,9 @@ ...@@ -398,6 +399,9 @@
<if test="redeemDay != null"> <if test="redeemDay != null">
redeem_day, redeem_day,
</if> </if>
<if test="hasNav != null">
has_nav,
</if>
<if test="fundCharacteristic != null"> <if test="fundCharacteristic != null">
fund_characteristic, fund_characteristic,
</if> </if>
...@@ -577,6 +581,9 @@ ...@@ -577,6 +581,9 @@
<if test="redeemDay != null"> <if test="redeemDay != null">
#{redeemDay,jdbcType=VARCHAR}, #{redeemDay,jdbcType=VARCHAR},
</if> </if>
<if test="hasNav != null">
#{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null"> <if test="fundCharacteristic != null">
#{fundCharacteristic,jdbcType=LONGVARCHAR}, #{fundCharacteristic,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -608,14 +615,14 @@ ...@@ -608,14 +615,14 @@
</insert> </insert>
<select id="countByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample" resultType="java.lang.Long">
<!--@mbg.generated--> <!--@mbg.generated-->
select count(*) from fund_info select count(*) from tamp_fund.fund_info
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
</if> </if>
</select> </select>
<update id="updateByExampleSelective" parameterType="map"> <update id="updateByExampleSelective" parameterType="map">
<!--@mbg.generated--> <!--@mbg.generated-->
update fund_info update tamp_fund.fund_info
<set> <set>
<if test="record.id != null"> <if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR}, id = #{record.id,jdbcType=VARCHAR},
...@@ -767,6 +774,9 @@ ...@@ -767,6 +774,9 @@
<if test="record.redeemDay != null"> <if test="record.redeemDay != null">
redeem_day = #{record.redeemDay,jdbcType=VARCHAR}, redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
</if> </if>
<if test="record.hasNav != null">
has_nav = #{record.hasNav,jdbcType=INTEGER},
</if>
<if test="record.fundCharacteristic != null"> <if test="record.fundCharacteristic != null">
fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR}, fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -801,7 +811,7 @@ ...@@ -801,7 +811,7 @@
</update> </update>
<update id="updateByExampleWithBLOBs" parameterType="map"> <update id="updateByExampleWithBLOBs" parameterType="map">
<!--@mbg.generated--> <!--@mbg.generated-->
update fund_info update tamp_fund.fund_info
set id = #{record.id,jdbcType=VARCHAR}, set id = #{record.id,jdbcType=VARCHAR},
p_fund_id = #{record.pFundId,jdbcType=VARCHAR}, p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR}, fund_name = #{record.fundName,jdbcType=VARCHAR},
...@@ -852,6 +862,7 @@ ...@@ -852,6 +862,7 @@
sort = #{record.sort,jdbcType=INTEGER}, sort = #{record.sort,jdbcType=INTEGER},
apply_day = #{record.applyDay,jdbcType=VARCHAR}, apply_day = #{record.applyDay,jdbcType=VARCHAR},
redeem_day = #{record.redeemDay,jdbcType=VARCHAR}, redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
has_nav = #{record.hasNav,jdbcType=INTEGER},
fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR}, fund_characteristic = #{record.fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{record.investmentScope,jdbcType=LONGVARCHAR}, investment_scope = #{record.investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{record.investmentRestriction,jdbcType=LONGVARCHAR}, investment_restriction = #{record.investmentRestriction,jdbcType=LONGVARCHAR},
...@@ -867,7 +878,7 @@ ...@@ -867,7 +878,7 @@
</update> </update>
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
<!--@mbg.generated--> <!--@mbg.generated-->
update fund_info update tamp_fund.fund_info
set id = #{record.id,jdbcType=VARCHAR}, set id = #{record.id,jdbcType=VARCHAR},
p_fund_id = #{record.pFundId,jdbcType=VARCHAR}, p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR}, fund_name = #{record.fundName,jdbcType=VARCHAR},
...@@ -917,14 +928,15 @@ ...@@ -917,14 +928,15 @@
delete_tag = #{record.deleteTag,jdbcType=INTEGER}, delete_tag = #{record.deleteTag,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER}, sort = #{record.sort,jdbcType=INTEGER},
apply_day = #{record.applyDay,jdbcType=VARCHAR}, apply_day = #{record.applyDay,jdbcType=VARCHAR},
redeem_day = #{record.redeemDay,jdbcType=VARCHAR} redeem_day = #{record.redeemDay,jdbcType=VARCHAR},
has_nav = #{record.hasNav,jdbcType=INTEGER}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
</update> </update>
<update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
update fund_info update tamp_fund.fund_info
<set> <set>
<if test="pFundId != null"> <if test="pFundId != null">
p_fund_id = #{pFundId,jdbcType=VARCHAR}, p_fund_id = #{pFundId,jdbcType=VARCHAR},
...@@ -1073,6 +1085,9 @@ ...@@ -1073,6 +1085,9 @@
<if test="redeemDay != null"> <if test="redeemDay != null">
redeem_day = #{redeemDay,jdbcType=VARCHAR}, redeem_day = #{redeemDay,jdbcType=VARCHAR},
</if> </if>
<if test="hasNav != null">
has_nav = #{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null"> <if test="fundCharacteristic != null">
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR}, fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -1105,7 +1120,7 @@ ...@@ -1105,7 +1120,7 @@
</update> </update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
update fund_info update tamp_fund.fund_info
set p_fund_id = #{pFundId,jdbcType=VARCHAR}, set p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR}, fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR}, fund_short_name = #{fundShortName,jdbcType=VARCHAR},
...@@ -1155,6 +1170,7 @@ ...@@ -1155,6 +1170,7 @@
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR}, apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR}, redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER},
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR}, fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{investmentScope,jdbcType=LONGVARCHAR}, investment_scope = #{investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR}, investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR},
...@@ -1168,7 +1184,7 @@ ...@@ -1168,7 +1184,7 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
update fund_info update tamp_fund.fund_info
set p_fund_id = #{pFundId,jdbcType=VARCHAR}, set p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR}, fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR}, fund_short_name = #{fundShortName,jdbcType=VARCHAR},
...@@ -1217,301 +1233,730 @@ ...@@ -1217,301 +1233,730 @@
delete_tag = #{deleteTag,jdbcType=INTEGER}, delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR}, apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR} redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
<update id="updateBatch" parameterType="java.util.List"> <update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated--> <!--@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">
when id = #{item.id,jdbcType=VARCHAR} then #{item.pFundId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="fund_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="fund_short_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundShortName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="fund_structure = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundStructure,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="fund_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundType,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="raise_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.raiseType,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="base_currency = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.baseCurrency,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="inception_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.inceptionDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="domicile = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.domicile,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="primary_benchmark_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.primaryBenchmarkId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="lockup_period = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.lockupPeriod,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="open_day = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.openDay,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="duration = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.duration,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="advisor_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.advisorId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="custodian_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.custodianId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="broker_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.brokerId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="broker_future_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.brokerFutureId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="liquidation_agency_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.liquidationAgencyId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="trust_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.trustId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="investment_consultant_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentConsultantId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="administrator_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.administratorId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="legal_counsel_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.legalCounselId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="auditor_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.auditorId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="nav_frequency = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.navFrequency,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="performance_disclosure_mark = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.performanceDisclosureMark,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="register_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumber,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="register_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="isvisible = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="istiered = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.istiered,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="is_ranking = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isRanking,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="is_rating = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isRating,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="special_tips = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.specialTips,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="amac_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.amacUrl,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="nav_source_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.navSourceType,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="desc_info = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.descInfo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="strategy = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.strategy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="substrategy = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="risk_level = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.riskLevel,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="data_sources = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.dataSources,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sort,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="apply_day = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.applyDay,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="redeem_day = case" suffix="end,">
<foreach collection="list" index="index" item="item">
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}
</foreach>
</trim>
<trim prefix="investment_scope = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentScope,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="investment_restriction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentRestriction,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="fund_investment_philosophy = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="fund_strategy_description = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundStrategyDescription,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="combine_target = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.combineTarget,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="fit_group = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fitGroup,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="combine_comment = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.combineComment,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="transfer_comment = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.transferComment,jdbcType=LONGVARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update tamp_fund.fund_info
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="p_fund_id = case" suffix="end,"> <trim prefix="p_fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.pFundId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.pFundId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.pFundId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fund_name = case" suffix="end,"> <trim prefix="fund_name = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundName != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundName,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundName,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fund_short_name = case" suffix="end,"> <trim prefix="fund_short_name = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundShortName != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundShortName,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundShortName,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fund_structure = case" suffix="end,"> <trim prefix="fund_structure = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundStructure != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundStructure,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundStructure,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fund_type = case" suffix="end,"> <trim prefix="fund_type = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundType,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundType,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="`type` = case" suffix="end,"> <trim prefix="`type` = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.type != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="raise_type = case" suffix="end,"> <trim prefix="raise_type = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.raiseType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.raiseType,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.raiseType,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="base_currency = case" suffix="end,"> <trim prefix="base_currency = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.baseCurrency != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.baseCurrency,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.baseCurrency,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="inception_date = case" suffix="end,"> <trim prefix="inception_date = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.inceptionDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.inceptionDate,jdbcType=DATE} when id = #{item.id,jdbcType=VARCHAR} then #{item.inceptionDate,jdbcType=DATE}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="domicile = case" suffix="end,"> <trim prefix="domicile = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.domicile != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.domicile,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.domicile,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="primary_benchmark_id = case" suffix="end,"> <trim prefix="primary_benchmark_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.primaryBenchmarkId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.primaryBenchmarkId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.primaryBenchmarkId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="lockup_period = case" suffix="end,"> <trim prefix="lockup_period = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.lockupPeriod != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.lockupPeriod,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.lockupPeriod,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="open_day = case" suffix="end,"> <trim prefix="open_day = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.openDay != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.openDay,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.openDay,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="duration = case" suffix="end,"> <trim prefix="duration = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.duration != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.duration,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.duration,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="advisor_id = case" suffix="end,"> <trim prefix="advisor_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.advisorId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.advisorId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.advisorId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="custodian_id = case" suffix="end,"> <trim prefix="custodian_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.custodianId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.custodianId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.custodianId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="broker_id = case" suffix="end,"> <trim prefix="broker_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.brokerId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.brokerId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.brokerId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="broker_future_id = case" suffix="end,"> <trim prefix="broker_future_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.brokerFutureId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.brokerFutureId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.brokerFutureId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="liquidation_agency_id = case" suffix="end,"> <trim prefix="liquidation_agency_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.liquidationAgencyId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.liquidationAgencyId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.liquidationAgencyId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="trust_id = case" suffix="end,"> <trim prefix="trust_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.trustId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.trustId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.trustId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="investment_consultant_id = case" suffix="end,"> <trim prefix="investment_consultant_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.investmentConsultantId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentConsultantId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentConsultantId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="administrator_id = case" suffix="end,"> <trim prefix="administrator_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.administratorId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.administratorId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.administratorId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="legal_counsel_id = case" suffix="end,"> <trim prefix="legal_counsel_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.legalCounselId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.legalCounselId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.legalCounselId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="auditor_id = case" suffix="end,"> <trim prefix="auditor_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.auditorId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.auditorId,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.auditorId,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="nav_frequency = case" suffix="end,"> <trim prefix="nav_frequency = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.navFrequency != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.navFrequency,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.navFrequency,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="performance_disclosure_mark = case" suffix="end,"> <trim prefix="performance_disclosure_mark = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.performanceDisclosureMark != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.performanceDisclosureMark,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.performanceDisclosureMark,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="register_number = case" suffix="end,"> <trim prefix="register_number = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.registerNumber != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumber,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumber,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="register_date = case" suffix="end,"> <trim prefix="register_date = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.registerDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerDate,jdbcType=DATE} when id = #{item.id,jdbcType=VARCHAR} then #{item.registerDate,jdbcType=DATE}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="isvisible = case" suffix="end,"> <trim prefix="isvisible = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.isvisible != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="istiered = case" suffix="end,"> <trim prefix="istiered = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.istiered != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.istiered,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.istiered,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="is_ranking = case" suffix="end,"> <trim prefix="is_ranking = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.isRanking != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isRanking,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.isRanking,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="is_rating = case" suffix="end,"> <trim prefix="is_rating = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.isRating != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isRating,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.isRating,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="special_tips = case" suffix="end,"> <trim prefix="special_tips = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.specialTips != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.specialTips,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.specialTips,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="amac_url = case" suffix="end,"> <trim prefix="amac_url = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.amacUrl != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.amacUrl,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.amacUrl,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="nav_source_type = case" suffix="end,"> <trim prefix="nav_source_type = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.navSourceType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.navSourceType,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.navSourceType,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="desc_info = case" suffix="end,"> <trim prefix="desc_info = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.descInfo != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.descInfo,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.descInfo,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="strategy = case" suffix="end,"> <trim prefix="strategy = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.strategy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.strategy,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.strategy,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="substrategy = case" suffix="end,"> <trim prefix="substrategy = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.substrategy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.substrategy,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="risk_level = case" suffix="end,"> <trim prefix="risk_level = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.riskLevel != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.riskLevel,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.riskLevel,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="create_by = case" suffix="end,"> <trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="create_time = case" suffix="end,"> <trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="update_by = case" suffix="end,"> <trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="update_time = case" suffix="end,"> <trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP} when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="data_sources = case" suffix="end,"> <trim prefix="data_sources = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.dataSources != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.dataSources,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.dataSources,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="`status` = case" suffix="end,"> <trim prefix="`status` = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.status != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="delete_tag = case" suffix="end,"> <trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.deleteTag != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="sort = case" suffix="end,"> <trim prefix="sort = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.sort != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.sort,jdbcType=INTEGER} when id = #{item.id,jdbcType=VARCHAR} then #{item.sort,jdbcType=INTEGER}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="apply_day = case" suffix="end,"> <trim prefix="apply_day = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.applyDay != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.applyDay,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.applyDay,jdbcType=VARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="redeem_day = case" suffix="end,"> <trim prefix="redeem_day = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.redeemDay != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.redeemDay,jdbcType=VARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.redeemDay,jdbcType=VARCHAR}
</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> </foreach>
</trim> </trim>
<trim prefix="fund_characteristic = case" suffix="end,"> <trim prefix="fund_characteristic = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundCharacteristic != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundCharacteristic,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundCharacteristic,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="investment_scope = case" suffix="end,"> <trim prefix="investment_scope = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.investmentScope != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentScope,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentScope,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="investment_restriction = case" suffix="end,"> <trim prefix="investment_restriction = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.investmentRestriction != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentRestriction,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.investmentRestriction,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fund_investment_philosophy = case" suffix="end,"> <trim prefix="fund_investment_philosophy = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundInvestmentPhilosophy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fund_strategy_description = case" suffix="end,"> <trim prefix="fund_strategy_description = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fundStrategyDescription != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundStrategyDescription,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.fundStrategyDescription,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="combine_target = case" suffix="end,"> <trim prefix="combine_target = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.combineTarget != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.combineTarget,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.combineTarget,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="fit_group = case" suffix="end,"> <trim prefix="fit_group = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.fitGroup != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fitGroup,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.fitGroup,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="combine_comment = case" suffix="end,"> <trim prefix="combine_comment = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.combineComment != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.combineComment,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.combineComment,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="transfer_comment = case" suffix="end,"> <trim prefix="transfer_comment = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.transferComment != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.transferComment,jdbcType=LONGVARCHAR} when id = #{item.id,jdbcType=VARCHAR} then #{item.transferComment,jdbcType=LONGVARCHAR}
</if>
</foreach> </foreach>
</trim> </trim>
</trim> </trim>
...@@ -1522,7 +1967,7 @@ ...@@ -1522,7 +1967,7 @@
</update> </update>
<insert id="batchInsert" parameterType="map"> <insert id="batchInsert" parameterType="map">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_info insert into tamp_fund.fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type, (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, 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, duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
...@@ -1530,7 +1975,7 @@ ...@@ -1530,7 +1975,7 @@
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible, nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info, 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, strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, fund_characteristic, data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav, fund_characteristic,
investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description, investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment, transfer_comment) combine_target, fit_group, combine_comment, transfer_comment)
values values
...@@ -1553,7 +1998,7 @@ ...@@ -1553,7 +1998,7 @@
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR}, #{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.updateTime,jdbcType=TIMESTAMP}, #{item.dataSources,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER},
#{item.deleteTag,jdbcType=INTEGER}, #{item.sort,jdbcType=INTEGER}, #{item.applyDay,jdbcType=VARCHAR}, #{item.deleteTag,jdbcType=INTEGER}, #{item.sort,jdbcType=INTEGER}, #{item.applyDay,jdbcType=VARCHAR},
#{item.redeemDay,jdbcType=VARCHAR}, #{item.fundCharacteristic,jdbcType=LONGVARCHAR}, #{item.redeemDay,jdbcType=VARCHAR}, #{item.hasNav,jdbcType=INTEGER}, #{item.fundCharacteristic,jdbcType=LONGVARCHAR},
#{item.investmentScope,jdbcType=LONGVARCHAR}, #{item.investmentRestriction,jdbcType=LONGVARCHAR}, #{item.investmentScope,jdbcType=LONGVARCHAR}, #{item.investmentRestriction,jdbcType=LONGVARCHAR},
#{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{item.fundStrategyDescription,jdbcType=LONGVARCHAR}, #{item.fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{item.fundStrategyDescription,jdbcType=LONGVARCHAR},
#{item.combineTarget,jdbcType=LONGVARCHAR}, #{item.fitGroup,jdbcType=LONGVARCHAR}, #{item.combineTarget,jdbcType=LONGVARCHAR}, #{item.fitGroup,jdbcType=LONGVARCHAR},
...@@ -1563,7 +2008,7 @@ ...@@ -1563,7 +2008,7 @@
</insert> </insert>
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_info insert into tamp_fund.fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type, (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, 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, duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
...@@ -1571,7 +2016,7 @@ ...@@ -1571,7 +2016,7 @@
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible, nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info, 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, strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day) data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav)
values values
(#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR}, (#{id,jdbcType=VARCHAR}, #{pFundId,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR},
#{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER}, #{fundShortName,jdbcType=VARCHAR}, #{fundStructure,jdbcType=INTEGER}, #{fundType,jdbcType=INTEGER},
...@@ -1590,7 +2035,7 @@ ...@@ -1590,7 +2035,7 @@
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR}, #{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}) #{redeemDay,jdbcType=VARCHAR}, #{hasNav,jdbcType=INTEGER})
on duplicate key update on duplicate key update
id = #{id,jdbcType=VARCHAR}, id = #{id,jdbcType=VARCHAR},
p_fund_id = #{pFundId,jdbcType=VARCHAR}, p_fund_id = #{pFundId,jdbcType=VARCHAR},
...@@ -1641,11 +2086,12 @@ ...@@ -1641,11 +2086,12 @@
delete_tag = #{deleteTag,jdbcType=INTEGER}, delete_tag = #{deleteTag,jdbcType=INTEGER},
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR}, apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR} redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER}
</insert> </insert>
<insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_info insert into tamp_fund.fund_info
(id, p_fund_id, fund_name, fund_short_name, fund_structure, fund_type, `type`, raise_type, (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, 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, duration, advisor_id, custodian_id, broker_id, broker_future_id, liquidation_agency_id,
...@@ -1653,7 +2099,7 @@ ...@@ -1653,7 +2099,7 @@
nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible, nav_frequency, performance_disclosure_mark, register_number, register_date, isvisible,
istiered, is_ranking, is_rating, special_tips, amac_url, nav_source_type, desc_info, 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, strategy, substrategy, risk_level, create_by, create_time, update_by, update_time,
data_sources, `status`, delete_tag, sort, apply_day, redeem_day, fund_characteristic, data_sources, `status`, delete_tag, sort, apply_day, redeem_day, has_nav, fund_characteristic,
investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description, investment_scope, investment_restriction, fund_investment_philosophy, fund_strategy_description,
combine_target, fit_group, combine_comment, transfer_comment) combine_target, fit_group, combine_comment, transfer_comment)
values values
...@@ -1674,11 +2120,11 @@ ...@@ -1674,11 +2120,11 @@
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{dataSources,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
#{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR}, #{deleteTag,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{applyDay,jdbcType=VARCHAR},
#{redeemDay,jdbcType=VARCHAR}, #{fundCharacteristic,jdbcType=LONGVARCHAR}, #{investmentScope,jdbcType=LONGVARCHAR}, #{redeemDay,jdbcType=VARCHAR}, #{hasNav,jdbcType=INTEGER}, #{fundCharacteristic,jdbcType=LONGVARCHAR},
#{investmentRestriction,jdbcType=LONGVARCHAR}, #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{investmentScope,jdbcType=LONGVARCHAR}, #{investmentRestriction,jdbcType=LONGVARCHAR},
#{fundStrategyDescription,jdbcType=LONGVARCHAR}, #{combineTarget,jdbcType=LONGVARCHAR}, #{fundInvestmentPhilosophy,jdbcType=LONGVARCHAR}, #{fundStrategyDescription,jdbcType=LONGVARCHAR},
#{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR}, #{transferComment,jdbcType=LONGVARCHAR} #{combineTarget,jdbcType=LONGVARCHAR}, #{fitGroup,jdbcType=LONGVARCHAR}, #{combineComment,jdbcType=LONGVARCHAR},
) #{transferComment,jdbcType=LONGVARCHAR})
on duplicate key update on duplicate key update
id = #{id,jdbcType=VARCHAR}, id = #{id,jdbcType=VARCHAR},
p_fund_id = #{pFundId,jdbcType=VARCHAR}, p_fund_id = #{pFundId,jdbcType=VARCHAR},
...@@ -1730,6 +2176,7 @@ ...@@ -1730,6 +2176,7 @@
sort = #{sort,jdbcType=INTEGER}, sort = #{sort,jdbcType=INTEGER},
apply_day = #{applyDay,jdbcType=VARCHAR}, apply_day = #{applyDay,jdbcType=VARCHAR},
redeem_day = #{redeemDay,jdbcType=VARCHAR}, redeem_day = #{redeemDay,jdbcType=VARCHAR},
has_nav = #{hasNav,jdbcType=INTEGER},
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR}, fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
investment_scope = #{investmentScope,jdbcType=LONGVARCHAR}, investment_scope = #{investmentScope,jdbcType=LONGVARCHAR},
investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR}, investment_restriction = #{investmentRestriction,jdbcType=LONGVARCHAR},
...@@ -1742,7 +2189,7 @@ ...@@ -1742,7 +2189,7 @@
</insert> </insert>
<insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo"> <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into fund_info insert into tamp_fund.fund_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
id, id,
...@@ -1894,6 +2341,9 @@ ...@@ -1894,6 +2341,9 @@
<if test="redeemDay != null"> <if test="redeemDay != null">
redeem_day, redeem_day,
</if> </if>
<if test="hasNav != null">
has_nav,
</if>
<if test="fundCharacteristic != null"> <if test="fundCharacteristic != null">
fund_characteristic, fund_characteristic,
</if> </if>
...@@ -2074,6 +2524,9 @@ ...@@ -2074,6 +2524,9 @@
<if test="redeemDay != null"> <if test="redeemDay != null">
#{redeemDay,jdbcType=VARCHAR}, #{redeemDay,jdbcType=VARCHAR},
</if> </if>
<if test="hasNav != null">
#{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null"> <if test="fundCharacteristic != null">
#{fundCharacteristic,jdbcType=LONGVARCHAR}, #{fundCharacteristic,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -2254,6 +2707,9 @@ ...@@ -2254,6 +2707,9 @@
<if test="redeemDay != null"> <if test="redeemDay != null">
redeem_day = #{redeemDay,jdbcType=VARCHAR}, redeem_day = #{redeemDay,jdbcType=VARCHAR},
</if> </if>
<if test="hasNav != null">
has_nav = #{hasNav,jdbcType=INTEGER},
</if>
<if test="fundCharacteristic != null"> <if test="fundCharacteristic != null">
fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR}, fund_characteristic = #{fundCharacteristic,jdbcType=LONGVARCHAR},
</if> </if>
......
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