|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<mapper namespace="com.sztzjy.fund_investment.mapper.ExitTimeMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ExitTime">
|
|
|
|
|
<id column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
|
<result column="porject_name" jdbcType="VARCHAR" property="porjectName" />
|
|
|
|
|
<result column="project_name" jdbcType="VARCHAR" property="projectName" />
|
|
|
|
|
<result column="investment_amount" jdbcType="DECIMAL" property="investmentAmount" />
|
|
|
|
|
<result column="share_ratio" jdbcType="DECIMAL" property="shareRatio" />
|
|
|
|
|
<result column="total_equity" jdbcType="DECIMAL" property="totalEquity" />
|
|
|
|
@ -13,6 +13,8 @@
|
|
|
|
|
<result column="exit_fund_earnings" jdbcType="DECIMAL" property="exitFundEarnings" />
|
|
|
|
|
<result column="exit_timing" jdbcType="VARCHAR" property="exitTiming" />
|
|
|
|
|
<result column="exit_stock_price" jdbcType="DECIMAL" property="exitStockPrice" />
|
|
|
|
|
<result column="user_market_value" jdbcType="DECIMAL" property="userMarketValue" />
|
|
|
|
|
<result column="user_fund_earnings" jdbcType="DECIMAL" property="userFundEarnings" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -73,8 +75,9 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
flow_id, porject_name, investment_amount, share_ratio, total_equity, share_count,
|
|
|
|
|
exit_market_value, exit_yield, exit_fund_earnings, exit_timing, exit_stock_price
|
|
|
|
|
flow_id, project_name, investment_amount, share_ratio, total_equity, share_count,
|
|
|
|
|
exit_market_value, exit_yield, exit_fund_earnings, exit_timing, exit_stock_price,
|
|
|
|
|
user_market_value, user_fund_earnings
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ExitTimeExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -107,14 +110,16 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
|
|
|
|
insert into exit_time (flow_id, porject_name, investment_amount,
|
|
|
|
|
insert into exit_time (flow_id, project_name, investment_amount,
|
|
|
|
|
share_ratio, total_equity, share_count,
|
|
|
|
|
exit_market_value, exit_yield, exit_fund_earnings,
|
|
|
|
|
exit_timing, exit_stock_price)
|
|
|
|
|
values (#{flowId,jdbcType=VARCHAR}, #{porjectName,jdbcType=VARCHAR}, #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
|
exit_timing, exit_stock_price, user_market_value,
|
|
|
|
|
user_fund_earnings)
|
|
|
|
|
values (#{flowId,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR}, #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
|
#{shareRatio,jdbcType=DECIMAL}, #{totalEquity,jdbcType=DECIMAL}, #{shareCount,jdbcType=DECIMAL},
|
|
|
|
|
#{exitMarketValue,jdbcType=DECIMAL}, #{exitYield,jdbcType=DECIMAL}, #{exitFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
#{exitTiming,jdbcType=VARCHAR}, #{exitStockPrice,jdbcType=DECIMAL})
|
|
|
|
|
#{exitTiming,jdbcType=VARCHAR}, #{exitStockPrice,jdbcType=DECIMAL}, #{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
#{userFundEarnings,jdbcType=DECIMAL})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
|
|
|
|
insert into exit_time
|
|
|
|
@ -122,8 +127,8 @@
|
|
|
|
|
<if test="flowId != null">
|
|
|
|
|
flow_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="porjectName != null">
|
|
|
|
|
porject_name,
|
|
|
|
|
<if test="projectName != null">
|
|
|
|
|
project_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
|
investment_amount,
|
|
|
|
@ -152,13 +157,19 @@
|
|
|
|
|
<if test="exitStockPrice != null">
|
|
|
|
|
exit_stock_price,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userMarketValue != null">
|
|
|
|
|
user_market_value,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userFundEarnings != null">
|
|
|
|
|
user_fund_earnings,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="flowId != null">
|
|
|
|
|
#{flowId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="porjectName != null">
|
|
|
|
|
#{porjectName,jdbcType=VARCHAR},
|
|
|
|
|
<if test="projectName != null">
|
|
|
|
|
#{projectName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
|
#{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
@ -187,6 +198,12 @@
|
|
|
|
|
<if test="exitStockPrice != null">
|
|
|
|
|
#{exitStockPrice,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userMarketValue != null">
|
|
|
|
|
#{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userFundEarnings != null">
|
|
|
|
|
#{userFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ExitTimeExample" resultType="java.lang.Long">
|
|
|
|
@ -201,8 +218,8 @@
|
|
|
|
|
<if test="record.flowId != null">
|
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.porjectName != null">
|
|
|
|
|
porject_name = #{record.porjectName,jdbcType=VARCHAR},
|
|
|
|
|
<if test="record.projectName != null">
|
|
|
|
|
project_name = #{record.projectName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.investmentAmount != null">
|
|
|
|
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
|
|
|
@ -231,6 +248,12 @@
|
|
|
|
|
<if test="record.exitStockPrice != null">
|
|
|
|
|
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userMarketValue != null">
|
|
|
|
|
user_market_value = #{record.userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userFundEarnings != null">
|
|
|
|
|
user_fund_earnings = #{record.userFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -239,7 +262,7 @@
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update exit_time
|
|
|
|
|
set flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
|
porject_name = #{record.porjectName,jdbcType=VARCHAR},
|
|
|
|
|
project_name = #{record.projectName,jdbcType=VARCHAR},
|
|
|
|
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
|
|
|
|
share_ratio = #{record.shareRatio,jdbcType=DECIMAL},
|
|
|
|
|
total_equity = #{record.totalEquity,jdbcType=DECIMAL},
|
|
|
|
@ -248,7 +271,9 @@
|
|
|
|
|
exit_yield = #{record.exitYield,jdbcType=DECIMAL},
|
|
|
|
|
exit_fund_earnings = #{record.exitFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
exit_timing = #{record.exitTiming,jdbcType=VARCHAR},
|
|
|
|
|
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL}
|
|
|
|
|
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL},
|
|
|
|
|
user_market_value = #{record.userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
user_fund_earnings = #{record.userFundEarnings,jdbcType=DECIMAL}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -256,8 +281,8 @@
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
|
|
|
|
update exit_time
|
|
|
|
|
<set>
|
|
|
|
|
<if test="porjectName != null">
|
|
|
|
|
porject_name = #{porjectName,jdbcType=VARCHAR},
|
|
|
|
|
<if test="projectName != null">
|
|
|
|
|
project_name = #{projectName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
@ -286,12 +311,18 @@
|
|
|
|
|
<if test="exitStockPrice != null">
|
|
|
|
|
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userMarketValue != null">
|
|
|
|
|
user_market_value = #{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userFundEarnings != null">
|
|
|
|
|
user_fund_earnings = #{userFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where flow_id = #{flowId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
|
|
|
|
update exit_time
|
|
|
|
|
set porject_name = #{porjectName,jdbcType=VARCHAR},
|
|
|
|
|
set project_name = #{projectName,jdbcType=VARCHAR},
|
|
|
|
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
|
share_ratio = #{shareRatio,jdbcType=DECIMAL},
|
|
|
|
|
total_equity = #{totalEquity,jdbcType=DECIMAL},
|
|
|
|
@ -300,7 +331,9 @@
|
|
|
|
|
exit_yield = #{exitYield,jdbcType=DECIMAL},
|
|
|
|
|
exit_fund_earnings = #{exitFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
exit_timing = #{exitTiming,jdbcType=VARCHAR},
|
|
|
|
|
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL}
|
|
|
|
|
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL},
|
|
|
|
|
user_market_value = #{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
user_fund_earnings = #{userFundEarnings,jdbcType=DECIMAL}
|
|
|
|
|
where flow_id = #{flowId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|