新增退出时机表,完成投资报告页面接口
parent
e75e0469f0
commit
d406177ca9
@ -0,0 +1,486 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.sztzjy.fund_investment.mapper.ProfitDistributionMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProfitDistribution">
|
||||||
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||||
|
<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="exit_stock_price" jdbcType="DECIMAL" property="exitStockPrice" />
|
||||||
|
<result column="fund_earnings" jdbcType="DECIMAL" property="fundEarnings" />
|
||||||
|
<result column="available_funds" jdbcType="DECIMAL" property="availableFunds" />
|
||||||
|
<result column="round_own_funds" jdbcType="DECIMAL" property="roundOwnFunds" />
|
||||||
|
<result column="round_subordinated_lp" jdbcType="DECIMAL" property="roundSubordinatedLp" />
|
||||||
|
<result column="round_preferred_lp" jdbcType="DECIMAL" property="roundPreferredLp" />
|
||||||
|
<result column="round_bank_loan" jdbcType="DECIMAL" property="roundBankLoan" />
|
||||||
|
<result column="remaining_own_funds" jdbcType="DECIMAL" property="remainingOwnFunds" />
|
||||||
|
<result column="remaining_earnings_subordinated_lp" jdbcType="DECIMAL" property="remainingEarningsSubordinatedLp" />
|
||||||
|
<result column="remaining_earnings_preferred_lp" jdbcType="DECIMAL" property="remainingEarningsPreferredLp" />
|
||||||
|
<result column="user_available_funds" jdbcType="DECIMAL" property="userAvailableFunds" />
|
||||||
|
<result column="user_round_own_funds" jdbcType="DECIMAL" property="userRoundOwnFunds" />
|
||||||
|
<result column="user_round_subordinated_lp" jdbcType="DECIMAL" property="userRoundSubordinatedLp" />
|
||||||
|
<result column="user_round_preferred_lp" jdbcType="DECIMAL" property="userRoundPreferredLp" />
|
||||||
|
<result column="user_round_bank_loan" jdbcType="DECIMAL" property="userRoundBankLoan" />
|
||||||
|
<result column="user_remaining_own_funds" jdbcType="DECIMAL" property="userRemainingOwnFunds" />
|
||||||
|
<result column="user_remaining_earnings_subordinated_lp" jdbcType="DECIMAL" property="userRemainingEarningsSubordinatedLp" />
|
||||||
|
<result column="user_remaining_earnings_preferred_lp" jdbcType="DECIMAL" property="userRemainingEarningsPreferredLp" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause">
|
||||||
|
<where>
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause">
|
||||||
|
<where>
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||||
|
<if test="criteria.valid">
|
||||||
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||||
|
<foreach collection="criteria.criteria" item="criterion">
|
||||||
|
<choose>
|
||||||
|
<when test="criterion.noValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue">
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue">
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue">
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
id, flow_id, project_name, investment_amount, exit_stock_price, fund_earnings, available_funds,
|
||||||
|
round_own_funds, round_subordinated_lp, round_preferred_lp, round_bank_loan, remaining_own_funds,
|
||||||
|
remaining_earnings_subordinated_lp, remaining_earnings_preferred_lp, user_available_funds,
|
||||||
|
user_round_own_funds, user_round_subordinated_lp, user_round_preferred_lp, user_round_bank_loan,
|
||||||
|
user_remaining_own_funds, user_remaining_earnings_subordinated_lp, user_remaining_earnings_preferred_lp
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitDistributionExample" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<if test="distinct">
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from profit_distribution
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null">
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from profit_distribution
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||||
|
delete from profit_distribution
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitDistributionExample">
|
||||||
|
delete from profit_distribution
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProfitDistribution">
|
||||||
|
insert into profit_distribution (id, flow_id, project_name,
|
||||||
|
investment_amount, exit_stock_price, fund_earnings,
|
||||||
|
available_funds, round_own_funds, round_subordinated_lp,
|
||||||
|
round_preferred_lp, round_bank_loan, remaining_own_funds,
|
||||||
|
remaining_earnings_subordinated_lp, remaining_earnings_preferred_lp,
|
||||||
|
user_available_funds, user_round_own_funds,
|
||||||
|
user_round_subordinated_lp, user_round_preferred_lp,
|
||||||
|
user_round_bank_loan, user_remaining_own_funds,
|
||||||
|
user_remaining_earnings_subordinated_lp, user_remaining_earnings_preferred_lp
|
||||||
|
)
|
||||||
|
values (#{id,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR},
|
||||||
|
#{investmentAmount,jdbcType=DECIMAL}, #{exitStockPrice,jdbcType=DECIMAL}, #{fundEarnings,jdbcType=DECIMAL},
|
||||||
|
#{availableFunds,jdbcType=DECIMAL}, #{roundOwnFunds,jdbcType=DECIMAL}, #{roundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
#{roundPreferredLp,jdbcType=DECIMAL}, #{roundBankLoan,jdbcType=DECIMAL}, #{remainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
#{remainingEarningsSubordinatedLp,jdbcType=DECIMAL}, #{remainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
#{userAvailableFunds,jdbcType=DECIMAL}, #{userRoundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
#{userRoundSubordinatedLp,jdbcType=DECIMAL}, #{userRoundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
#{userRoundBankLoan,jdbcType=DECIMAL}, #{userRemainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
#{userRemainingEarningsSubordinatedLp,jdbcType=DECIMAL}, #{userRemainingEarningsPreferredLp,jdbcType=DECIMAL}
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProfitDistribution">
|
||||||
|
insert into profit_distribution
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="flowId != null">
|
||||||
|
flow_id,
|
||||||
|
</if>
|
||||||
|
<if test="projectName != null">
|
||||||
|
project_name,
|
||||||
|
</if>
|
||||||
|
<if test="investmentAmount != null">
|
||||||
|
investment_amount,
|
||||||
|
</if>
|
||||||
|
<if test="exitStockPrice != null">
|
||||||
|
exit_stock_price,
|
||||||
|
</if>
|
||||||
|
<if test="fundEarnings != null">
|
||||||
|
fund_earnings,
|
||||||
|
</if>
|
||||||
|
<if test="availableFunds != null">
|
||||||
|
available_funds,
|
||||||
|
</if>
|
||||||
|
<if test="roundOwnFunds != null">
|
||||||
|
round_own_funds,
|
||||||
|
</if>
|
||||||
|
<if test="roundSubordinatedLp != null">
|
||||||
|
round_subordinated_lp,
|
||||||
|
</if>
|
||||||
|
<if test="roundPreferredLp != null">
|
||||||
|
round_preferred_lp,
|
||||||
|
</if>
|
||||||
|
<if test="roundBankLoan != null">
|
||||||
|
round_bank_loan,
|
||||||
|
</if>
|
||||||
|
<if test="remainingOwnFunds != null">
|
||||||
|
remaining_own_funds,
|
||||||
|
</if>
|
||||||
|
<if test="remainingEarningsSubordinatedLp != null">
|
||||||
|
remaining_earnings_subordinated_lp,
|
||||||
|
</if>
|
||||||
|
<if test="remainingEarningsPreferredLp != null">
|
||||||
|
remaining_earnings_preferred_lp,
|
||||||
|
</if>
|
||||||
|
<if test="userAvailableFunds != null">
|
||||||
|
user_available_funds,
|
||||||
|
</if>
|
||||||
|
<if test="userRoundOwnFunds != null">
|
||||||
|
user_round_own_funds,
|
||||||
|
</if>
|
||||||
|
<if test="userRoundSubordinatedLp != null">
|
||||||
|
user_round_subordinated_lp,
|
||||||
|
</if>
|
||||||
|
<if test="userRoundPreferredLp != null">
|
||||||
|
user_round_preferred_lp,
|
||||||
|
</if>
|
||||||
|
<if test="userRoundBankLoan != null">
|
||||||
|
user_round_bank_loan,
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingOwnFunds != null">
|
||||||
|
user_remaining_own_funds,
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingEarningsSubordinatedLp != null">
|
||||||
|
user_remaining_earnings_subordinated_lp,
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingEarningsPreferredLp != null">
|
||||||
|
user_remaining_earnings_preferred_lp,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="flowId != null">
|
||||||
|
#{flowId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="projectName != null">
|
||||||
|
#{projectName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="investmentAmount != null">
|
||||||
|
#{investmentAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="exitStockPrice != null">
|
||||||
|
#{exitStockPrice,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="fundEarnings != null">
|
||||||
|
#{fundEarnings,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="availableFunds != null">
|
||||||
|
#{availableFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundOwnFunds != null">
|
||||||
|
#{roundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundSubordinatedLp != null">
|
||||||
|
#{roundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundPreferredLp != null">
|
||||||
|
#{roundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundBankLoan != null">
|
||||||
|
#{roundBankLoan,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remainingOwnFunds != null">
|
||||||
|
#{remainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remainingEarningsSubordinatedLp != null">
|
||||||
|
#{remainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remainingEarningsPreferredLp != null">
|
||||||
|
#{remainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userAvailableFunds != null">
|
||||||
|
#{userAvailableFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundOwnFunds != null">
|
||||||
|
#{userRoundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundSubordinatedLp != null">
|
||||||
|
#{userRoundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundPreferredLp != null">
|
||||||
|
#{userRoundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundBankLoan != null">
|
||||||
|
#{userRoundBankLoan,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingOwnFunds != null">
|
||||||
|
#{userRemainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingEarningsSubordinatedLp != null">
|
||||||
|
#{userRemainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingEarningsPreferredLp != null">
|
||||||
|
#{userRemainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProfitDistributionExample" resultType="java.lang.Long">
|
||||||
|
select count(*) from profit_distribution
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map">
|
||||||
|
update profit_distribution
|
||||||
|
<set>
|
||||||
|
<if test="record.id != null">
|
||||||
|
id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.flowId != null">
|
||||||
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.projectName != null">
|
||||||
|
project_name = #{record.projectName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.investmentAmount != null">
|
||||||
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.exitStockPrice != null">
|
||||||
|
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.fundEarnings != null">
|
||||||
|
fund_earnings = #{record.fundEarnings,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.availableFunds != null">
|
||||||
|
available_funds = #{record.availableFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.roundOwnFunds != null">
|
||||||
|
round_own_funds = #{record.roundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.roundSubordinatedLp != null">
|
||||||
|
round_subordinated_lp = #{record.roundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.roundPreferredLp != null">
|
||||||
|
round_preferred_lp = #{record.roundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.roundBankLoan != null">
|
||||||
|
round_bank_loan = #{record.roundBankLoan,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.remainingOwnFunds != null">
|
||||||
|
remaining_own_funds = #{record.remainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.remainingEarningsSubordinatedLp != null">
|
||||||
|
remaining_earnings_subordinated_lp = #{record.remainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.remainingEarningsPreferredLp != null">
|
||||||
|
remaining_earnings_preferred_lp = #{record.remainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userAvailableFunds != null">
|
||||||
|
user_available_funds = #{record.userAvailableFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRoundOwnFunds != null">
|
||||||
|
user_round_own_funds = #{record.userRoundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRoundSubordinatedLp != null">
|
||||||
|
user_round_subordinated_lp = #{record.userRoundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRoundPreferredLp != null">
|
||||||
|
user_round_preferred_lp = #{record.userRoundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRoundBankLoan != null">
|
||||||
|
user_round_bank_loan = #{record.userRoundBankLoan,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRemainingOwnFunds != null">
|
||||||
|
user_remaining_own_funds = #{record.userRemainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRemainingEarningsSubordinatedLp != null">
|
||||||
|
user_remaining_earnings_subordinated_lp = #{record.userRemainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="record.userRemainingEarningsPreferredLp != null">
|
||||||
|
user_remaining_earnings_preferred_lp = #{record.userRemainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map">
|
||||||
|
update profit_distribution
|
||||||
|
set id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||||
|
project_name = #{record.projectName,jdbcType=VARCHAR},
|
||||||
|
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
||||||
|
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL},
|
||||||
|
fund_earnings = #{record.fundEarnings,jdbcType=DECIMAL},
|
||||||
|
available_funds = #{record.availableFunds,jdbcType=DECIMAL},
|
||||||
|
round_own_funds = #{record.roundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
round_subordinated_lp = #{record.roundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
round_preferred_lp = #{record.roundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
round_bank_loan = #{record.roundBankLoan,jdbcType=DECIMAL},
|
||||||
|
remaining_own_funds = #{record.remainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
remaining_earnings_subordinated_lp = #{record.remainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
remaining_earnings_preferred_lp = #{record.remainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
user_available_funds = #{record.userAvailableFunds,jdbcType=DECIMAL},
|
||||||
|
user_round_own_funds = #{record.userRoundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
user_round_subordinated_lp = #{record.userRoundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
user_round_preferred_lp = #{record.userRoundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
user_round_bank_loan = #{record.userRoundBankLoan,jdbcType=DECIMAL},
|
||||||
|
user_remaining_own_funds = #{record.userRemainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
user_remaining_earnings_subordinated_lp = #{record.userRemainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
user_remaining_earnings_preferred_lp = #{record.userRemainingEarningsPreferredLp,jdbcType=DECIMAL}
|
||||||
|
<if test="_parameter != null">
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ProfitDistribution">
|
||||||
|
update profit_distribution
|
||||||
|
<set>
|
||||||
|
<if test="flowId != null">
|
||||||
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="projectName != null">
|
||||||
|
project_name = #{projectName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="investmentAmount != null">
|
||||||
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="exitStockPrice != null">
|
||||||
|
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="fundEarnings != null">
|
||||||
|
fund_earnings = #{fundEarnings,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="availableFunds != null">
|
||||||
|
available_funds = #{availableFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundOwnFunds != null">
|
||||||
|
round_own_funds = #{roundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundSubordinatedLp != null">
|
||||||
|
round_subordinated_lp = #{roundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundPreferredLp != null">
|
||||||
|
round_preferred_lp = #{roundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="roundBankLoan != null">
|
||||||
|
round_bank_loan = #{roundBankLoan,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remainingOwnFunds != null">
|
||||||
|
remaining_own_funds = #{remainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remainingEarningsSubordinatedLp != null">
|
||||||
|
remaining_earnings_subordinated_lp = #{remainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="remainingEarningsPreferredLp != null">
|
||||||
|
remaining_earnings_preferred_lp = #{remainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userAvailableFunds != null">
|
||||||
|
user_available_funds = #{userAvailableFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundOwnFunds != null">
|
||||||
|
user_round_own_funds = #{userRoundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundSubordinatedLp != null">
|
||||||
|
user_round_subordinated_lp = #{userRoundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundPreferredLp != null">
|
||||||
|
user_round_preferred_lp = #{userRoundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRoundBankLoan != null">
|
||||||
|
user_round_bank_loan = #{userRoundBankLoan,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingOwnFunds != null">
|
||||||
|
user_remaining_own_funds = #{userRemainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingEarningsSubordinatedLp != null">
|
||||||
|
user_remaining_earnings_subordinated_lp = #{userRemainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
<if test="userRemainingEarningsPreferredLp != null">
|
||||||
|
user_remaining_earnings_preferred_lp = #{userRemainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProfitDistribution">
|
||||||
|
update profit_distribution
|
||||||
|
set flow_id = #{flowId,jdbcType=VARCHAR},
|
||||||
|
project_name = #{projectName,jdbcType=VARCHAR},
|
||||||
|
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
||||||
|
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL},
|
||||||
|
fund_earnings = #{fundEarnings,jdbcType=DECIMAL},
|
||||||
|
available_funds = #{availableFunds,jdbcType=DECIMAL},
|
||||||
|
round_own_funds = #{roundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
round_subordinated_lp = #{roundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
round_preferred_lp = #{roundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
round_bank_loan = #{roundBankLoan,jdbcType=DECIMAL},
|
||||||
|
remaining_own_funds = #{remainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
remaining_earnings_subordinated_lp = #{remainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
remaining_earnings_preferred_lp = #{remainingEarningsPreferredLp,jdbcType=DECIMAL},
|
||||||
|
user_available_funds = #{userAvailableFunds,jdbcType=DECIMAL},
|
||||||
|
user_round_own_funds = #{userRoundOwnFunds,jdbcType=DECIMAL},
|
||||||
|
user_round_subordinated_lp = #{userRoundSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
user_round_preferred_lp = #{userRoundPreferredLp,jdbcType=DECIMAL},
|
||||||
|
user_round_bank_loan = #{userRoundBankLoan,jdbcType=DECIMAL},
|
||||||
|
user_remaining_own_funds = #{userRemainingOwnFunds,jdbcType=DECIMAL},
|
||||||
|
user_remaining_earnings_subordinated_lp = #{userRemainingEarningsSubordinatedLp,jdbcType=DECIMAL},
|
||||||
|
user_remaining_earnings_preferred_lp = #{userRemainingEarningsPreferredLp,jdbcType=DECIMAL}
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue