|
|
@ -4,6 +4,7 @@
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
|
|
|
|
<result column="project_name" jdbcType="VARCHAR" property="projectName" />
|
|
|
|
<result column="investment_amount" jdbcType="DECIMAL" property="investmentAmount" />
|
|
|
|
<result column="investment_amount" jdbcType="DECIMAL" property="investmentAmount" />
|
|
|
|
<result column="share_ratio" jdbcType="DECIMAL" property="shareRatio" />
|
|
|
|
<result column="share_ratio" jdbcType="DECIMAL" property="shareRatio" />
|
|
|
|
<result column="total_equity" jdbcType="DECIMAL" property="totalEquity" />
|
|
|
|
<result column="total_equity" jdbcType="DECIMAL" property="totalEquity" />
|
|
|
@ -12,6 +13,8 @@
|
|
|
|
<result column="stock_price" jdbcType="DECIMAL" property="stockPrice" />
|
|
|
|
<result column="stock_price" jdbcType="DECIMAL" property="stockPrice" />
|
|
|
|
<result column="market_value" jdbcType="DECIMAL" property="marketValue" />
|
|
|
|
<result column="market_value" jdbcType="DECIMAL" property="marketValue" />
|
|
|
|
<result column="fund_earnings" jdbcType="DECIMAL" property="fundEarnings" />
|
|
|
|
<result column="fund_earnings" jdbcType="DECIMAL" property="fundEarnings" />
|
|
|
|
|
|
|
|
<result column="user_market_value" jdbcType="DECIMAL" property="userMarketValue" />
|
|
|
|
|
|
|
|
<result column="user_fund_earnings" jdbcType="DECIMAL" property="userFundEarnings" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -72,8 +75,8 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
id, flow_id, investment_amount, share_ratio, total_equity, share_count, market_time,
|
|
|
|
id, flow_id, project_name, investment_amount, share_ratio, total_equity, share_count,
|
|
|
|
stock_price, market_value, fund_earnings
|
|
|
|
market_time, stock_price, market_value, fund_earnings, user_market_value, user_fund_earnings
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitManagementExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitManagementExample" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -106,14 +109,16 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
insert into profit_management (id, flow_id, investment_amount,
|
|
|
|
insert into profit_management (id, flow_id, project_name,
|
|
|
|
share_ratio, total_equity, share_count,
|
|
|
|
investment_amount, share_ratio, total_equity,
|
|
|
|
market_time, stock_price, market_value,
|
|
|
|
share_count, market_time, stock_price,
|
|
|
|
fund_earnings)
|
|
|
|
market_value, fund_earnings, user_market_value,
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
user_fund_earnings)
|
|
|
|
#{shareRatio,jdbcType=DECIMAL}, #{totalEquity,jdbcType=DECIMAL}, #{shareCount,jdbcType=DECIMAL},
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR},
|
|
|
|
#{marketTime,jdbcType=INTEGER}, #{stockPrice,jdbcType=DECIMAL}, #{marketValue,jdbcType=DECIMAL},
|
|
|
|
#{investmentAmount,jdbcType=DECIMAL}, #{shareRatio,jdbcType=DECIMAL}, #{totalEquity,jdbcType=DECIMAL},
|
|
|
|
#{fundEarnings,jdbcType=DECIMAL})
|
|
|
|
#{shareCount,jdbcType=DECIMAL}, #{marketTime,jdbcType=INTEGER}, #{stockPrice,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
#{marketValue,jdbcType=DECIMAL}, #{fundEarnings,jdbcType=DECIMAL}, #{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
#{userFundEarnings,jdbcType=DECIMAL})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
insert into profit_management
|
|
|
|
insert into profit_management
|
|
|
@ -124,6 +129,9 @@
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
flow_id,
|
|
|
|
flow_id,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="projectName != null">
|
|
|
|
|
|
|
|
project_name,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
investment_amount,
|
|
|
|
investment_amount,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -148,6 +156,12 @@
|
|
|
|
<if test="fundEarnings != null">
|
|
|
|
<if test="fundEarnings != null">
|
|
|
|
fund_earnings,
|
|
|
|
fund_earnings,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="userMarketValue != null">
|
|
|
|
|
|
|
|
user_market_value,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="userFundEarnings != null">
|
|
|
|
|
|
|
|
user_fund_earnings,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">
|
|
|
|
<if test="id != null">
|
|
|
@ -156,6 +170,9 @@
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
#{flowId,jdbcType=VARCHAR},
|
|
|
|
#{flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="projectName != null">
|
|
|
|
|
|
|
|
#{projectName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
#{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
#{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -180,6 +197,12 @@
|
|
|
|
<if test="fundEarnings != null">
|
|
|
|
<if test="fundEarnings != null">
|
|
|
|
#{fundEarnings,jdbcType=DECIMAL},
|
|
|
|
#{fundEarnings,jdbcType=DECIMAL},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="userMarketValue != null">
|
|
|
|
|
|
|
|
#{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="userFundEarnings != null">
|
|
|
|
|
|
|
|
#{userFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitManagementExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitManagementExample" resultType="java.lang.Long">
|
|
|
@ -197,6 +220,9 @@
|
|
|
|
<if test="record.flowId != null">
|
|
|
|
<if test="record.flowId != null">
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.projectName != null">
|
|
|
|
|
|
|
|
project_name = #{record.projectName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="record.investmentAmount != null">
|
|
|
|
<if test="record.investmentAmount != null">
|
|
|
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
|
|
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -221,6 +247,12 @@
|
|
|
|
<if test="record.fundEarnings != null">
|
|
|
|
<if test="record.fundEarnings != null">
|
|
|
|
fund_earnings = #{record.fundEarnings,jdbcType=DECIMAL},
|
|
|
|
fund_earnings = #{record.fundEarnings,jdbcType=DECIMAL},
|
|
|
|
</if>
|
|
|
|
</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>
|
|
|
|
</set>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@ -230,6 +262,7 @@
|
|
|
|
update profit_management
|
|
|
|
update profit_management
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
project_name = #{record.projectName,jdbcType=VARCHAR},
|
|
|
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
|
|
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
|
|
|
share_ratio = #{record.shareRatio,jdbcType=DECIMAL},
|
|
|
|
share_ratio = #{record.shareRatio,jdbcType=DECIMAL},
|
|
|
|
total_equity = #{record.totalEquity,jdbcType=DECIMAL},
|
|
|
|
total_equity = #{record.totalEquity,jdbcType=DECIMAL},
|
|
|
@ -237,7 +270,9 @@
|
|
|
|
market_time = #{record.marketTime,jdbcType=INTEGER},
|
|
|
|
market_time = #{record.marketTime,jdbcType=INTEGER},
|
|
|
|
stock_price = #{record.stockPrice,jdbcType=DECIMAL},
|
|
|
|
stock_price = #{record.stockPrice,jdbcType=DECIMAL},
|
|
|
|
market_value = #{record.marketValue,jdbcType=DECIMAL},
|
|
|
|
market_value = #{record.marketValue,jdbcType=DECIMAL},
|
|
|
|
fund_earnings = #{record.fundEarnings,jdbcType=DECIMAL}
|
|
|
|
fund_earnings = #{record.fundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
user_market_value = #{record.userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
user_fund_earnings = #{record.userFundEarnings,jdbcType=DECIMAL}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -248,6 +283,9 @@
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="projectName != null">
|
|
|
|
|
|
|
|
project_name = #{projectName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
<if test="investmentAmount != null">
|
|
|
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -272,12 +310,19 @@
|
|
|
|
<if test="fundEarnings != null">
|
|
|
|
<if test="fundEarnings != null">
|
|
|
|
fund_earnings = #{fundEarnings,jdbcType=DECIMAL},
|
|
|
|
fund_earnings = #{fundEarnings,jdbcType=DECIMAL},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="userMarketValue != null">
|
|
|
|
|
|
|
|
user_market_value = #{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="userFundEarnings != null">
|
|
|
|
|
|
|
|
user_fund_earnings = #{userFundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProfitManagement">
|
|
|
|
update profit_management
|
|
|
|
update profit_management
|
|
|
|
set flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
set flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
project_name = #{projectName,jdbcType=VARCHAR},
|
|
|
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
|
|
|
share_ratio = #{shareRatio,jdbcType=DECIMAL},
|
|
|
|
share_ratio = #{shareRatio,jdbcType=DECIMAL},
|
|
|
|
total_equity = #{totalEquity,jdbcType=DECIMAL},
|
|
|
|
total_equity = #{totalEquity,jdbcType=DECIMAL},
|
|
|
@ -285,7 +330,9 @@
|
|
|
|
market_time = #{marketTime,jdbcType=INTEGER},
|
|
|
|
market_time = #{marketTime,jdbcType=INTEGER},
|
|
|
|
stock_price = #{stockPrice,jdbcType=DECIMAL},
|
|
|
|
stock_price = #{stockPrice,jdbcType=DECIMAL},
|
|
|
|
market_value = #{marketValue,jdbcType=DECIMAL},
|
|
|
|
market_value = #{marketValue,jdbcType=DECIMAL},
|
|
|
|
fund_earnings = #{fundEarnings,jdbcType=DECIMAL}
|
|
|
|
fund_earnings = #{fundEarnings,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
user_market_value = #{userMarketValue,jdbcType=DECIMAL},
|
|
|
|
|
|
|
|
user_fund_earnings = #{userFundEarnings,jdbcType=DECIMAL}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|