Commit cc94695e authored by 王亚雷's avatar 王亚雷

生成的sql语句中去掉库名

parent a91f0c9c
......@@ -3,7 +3,7 @@
<mapper namespace="com.tanpu.fund.mapper.generator.FundCountMapper">
<resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
<!--@Table tamp_fund.fund_count-->
<!--@Table fund_count-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="fund_id" jdbcType="VARCHAR" property="fundId" />
<result column="strategy" jdbcType="INTEGER" property="strategy" />
......@@ -156,7 +156,7 @@
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
<!--@Table tamp_fund.fund_count-->
<!--@Table fund_count-->
<result column="annual_ret" jdbcType="LONGVARCHAR" property="annualRet" />
<result column="monthly_ret" jdbcType="LONGVARCHAR" property="monthlyRet" />
<result column="annual_maxdrawdown" jdbcType="LONGVARCHAR" property="annualMaxdrawdown" />
......@@ -260,7 +260,7 @@
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tamp_fund.fund_count
from fund_count
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
......@@ -275,7 +275,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from tamp_fund.fund_count
from fund_count
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
......@@ -289,24 +289,24 @@
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tamp_fund.fund_count
from fund_count
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--@mbg.generated-->
delete from tamp_fund.fund_count
delete from fund_count
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.FundCountExample">
<!--@mbg.generated-->
delete from tamp_fund.fund_count
delete from fund_count
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
insert into tamp_fund.fund_count (id, fund_id, strategy,
insert into fund_count (id, fund_id, strategy,
substrategy, inception_date, `type`,
end_date, price_date, net_nav,
cumulative_nav, ret_1day, ret_1day_bm1,
......@@ -415,7 +415,7 @@
</insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
insert into tamp_fund.fund_count
insert into fund_count
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......@@ -1335,14 +1335,14 @@
</insert>
<select id="countByExample" parameterType="com.tanpu.fund.entity.generator.FundCountExample" resultType="java.lang.Long">
<!--@mbg.generated-->
select count(*) from tamp_fund.fund_count
select count(*) from fund_count
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
......@@ -1807,7 +1807,7 @@
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
set id = #{record.id,jdbcType=VARCHAR},
fund_id = #{record.fundId,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
......@@ -1966,7 +1966,7 @@
</update>
<update id="updateByExample" parameterType="map">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
set id = #{record.id,jdbcType=VARCHAR},
fund_id = #{record.fundId,jdbcType=VARCHAR},
strategy = #{record.strategy,jdbcType=INTEGER},
......@@ -2122,7 +2122,7 @@
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
<set>
<if test="fundId != null">
fund_id = #{fundId,jdbcType=VARCHAR},
......@@ -2582,7 +2582,7 @@
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
set fund_id = #{fundId,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
......@@ -2738,7 +2738,7 @@
</update>
<update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
set fund_id = #{fundId,jdbcType=VARCHAR},
strategy = #{strategy,jdbcType=INTEGER},
substrategy = #{substrategy,jdbcType=INTEGER},
......@@ -2891,7 +2891,7 @@
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
<trim prefix="set" suffixOverrides=",">
<trim prefix="fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
......@@ -3656,7 +3656,7 @@
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update tamp_fund.fund_count
update fund_count
<trim prefix="set" suffixOverrides=",">
<trim prefix="fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
......@@ -4723,7 +4723,7 @@
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into tamp_fund.fund_count
insert into fund_count
(id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1,
ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1,
......@@ -4816,7 +4816,7 @@
</insert>
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
insert into tamp_fund.fund_count
insert into fund_count
(id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1,
ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1,
......@@ -5047,7 +5047,7 @@
</insert>
<insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
insert into tamp_fund.fund_count
insert into fund_count
(id, fund_id, strategy, substrategy, inception_date, `type`, end_date, price_date,
net_nav, cumulative_nav, ret_1day, ret_1day_bm1, ret_1w, ret_1w_bm1, ret_1m, ret_1m_bm1,
ret_3m, ret_3m_bm1, ret_6m, ret_6m_bm1, ret_1y, ret_1y_bm1, ret_2y, ret_2y_bm1,
......@@ -5283,7 +5283,7 @@
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.FundCount">
<!--@mbg.generated-->
insert into tamp_fund.fund_count
insert into fund_count
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......
......@@ -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 tamp_fund.fund_info-->
<!--@Table 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" />
......@@ -58,7 +58,7 @@
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
<!--@Table tamp_fund.fund_info-->
<!--@Table 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" />
......@@ -154,7 +154,7 @@
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tamp_fund.fund_info
from fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
......@@ -169,7 +169,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from tamp_fund.fund_info
from fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
......@@ -183,24 +183,24 @@
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tamp_fund.fund_info
from fund_info
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--@mbg.generated-->
delete from tamp_fund.fund_info
delete from fund_info
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample">
<!--@mbg.generated-->
delete from tamp_fund.fund_info
delete from 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 tamp_fund.fund_info (id, p_fund_id, fund_name,
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,
......@@ -247,7 +247,7 @@
</insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into tamp_fund.fund_info
insert into fund_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......@@ -615,14 +615,14 @@
</insert>
<select id="countByExample" parameterType="com.tanpu.fund.entity.generator.FundInfoExample" resultType="java.lang.Long">
<!--@mbg.generated-->
select count(*) from tamp_fund.fund_info
select count(*) from fund_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
......@@ -811,7 +811,7 @@
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
set id = #{record.id,jdbcType=VARCHAR},
p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR},
......@@ -878,7 +878,7 @@
</update>
<update id="updateByExample" parameterType="map">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
set id = #{record.id,jdbcType=VARCHAR},
p_fund_id = #{record.pFundId,jdbcType=VARCHAR},
fund_name = #{record.fundName,jdbcType=VARCHAR},
......@@ -936,7 +936,7 @@
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
<set>
<if test="pFundId != null">
p_fund_id = #{pFundId,jdbcType=VARCHAR},
......@@ -1120,7 +1120,7 @@
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
set p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
......@@ -1184,7 +1184,7 @@
</update>
<update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
set p_fund_id = #{pFundId,jdbcType=VARCHAR},
fund_name = #{fundName,jdbcType=VARCHAR},
fund_short_name = #{fundShortName,jdbcType=VARCHAR},
......@@ -1239,7 +1239,7 @@
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
<trim prefix="set" suffixOverrides=",">
<trim prefix="p_fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
......@@ -1544,7 +1544,7 @@
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update tamp_fund.fund_info
update fund_info
<trim prefix="set" suffixOverrides=",">
<trim prefix="p_fund_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
......@@ -1967,7 +1967,7 @@
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into tamp_fund.fund_info
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,
......@@ -2008,7 +2008,7 @@
</insert>
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into tamp_fund.fund_info
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,
......@@ -2091,7 +2091,7 @@
</insert>
<insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into tamp_fund.fund_info
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,
......@@ -2189,7 +2189,7 @@
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.FundInfo">
<!--@mbg.generated-->
insert into tamp_fund.fund_info
insert into fund_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......
......@@ -3,7 +3,7 @@
<mapper namespace="com.tanpu.fund.mapper.generator.TxFundDistributionMapper">
<resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.TxFundDistribution">
<!--@mbg.generated-->
<!--@Table tamp_fund.tx_fund_distribution-->
<!--@Table tx_fund_distribution-->
<result column="id" jdbcType="BIGINT" property="id" />
<result column="fund_id" jdbcType="BIGINT" property="fundId" />
<result column="fund_code" jdbcType="VARCHAR" property="fundCode" />
......@@ -19,7 +19,7 @@
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.TxFundDistribution">
<!--@mbg.generated-->
<!--@Table tamp_fund.tx_fund_distribution-->
<!--@Table tx_fund_distribution-->
<result column="distribute_type" jdbcType="VARBINARY" property="distributeType" />
<result column="create_by" jdbcType="VARBINARY" property="createBy" />
<result column="create_time" jdbcType="VARBINARY" property="createTime" />
......
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