|
|
@ -7,27 +7,27 @@
|
|
|
|
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 Fri Jun 30 14:15:42 CST 2023.
|
|
|
|
This element was generated on Fri Jun 30 14:15:42 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<id column="member_id" jdbcType="VARCHAR" property="memberId" />
|
|
|
|
<id column="member_id" jdbcType="VARCHAR" property="memberId"/>
|
|
|
|
<result column="training_id" jdbcType="VARCHAR" property="trainingId" />
|
|
|
|
<result column="training_id" jdbcType="VARCHAR" property="trainingId"/>
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
|
|
|
<result column="student_number" jdbcType="VARCHAR" property="studentNumber" />
|
|
|
|
<result column="student_number" jdbcType="VARCHAR" property="studentNumber"/>
|
|
|
|
<result column="major" jdbcType="VARCHAR" property="major" />
|
|
|
|
<result column="major" jdbcType="VARCHAR" property="major"/>
|
|
|
|
<result column="class_grade" jdbcType="VARCHAR" property="classGrade" />
|
|
|
|
<result column="class_grade" jdbcType="VARCHAR" property="classGrade"/>
|
|
|
|
<result column="stu_rank" jdbcType="INTEGER" property="stuRank" />
|
|
|
|
<result column="stu_rank" jdbcType="INTEGER" property="stuRank"/>
|
|
|
|
<result column="initial_capital" jdbcType="DOUBLE" property="initialCapital" />
|
|
|
|
<result column="initial_capital" jdbcType="DOUBLE" property="initialCapital"/>
|
|
|
|
<result column="total_assets" jdbcType="DOUBLE" property="totalAssets" />
|
|
|
|
<result column="total_assets" jdbcType="DOUBLE" property="totalAssets"/>
|
|
|
|
<result column="net_value" jdbcType="DOUBLE" property="netValue" />
|
|
|
|
<result column="net_value" jdbcType="DOUBLE" property="netValue"/>
|
|
|
|
<result column="margin_used" jdbcType="DOUBLE" property="marginUsed" />
|
|
|
|
<result column="margin_used" jdbcType="DOUBLE" property="marginUsed"/>
|
|
|
|
<result column="available_funds" jdbcType="DOUBLE" property="availableFunds" />
|
|
|
|
<result column="available_funds" jdbcType="DOUBLE" property="availableFunds"/>
|
|
|
|
<result column="margin_level" jdbcType="DOUBLE" property="marginLevel" />
|
|
|
|
<result column="margin_level" jdbcType="DOUBLE" property="marginLevel"/>
|
|
|
|
<result column="position_profit_loss" jdbcType="DOUBLE" property="positionProfitLoss" />
|
|
|
|
<result column="position_profit_loss" jdbcType="DOUBLE" property="positionProfitLoss"/>
|
|
|
|
<result column="cumulative_profit_loss" jdbcType="DOUBLE" property="cumulativeProfitLoss" />
|
|
|
|
<result column="cumulative_profit_loss" jdbcType="DOUBLE" property="cumulativeProfitLoss"/>
|
|
|
|
<result column="yield" jdbcType="DOUBLE" property="yield" />
|
|
|
|
<result column="yield" jdbcType="DOUBLE" property="yield"/>
|
|
|
|
<result column="opening_trades" jdbcType="INTEGER" property="openingTrades" />
|
|
|
|
<result column="opening_trades" jdbcType="INTEGER" property="openingTrades"/>
|
|
|
|
<result column="closing_trades" jdbcType="INTEGER" property="closingTrades" />
|
|
|
|
<result column="closing_trades" jdbcType="INTEGER" property="closingTrades"/>
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId" />
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId"/>
|
|
|
|
<result column="create_school" jdbcType="VARCHAR" property="createSchool" />
|
|
|
|
<result column="create_school" jdbcType="VARCHAR" property="createSchool"/>
|
|
|
|
<result column="training_name" jdbcType="VARCHAR" property="trainingName" />
|
|
|
|
<result column="training_name" jdbcType="VARCHAR" property="trainingName"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
@ -52,7 +52,8 @@
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
and ${criterion.condition}
|
|
|
|
and ${criterion.condition}
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
|
|
|
separator=",">
|
|
|
|
#{listItem}
|
|
|
|
#{listItem}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
@ -86,7 +87,8 @@
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
and ${criterion.condition}
|
|
|
|
and ${criterion.condition}
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
|
|
|
separator=",">
|
|
|
|
#{listItem}
|
|
|
|
#{listItem}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
@ -108,7 +110,8 @@
|
|
|
|
cumulative_profit_loss, yield, opening_trades, closing_trades, school_id, create_school,
|
|
|
|
cumulative_profit_loss, yield, opening_trades, closing_trades, school_id, create_school,
|
|
|
|
training_name
|
|
|
|
training_name
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample"
|
|
|
|
|
|
|
|
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.
|
|
|
@ -118,16 +121,17 @@
|
|
|
|
<if test="distinct">
|
|
|
|
<if test="distinct">
|
|
|
|
distinct
|
|
|
|
distinct
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
from sys_member
|
|
|
|
from sys_member
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
order by ${orderByClause}
|
|
|
|
order by ${orderByClause}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="pagedListMembers" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample" resultMap="BaseResultMap">
|
|
|
|
<select id="pagedListMembers" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample"
|
|
|
|
|
|
|
|
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.
|
|
|
@ -137,10 +141,10 @@
|
|
|
|
<if test="distinct">
|
|
|
|
<if test="distinct">
|
|
|
|
distinct
|
|
|
|
distinct
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
from sys_member
|
|
|
|
from sys_member
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
order by ${orderByClause}
|
|
|
|
order by ${orderByClause}
|
|
|
@ -153,7 +157,7 @@
|
|
|
|
This element was generated on Fri Jun 30 14:15:42 CST 2023.
|
|
|
|
This element was generated on Fri Jun 30 14:15:42 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
from sys_member
|
|
|
|
from sys_member
|
|
|
|
where member_id = #{memberId,jdbcType=VARCHAR}
|
|
|
|
where member_id = #{memberId,jdbcType=VARCHAR}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -174,7 +178,7 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
delete from sys_member
|
|
|
|
delete from sys_member
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
@ -200,6 +204,34 @@
|
|
|
|
#{schoolId,jdbcType=INTEGER}, #{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR}
|
|
|
|
#{schoolId,jdbcType=INTEGER}, #{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<insert id="insertAll" parameterType="java.util.List">
|
|
|
|
|
|
|
|
insert into sys_member (member_id, training_id, name,
|
|
|
|
|
|
|
|
student_number, major, class_grade,
|
|
|
|
|
|
|
|
stu_rank, initial_capital, total_assets,
|
|
|
|
|
|
|
|
net_value, margin_used, available_funds,
|
|
|
|
|
|
|
|
margin_level, position_profit_loss, cumulative_profit_loss,
|
|
|
|
|
|
|
|
yield, opening_trades, closing_trades,
|
|
|
|
|
|
|
|
school_id, create_school, training_name
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
values
|
|
|
|
|
|
|
|
<foreach item="member" collection="list" separator=",">
|
|
|
|
|
|
|
|
(#{member.memberId,jdbcType=VARCHAR}, #{member.trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{member.name,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{member.studentNumber,jdbcType=VARCHAR}, #{member.major,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{member.classGrade,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{member.stuRank,jdbcType=INTEGER}, #{member.initialCapital,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
#{member.totalAssets,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
#{member.netValue,jdbcType=DOUBLE}, #{member.marginUsed,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
#{member.availableFunds,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
#{member.marginLevel,jdbcType=DOUBLE}, #{member.positionProfitLoss,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
#{member.cumulativeProfitLoss,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
#{member.yield,jdbcType=DOUBLE}, #{member.openingTrades,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
#{member.closingTrades,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
#{member.schoolId,jdbcType=INTEGER}, #{member.createSchool,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{member.trainingName,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
@ -338,7 +370,8 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample"
|
|
|
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
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.
|
|
|
@ -346,7 +379,7 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select count(*) from sys_member
|
|
|
|
select count(*) from sys_member
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
@ -422,7 +455,7 @@
|
|
|
|
</if>
|
|
|
|
</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"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
@ -454,7 +487,7 @@
|
|
|
|
create_school = #{record.createSchool,jdbcType=VARCHAR},
|
|
|
|
create_school = #{record.createSchool,jdbcType=VARCHAR},
|
|
|
|
training_name = #{record.trainingName,jdbcType=VARCHAR}
|
|
|
|
training_name = #{record.trainingName,jdbcType=VARCHAR}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
@ -560,6 +593,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectClassGrade" resultType="java.lang.String">
|
|
|
|
<select id="selectClassGrade" resultType="java.lang.String">
|
|
|
|
SELECT class_grade
|
|
|
|
SELECT class_grade
|
|
|
|
FROM sys_member where school_id = #{schoolId}
|
|
|
|
FROM sys_member
|
|
|
|
|
|
|
|
where school_id = #{schoolId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|