|
|
@ -5,7 +5,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<id column="stash_id" jdbcType="VARCHAR" property="stashId" />
|
|
|
|
<id column="stash_id" jdbcType="VARCHAR" property="stashId" />
|
|
|
|
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
|
|
|
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
|
|
@ -16,9 +16,11 @@
|
|
|
|
<result column="buy_sell_type" jdbcType="VARCHAR" property="buySellType" />
|
|
|
|
<result column="buy_sell_type" jdbcType="VARCHAR" property="buySellType" />
|
|
|
|
<result column="volume_transaction" jdbcType="DOUBLE" property="volumeTransaction" />
|
|
|
|
<result column="volume_transaction" jdbcType="DOUBLE" property="volumeTransaction" />
|
|
|
|
<result column="price_transaction" jdbcType="DOUBLE" property="priceTransaction" />
|
|
|
|
<result column="price_transaction" jdbcType="DOUBLE" property="priceTransaction" />
|
|
|
|
|
|
|
|
<result column="price_transaction_close" jdbcType="DOUBLE" property="priceTransactionClose" />
|
|
|
|
<result column="stop_loss" jdbcType="DOUBLE" property="stopLoss" />
|
|
|
|
<result column="stop_loss" jdbcType="DOUBLE" property="stopLoss" />
|
|
|
|
<result column="stop_win" jdbcType="DOUBLE" property="stopWin" />
|
|
|
|
<result column="stop_win" jdbcType="DOUBLE" property="stopWin" />
|
|
|
|
<result column="time_transaction" jdbcType="TIMESTAMP" property="timeTransaction" />
|
|
|
|
<result column="time_transaction" jdbcType="TIMESTAMP" property="timeTransaction" />
|
|
|
|
|
|
|
|
<result column="time_transaction_close" jdbcType="TIMESTAMP" property="timeTransactionClose" />
|
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
<result column="profit_and_loss_by_close" jdbcType="DOUBLE" property="profitAndLossByClose" />
|
|
|
|
<result column="profit_and_loss_by_close" jdbcType="DOUBLE" property="profitAndLossByClose" />
|
|
|
|
<result column="trading_margin" jdbcType="DOUBLE" property="tradingMargin" />
|
|
|
|
<result column="trading_margin" jdbcType="DOUBLE" property="tradingMargin" />
|
|
|
@ -27,7 +29,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
@ -61,7 +63,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
@ -95,17 +97,17 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
stash_id, member_id, training_id, trading_code, currency_name, order_number, buy_sell_type,
|
|
|
|
stash_id, member_id, training_id, trading_code, currency_name, order_number, buy_sell_type,
|
|
|
|
volume_transaction, price_transaction, stop_loss, stop_win, time_transaction, status,
|
|
|
|
volume_transaction, price_transaction, price_transaction_close, stop_loss, stop_win,
|
|
|
|
profit_and_loss_by_close, trading_margin
|
|
|
|
time_transaction, time_transaction_close, status, profit_and_loss_by_close, trading_margin
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStashExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStashExample" resultMap="BaseResultMap">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<if test="distinct">
|
|
|
|
<if test="distinct">
|
|
|
@ -124,9 +126,9 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
from sys_take_stash
|
|
|
|
from sys_take_stash
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
@ -135,7 +137,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
delete from sys_take_stash
|
|
|
|
delete from sys_take_stash
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
@ -144,7 +146,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
delete from sys_take_stash
|
|
|
|
delete from sys_take_stash
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
@ -155,26 +157,28 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
insert into sys_take_stash (stash_id, member_id, training_id,
|
|
|
|
insert into sys_take_stash (stash_id, member_id, training_id,
|
|
|
|
trading_code, currency_name, order_number,
|
|
|
|
trading_code, currency_name, order_number,
|
|
|
|
buy_sell_type, volume_transaction, price_transaction,
|
|
|
|
buy_sell_type, volume_transaction, price_transaction,
|
|
|
|
stop_loss, stop_win, time_transaction,
|
|
|
|
price_transaction_close, stop_loss, stop_win,
|
|
|
|
status, profit_and_loss_by_close, trading_margin
|
|
|
|
time_transaction, time_transaction_close,
|
|
|
|
)
|
|
|
|
status, profit_and_loss_by_close, trading_margin
|
|
|
|
values (#{stashId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{trainingId,jdbcType=VARCHAR},
|
|
|
|
)
|
|
|
|
#{tradingCode,jdbcType=VARCHAR}, #{currencyName,jdbcType=VARCHAR}, #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
values (#{stashId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{trainingId,jdbcType=VARCHAR},
|
|
|
|
#{buySellType,jdbcType=VARCHAR}, #{volumeTransaction,jdbcType=DOUBLE}, #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
#{tradingCode,jdbcType=VARCHAR}, #{currencyName,jdbcType=VARCHAR}, #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
#{stopLoss,jdbcType=DOUBLE}, #{stopWin,jdbcType=DOUBLE}, #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
#{buySellType,jdbcType=VARCHAR}, #{volumeTransaction,jdbcType=DOUBLE}, #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
#{status,jdbcType=INTEGER}, #{profitAndLossByClose,jdbcType=DOUBLE}, #{tradingMargin,jdbcType=DOUBLE}
|
|
|
|
#{priceTransactionClose,jdbcType=DOUBLE}, #{stopLoss,jdbcType=DOUBLE}, #{stopWin,jdbcType=DOUBLE},
|
|
|
|
)
|
|
|
|
#{timeTransaction,jdbcType=TIMESTAMP}, #{timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
#{status,jdbcType=INTEGER}, #{profitAndLossByClose,jdbcType=DOUBLE}, #{tradingMargin,jdbcType=DOUBLE}
|
|
|
|
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
insert into sys_take_stash
|
|
|
|
insert into sys_take_stash
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@ -205,6 +209,9 @@
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
price_transaction,
|
|
|
|
price_transaction,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="priceTransactionClose != null">
|
|
|
|
|
|
|
|
price_transaction_close,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="stopLoss != null">
|
|
|
|
<if test="stopLoss != null">
|
|
|
|
stop_loss,
|
|
|
|
stop_loss,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -214,6 +221,9 @@
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
time_transaction,
|
|
|
|
time_transaction,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="timeTransactionClose != null">
|
|
|
|
|
|
|
|
time_transaction_close,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
status,
|
|
|
|
status,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -252,6 +262,9 @@
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
#{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
#{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="priceTransactionClose != null">
|
|
|
|
|
|
|
|
#{priceTransactionClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="stopLoss != null">
|
|
|
|
<if test="stopLoss != null">
|
|
|
|
#{stopLoss,jdbcType=DOUBLE},
|
|
|
|
#{stopLoss,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -261,6 +274,9 @@
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
#{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
#{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="timeTransactionClose != null">
|
|
|
|
|
|
|
|
#{timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -276,7 +292,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select count(*) from sys_take_stash
|
|
|
|
select count(*) from sys_take_stash
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
@ -287,7 +303,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
update sys_take_stash
|
|
|
|
update sys_take_stash
|
|
|
|
<set>
|
|
|
|
<set>
|
|
|
@ -318,6 +334,9 @@
|
|
|
|
<if test="record.priceTransaction != null">
|
|
|
|
<if test="record.priceTransaction != null">
|
|
|
|
price_transaction = #{record.priceTransaction,jdbcType=DOUBLE},
|
|
|
|
price_transaction = #{record.priceTransaction,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.priceTransactionClose != null">
|
|
|
|
|
|
|
|
price_transaction_close = #{record.priceTransactionClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="record.stopLoss != null">
|
|
|
|
<if test="record.stopLoss != null">
|
|
|
|
stop_loss = #{record.stopLoss,jdbcType=DOUBLE},
|
|
|
|
stop_loss = #{record.stopLoss,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -327,6 +346,9 @@
|
|
|
|
<if test="record.timeTransaction != null">
|
|
|
|
<if test="record.timeTransaction != null">
|
|
|
|
time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.timeTransactionClose != null">
|
|
|
|
|
|
|
|
time_transaction_close = #{record.timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="record.status != null">
|
|
|
|
<if test="record.status != null">
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -345,24 +367,26 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
update sys_take_stash
|
|
|
|
update sys_take_stash
|
|
|
|
set stash_id = #{record.stashId,jdbcType=VARCHAR},
|
|
|
|
set stash_id = #{record.stashId,jdbcType=VARCHAR},
|
|
|
|
member_id = #{record.memberId,jdbcType=VARCHAR},
|
|
|
|
member_id = #{record.memberId,jdbcType=VARCHAR},
|
|
|
|
training_id = #{record.trainingId,jdbcType=VARCHAR},
|
|
|
|
training_id = #{record.trainingId,jdbcType=VARCHAR},
|
|
|
|
trading_code = #{record.tradingCode,jdbcType=VARCHAR},
|
|
|
|
trading_code = #{record.tradingCode,jdbcType=VARCHAR},
|
|
|
|
currency_name = #{record.currencyName,jdbcType=VARCHAR},
|
|
|
|
currency_name = #{record.currencyName,jdbcType=VARCHAR},
|
|
|
|
order_number = #{record.orderNumber,jdbcType=VARCHAR},
|
|
|
|
order_number = #{record.orderNumber,jdbcType=VARCHAR},
|
|
|
|
buy_sell_type = #{record.buySellType,jdbcType=VARCHAR},
|
|
|
|
buy_sell_type = #{record.buySellType,jdbcType=VARCHAR},
|
|
|
|
volume_transaction = #{record.volumeTransaction,jdbcType=DOUBLE},
|
|
|
|
volume_transaction = #{record.volumeTransaction,jdbcType=DOUBLE},
|
|
|
|
price_transaction = #{record.priceTransaction,jdbcType=DOUBLE},
|
|
|
|
price_transaction = #{record.priceTransaction,jdbcType=DOUBLE},
|
|
|
|
stop_loss = #{record.stopLoss,jdbcType=DOUBLE},
|
|
|
|
price_transaction_close = #{record.priceTransactionClose,jdbcType=DOUBLE},
|
|
|
|
stop_win = #{record.stopWin,jdbcType=DOUBLE},
|
|
|
|
stop_loss = #{record.stopLoss,jdbcType=DOUBLE},
|
|
|
|
time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
stop_win = #{record.stopWin,jdbcType=DOUBLE},
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
profit_and_loss_by_close = #{record.profitAndLossByClose,jdbcType=DOUBLE},
|
|
|
|
time_transaction_close = #{record.timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
trading_margin = #{record.tradingMargin,jdbcType=DOUBLE}
|
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
profit_and_loss_by_close = #{record.profitAndLossByClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
trading_margin = #{record.tradingMargin,jdbcType=DOUBLE}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -371,7 +395,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
update sys_take_stash
|
|
|
|
update sys_take_stash
|
|
|
|
<set>
|
|
|
|
<set>
|
|
|
@ -399,6 +423,9 @@
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="priceTransactionClose != null">
|
|
|
|
|
|
|
|
price_transaction_close = #{priceTransactionClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="stopLoss != null">
|
|
|
|
<if test="stopLoss != null">
|
|
|
|
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
|
|
|
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -408,6 +435,9 @@
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="timeTransactionClose != null">
|
|
|
|
|
|
|
|
time_transaction_close = #{timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -420,6 +450,31 @@
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Fri Jul 21 14:51:28 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
update sys_take_stash
|
|
|
|
|
|
|
|
set member_id = #{memberId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
training_id = #{trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
trading_code = #{tradingCode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
currency_name = #{currencyName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
order_number = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
buy_sell_type = #{buySellType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
volume_transaction = #{volumeTransaction,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
price_transaction_close = #{priceTransactionClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
stop_win = #{stopWin,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
time_transaction_close = #{timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
profit_and_loss_by_close = #{profitAndLossByClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
trading_margin = #{tradingMargin,jdbcType=DOUBLE}
|
|
|
|
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</update>
|
|
|
|
<update id="updateWinLossByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
|
|
|
<update id="updateWinLossByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
@ -452,11 +507,17 @@
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
<if test="priceTransaction != null">
|
|
|
|
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
|
|
|
<if test="priceTransactionClose != null">
|
|
|
|
stop_win = #{stopWin,jdbcType=DOUBLE},
|
|
|
|
price_transaction_close = #{priceTransactionClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
stop_win = #{stopWin,jdbcType=DOUBLE},
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
<if test="timeTransaction != null">
|
|
|
|
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="timeTransactionClose != null">
|
|
|
|
|
|
|
|
time_transaction_close = #{timeTransactionClose,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="status != null">
|
|
|
|
<if test="status != null">
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -469,27 +530,4 @@
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Mon Jul 17 14:31:17 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
update sys_take_stash
|
|
|
|
|
|
|
|
set member_id = #{memberId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
training_id = #{trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
trading_code = #{tradingCode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
currency_name = #{currencyName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
order_number = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
buy_sell_type = #{buySellType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
volume_transaction = #{volumeTransaction,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
stop_win = #{stopWin,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
profit_and_loss_by_close = #{profitAndLossByClose,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
trading_margin = #{tradingMargin,jdbcType=DOUBLE}
|
|
|
|
|
|
|
|
where stash_id = #{stashId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|